浏览代码

update po qc 3 qc 1 handle

reset-do-picking-order
CANCERYS\kw093 6 天前
父节点
当前提交
f24f6f1c52
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt

+ 11
- 0
src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt 查看文件

@@ -680,6 +680,17 @@ open class StockInLineService(
} else {
requestQty ?: this.acceptedQty
}
} else if (request.qcAccept == true && this.status == StockInLineStatus.ESCALATED.status) {
// Case: line was escalated (QC decision 3), handler resolves with decision 1 (accept).
// Use 揀收數量 (acceptQty) for put away instead of keeping original received qty.
val requestQty = request.acceptQty ?: request.acceptedQty
if (requestQty != null) {
this.acceptedQty = if (this.purchaseOrderLine != null && this.item?.id != null) {
itemUomService.convertPurchaseQtyToStockQty(this.item!!.id!!, requestQty)
} else {
requestQty
}
}
}
// Set demandQty based on source
if (this.jobOrder != null && this.jobOrder?.bom != null) {


正在加载...
取消
保存