Merged PR 17284: Added call to CreateLotEvent routine on successful
Added call to CreateLotEvent routine on successful completion of a lot qty adjustment to mark it as as manual adjustment.
This commit is contained in:
parent
292bc4646b
commit
4e213ff253
@ -3,7 +3,7 @@ Compile function NDW_ADJUST_LOT_QTY_EVENTS(CtrlEntId, Event, @PARAMS)
|
|||||||
#window NDW_ADJUST_LOT_QTY
|
#window NDW_ADJUST_LOT_QTY
|
||||||
|
|
||||||
Declare function MemberOf, Database_Services, Error_Services, Datetime
|
Declare function MemberOf, Database_Services, Error_Services, Datetime
|
||||||
Declare subroutine PlaceDialog, Database_Services, Lot_Services
|
Declare subroutine PlaceDialog, Database_Services, Lot_Services, Lot_Event_Services
|
||||||
$Insert App_Inserts
|
$Insert App_Inserts
|
||||||
$Insert Lot_Equates
|
$Insert Lot_Equates
|
||||||
|
|
||||||
@ -126,9 +126,15 @@ Event PUB_SUBMIT.CLICK()
|
|||||||
Case NewWfrQty LT CurrWfrQty
|
Case NewWfrQty LT CurrWfrQty
|
||||||
AmountToDecrease = CurrWfrQty - NewWfrQty
|
AmountToDecrease = CurrWfrQty - NewWfrQty
|
||||||
Lot_Services('ReduceLotWaferCount', LotId, AmountToDecrease, @User4)
|
Lot_Services('ReduceLotWaferCount', LotId, AmountToDecrease, @User4)
|
||||||
|
If Error_Services('NoError') then
|
||||||
|
Lot_Event_Services('CreateLotEvent', LotId, Datetime(), 'COMMENT', 'Manual Lot Qty decrease performed.', '', @User4, '' , '')
|
||||||
|
end
|
||||||
Case NewWfrQty GT CurrWfrQty
|
Case NewWfrQty GT CurrWfrQty
|
||||||
AmountToIncrease = NewWfrQty - CurrWfrQty
|
AmountToIncrease = NewWfrQty - CurrWfrQty
|
||||||
Lot_Services('IncreaseLotWaferCount', LotId, AmountToIncrease, @User4)
|
Lot_Services('IncreaseLotWaferCount', LotId, AmountToIncrease, @User4)
|
||||||
|
If Error_Services('NoError') then
|
||||||
|
Lot_Event_Services('CreateLotEvent', LotId, Datetime(), 'COMMENT', 'Manual Lot Qty increase performed.', '', @User4, '' , '')
|
||||||
|
end
|
||||||
End Case
|
End Case
|
||||||
If Error_Services('NoError') then
|
If Error_Services('NoError') then
|
||||||
msg(@Window, 'Wafer quantity adjusted successfully!')
|
msg(@Window, 'Wafer quantity adjusted successfully!')
|
||||||
@ -176,3 +182,4 @@ return
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user