Kaynağa Gözat

update po qc 3 qc 1 handle

reset-do-picking-order
CANCERYS\kw093 6 gün önce
ebeveyn
işleme
f24f6f1c52
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  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 Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet