THAI: Fix bug topping select press next button very fast, fix bug page_payment_cash to wait 3 second before send cancel action

This commit is contained in:
Kenta420 2024-11-27 16:36:20 +07:00
parent 9495125017
commit 207100665f
2 changed files with 434 additions and 375 deletions

View file

@ -182,6 +182,7 @@
Var Seeker.VendingDiscount = DiscountDrink
Var CancelingPopupFlag = "Invisible"
Var SendCancelActionFlag = 0
Var CancelingPopupCountDown = 0
Var CashTextWarning = ""
@ -2244,14 +2245,38 @@
If CancelingPopupFlag = "Enable" Then
SAVELOG "Canceled Popup"
Var CancelingPopupCountDown = CancelingPopupCountDown + 1
DEBUGVAR CancelingPopupCountDown
If CancelingPopupCountDown > 3 Then
If SendCancelActionFlag = 0 Then
SAVELOG "Send Canceled Popup"
Var SendCancelActionFlag = 1
If QRPopupOpenFlag = 1 Then
VendingQR OFF
EndIf
If ReqPayInfoFromCashOther = 2 Then
DEBUGVAR "CashlessReq OFF by user"
CashlessReq OFF
EndIf
If CashlessPayFlag = 1 Then
Var CashlessPayFlag = 0
CashlessReq FAIL
EndIf
EndIf
EndIf
If CancelingPopupCountDown > 5 Then
SAVELOG "Close Cancel Popup"
Var CancelingPopupFlag = "Invisible"
Var alphaState = "Invisible"
Var SendCancelActionFlag = 0
EndIf
EndIf
@ -3101,20 +3126,6 @@ eval(
Var CancelingPopupFlag = "Enable"
Var CancelingPopupCountDown = 0
If QRPopupOpenFlag = 1 Then
VendingQR OFF
EndIf
If ReqPayInfoFromCashOther = 2 Then
DEBUGVAR "CashlessReq OFF by user"
CashlessReq OFF
EndIf
If CashlessPayFlag = 1 Then
Var CashlessPayFlag = 0
CashlessReq FAIL
EndIf
Refresh
EndIf
</EventClick>

File diff suppressed because it is too large Load diff