Browse Source

update

create_edit_user
cyril.tsui 2 months ago
parent
commit
c235cb2f43
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql
  2. +1
    -1
      src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql

+ 1
- 1
src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql View File

@@ -83,7 +83,7 @@ begin
0 AS cpm,
ti.currencyName AS cpmUnit,
ti.uomId AS uomId,
if(coalesce(ti.qty, 0) > 0, 'Y', 'N') AS status
if(coalesce(ti.qty, 0) > 0, 'Available', 'Unavailable') AS status
from `temp_inventory` ti;
else
update `inventory` i


+ 1
- 1
src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql View File

@@ -85,7 +85,7 @@ begin
0 as cpm,
ti.currencyName as cpmUnit,
ti.uomId as uomId,
if(coalesce(ti.currentQty, 0) > 0, 'Y', 'N') as status
if(coalesce(ti.currentQty, 0) > 0, 'available', 'unavailable') as status
from `temp_inventory` ti;
else
update `inventory` i


Loading…
Cancel
Save