소스 검색

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


불러오는 중...
취소
저장