THA-AOT: Changed POS flow when POS offline

This commit is contained in:
Kenta420 2025-07-08 19:26:30 +07:00
parent 8aab43e5eb
commit f1aa42be52
3 changed files with 21 additions and 7 deletions

View file

@ -625,9 +625,13 @@
If POS_SELL_MODE = "NORMAL" Then
Else
Var BackgroundColor = "0x2C2F4E"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
If POS_SELL_MODE = "CLOSE" Then
Var BackgroundColor = "0x2C2F4E"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
Else
OpenInst 0 "ROOT/taobin_project/xml/page_pos_machine_network_down.xml"
EndIf
EndIf
EndIf
@ -2518,9 +2522,13 @@ PRICE "Reset" "-"
If POS_SELL_MODE = "NORMAL" Then
Else
Var BackgroundColor = "0x2C2F4E"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
If POS_SELL_MODE = "CLOSE" Then
Var BackgroundColor = "0x2C2F4E"
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
Open "ROOT/taobin_project/xml/page_pos_machine_midnight_close.xml"
Else
OpenInst 0 "ROOT/taobin_project/xml/page_pos_machine_network_down.xml"
EndIf
EndIf
EndIf
EndIf

View file

@ -456,6 +456,10 @@
If SELLSTATUS = "SELLNOCASH" Then
Var SELLONLINE = 1
EndIf
If POS_SELL_MODE = "OFFLINE" Then
Var SELLONLINE = 0
EndIf
If SELLONLINE = 0 Then
SAVELOG "POS-MACHINE: OFFLINE in page_payment.xml"

View file

@ -32,7 +32,9 @@
EndIf
If SELLONLINE = 1 Then
Open "ROOT/taobin_project/xml/page_board.xml"
If POS_SELL_MODE = "NORMAL" Then
Open "ROOT/taobin_project/xml/page_board.xml"
EndIf
EndIf
Var Timeout = 0