fix change coin multi

This commit is contained in:
miggaze 2021-11-15 19:41:38 +07:00
parent 2d873f12e9
commit 646c0b9d4e
4 changed files with 55 additions and 20 deletions

View file

@ -107,10 +107,42 @@
EndIf
Var MultiGo = 1
If CART_COUNT = 0 Then
Var sendPayMultiFlag = 1
Else
If CART_INDEX = CART_COUNT Then
If ChangeAmountSum > 0 Then
Change ChangeAmountSum
Var MultiGo = 0
EndIf
EndIf
EndIf
</EventOpen>
<Timeout> 500 </Timeout>
<EventTimeout>
DEBUGVAR MachineStage
DEBUGVAR CupOnArm
DEBUGVAR buttonRemoveCup
DEBUGVAR CART_COUNT
Var Timeout = Timeout + 1
If Timeout > 5 Then
Var MultiGo = 1
EndIf
If MultiGo = 1 Then
If CART_INDEX = CART_COUNT Then
;Pay Multi
If sendPayMultiFlag = 0 Then
@ -148,21 +180,10 @@
Var sendPayMultiFlag = 1
EndIf
EndIf
EndIf
EndIf
EndIf
</EventOpen>
<Timeout> 500 </Timeout>
<EventTimeout>
DEBUGVAR MachineStage
DEBUGVAR CupOnArm
DEBUGVAR buttonRemoveCup
DEBUGVAR CART_COUNT
If HaveCup = "false" Then
If MachineStage = "show-menu" Then
@ -223,7 +244,7 @@
EndIf
EndIf
Var Timeout = Timeout + 1
TimerReset
Refresh