fixed a locking bug preventing work order quantities from updating when cassette quantities are modified

This commit is contained in:
Infineon\StieberD
2024-12-12 17:59:52 -07:00
committed by Stieber Daniel (CSC FI SPS MESLEO)
parent 7f309c87d4
commit bad03f6abe
4 changed files with 18 additions and 30 deletions

View File

@ -205,9 +205,11 @@ return
WRITE_RECORD_PRE:
OrigQty = OrigRecord<WO_LOG_QTY$>
NewQty = Record<WO_LOG_QTY$>
If OrigQty NE NewQty then
OrigQty = OrigRecord<WO_LOG_QTY$>
NewQty = Record<WO_LOG_QTY$>
OrigCassList = OrigRecord<WO_LOG_WO_MAT_KEY$>
NewCassList = Record<WO_LOG_WO_MAT_KEY$>
If ( (OrigQty NE NewQty) or (OrigCassList NE NewCassList) ) then
// Update released, unreleased, and received quantities
RelQty = obj_WO_Log('RelQty', Name:@RM:Record)
Record<WO_LOG_REL_QTY_STATIC$> = RelQty