From 203d2832e24e97b2db5ee81d00285674611e6550 Mon Sep 17 00:00:00 2001 From: "kelvin.yau" Date: Fri, 13 Mar 2026 18:12:51 +0800 Subject: [PATCH] stock take section description col + stock trf translation --- .../java/com/ffii/fpsms/modules/master/entity/Warehouse.kt | 3 +++ .../fpsms/modules/stock/service/InventoryLotLineService.kt | 2 +- .../01_add_stockTakeSectionDescription_to_warehouse.sql | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/changelog/changes/20260313_01_KelvinY/20260313_01_KelvinY/01_add_stockTakeSectionDescription_to_warehouse.sql diff --git a/src/main/java/com/ffii/fpsms/modules/master/entity/Warehouse.kt b/src/main/java/com/ffii/fpsms/modules/master/entity/Warehouse.kt index 77ceee0..bd4a1b8 100644 --- a/src/main/java/com/ffii/fpsms/modules/master/entity/Warehouse.kt +++ b/src/main/java/com/ffii/fpsms/modules/master/entity/Warehouse.kt @@ -44,4 +44,7 @@ open class Warehouse : BaseEntity() { @Column(name = "stockTakeSection", nullable = true, length = 255) open var stockTakeSection: String? = null + + @Column(name = "stockTakeSectionDescription", nullable = true, length = 255) + open var stockTakeSectionDescription: String? = null } \ No newline at end of file diff --git a/src/main/java/com/ffii/fpsms/modules/stock/service/InventoryLotLineService.kt b/src/main/java/com/ffii/fpsms/modules/stock/service/InventoryLotLineService.kt index b6e1a26..173f1f1 100644 --- a/src/main/java/com/ffii/fpsms/modules/stock/service/InventoryLotLineService.kt +++ b/src/main/java/com/ffii/fpsms/modules/stock/service/InventoryLotLineService.kt @@ -295,7 +295,7 @@ open class InventoryLotLineService( val pdf = if (stockInLine?.stockTransferRecord != null) { val targetLocation = stockInLine.stockTransferRecord?.targetLocation ?: "" exportStockInLineQrcode( - LotLineToQrcode(inventoryLotLineId = request.inventoryLotLineId, isTransfer = "轉倉至 $targetLocation") + LotLineToQrcode(inventoryLotLineId = request.inventoryLotLineId, isTransfer = "已轉倉至 $targetLocation") ) } else { exportStockInLineQrcode(LotLineToQrcode(inventoryLotLineId = request.inventoryLotLineId)) diff --git a/src/main/resources/db/changelog/changes/20260313_01_KelvinY/20260313_01_KelvinY/01_add_stockTakeSectionDescription_to_warehouse.sql b/src/main/resources/db/changelog/changes/20260313_01_KelvinY/20260313_01_KelvinY/01_add_stockTakeSectionDescription_to_warehouse.sql new file mode 100644 index 0000000..85d13d6 --- /dev/null +++ b/src/main/resources/db/changelog/changes/20260313_01_KelvinY/20260313_01_KelvinY/01_add_stockTakeSectionDescription_to_warehouse.sql @@ -0,0 +1,5 @@ +-- liquibase formatted sql +-- changeset KelvinY:add_stockTakeSectionDescription_to_warehouse + +ALTER TABLE `fpsmsdb`.`warehouse` +ADD COLUMN `stockTakeSectionDescription` VARCHAR(255) NULL; \ No newline at end of file