From c235cb2f43aeb54ad4ddfdccb90b7c3fd27a555b Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Tue, 3 Jun 2025 15:32:06 +0800 Subject: [PATCH] update --- .../02_create_inventory_lot_line_trigger_for_insert.sql | 2 +- .../03_create_inventory_lot_line_trigger_for_update.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql b/src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql index 7358d9a..25b8324 100644 --- a/src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql +++ b/src/main/resources/db/changelog/changes/20250529_01_cyril/02_create_inventory_lot_line_trigger_for_insert.sql @@ -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 diff --git a/src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql b/src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql index 5544000..ae1d45b 100644 --- a/src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql +++ b/src/main/resources/db/changelog/changes/20250529_01_cyril/03_create_inventory_lot_line_trigger_for_update.sql @@ -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