THAI-POS: Added page network down when machine not online

This commit is contained in:
Kenta420 2025-02-11 13:06:43 +07:00
parent f992354dd9
commit 2bf2921a3a
2 changed files with 19 additions and 1 deletions

View file

@ -22,7 +22,7 @@
<Timeout> 1000 </Timeout>
<EventTimeout>
If Timeout > 30 Then
DEBUGVAR SELLSTATUS
If SELLSTATUS = "SELLONLINE" Then
Var SELLONLINE = 1
Else
@ -39,6 +39,8 @@
EndIf
Var Timeout = Timeout + 1
TimerReset
</EventTimeout>
<Button>

View file

@ -374,6 +374,22 @@
;include="ROOT/taobin_project/inc/return_condition.ev"
EndIf
If ConnectWithPOSMachine = 1 Then
Var SELLSTATUS = 0
If SELLSTATUS = "SELLONLINE" Then
Var SELLSTATUS = 1
EndIf
If SELLSTATUS = "SELLNOCASH" Then
Var SELLSTATUS = 1
EndIf
If SELLSTATUS = 0 Then
SAVELOG "POS-MACHINE: OFFLINE in page_payment.xml"
;include="ROOT/taobin_project/inc/return_condition.ev"
EndIf
EndIf
If Seeker = "curr" Then
If web_ready = "false" Then
If Delay = 0 Then