Pārlūkot izejas kodu

update po qc 3 qc 1 handle

reset-do-picking-order
CANCERYS\kw093 pirms 6 dienas
vecāks
revīzija
f24f6f1c52
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt