cyril.tsui 2 месяцев назад
Родитель
Сommit
c235cb2f43
2 измененных файлов: 2 добавлений и 2 удалений
  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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить