Просмотр исходного кода

fix lot line outqty =null to 0

when create lot line outqty defualt 0
fix負數倉
CANCERYS\kw093 3 недель назад
Родитель
Сommit
0ffbbd4476
2 измененных файлов: 9 добавлений и 0 удалений
  1. +1
    -0
      src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt
  2. +8
    -0
      src/main/resources/db/changelog/changes/20261013_update_lot_line_outQty_null/01_update_lot_line_outQty_null.sql

+ 1
- 0
src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt Просмотреть файл

@@ -540,6 +540,7 @@ open class StockInLineService(
this.inventoryLot = stockInLine.inventoryLot
this.warehouse = warehouse
this.inQty = convertedBaseQty
this.outQty = BigDecimal.ZERO
this.status = InventoryLotLineStatus.AVAILABLE
this.stockUom = stockItemUom
?: throw ResponseStatusException(


+ 8
- 0
src/main/resources/db/changelog/changes/20261013_update_lot_line_outQty_null/01_update_lot_line_outQty_null.sql Просмотреть файл

@@ -0,0 +1,8 @@
--liquibase formatted sql

--changeset fpsms:update_lot_line_outQty_null_v2
--comment: Update inventory lot line outQty to 0 if it is null
UPDATE inventory_lot_line
SET outQty = 0
WHERE outQty IS NULL
AND deleted = 0;

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