diff --git a/xml/page_NewBrewing3.xml b/xml/page_NewBrewing3.xml index daa4b813..7fd2ab73 100644 --- a/xml/page_NewBrewing3.xml +++ b/xml/page_NewBrewing3.xml @@ -290,7 +290,7 @@ If ConnectWithPOSMachine = 1 Then - If POS_SELL_STATUS = "NORMAL" Then + If POS_SELL_MODE = "NORMAL" Then Else Var SelectMenuBetweenBrewEnable1 = "Invisible" @@ -1422,7 +1422,7 @@ If SelectMenuBetweenBrewEnable1 = "Enable" Then If ConnectWithPOSMachine = 1 Then - If POS_SELL_STATUS = "NORMAL" Then + If POS_SELL_MODE = "NORMAL" Then Else Var SelectMenuBetweenBrewEnable1 = "Invisible" EndIf diff --git a/xml/page_NewBrewing3Conti.xml b/xml/page_NewBrewing3Conti.xml index 2b901c7f..1ae931ea 100644 --- a/xml/page_NewBrewing3Conti.xml +++ b/xml/page_NewBrewing3Conti.xml @@ -56,7 +56,7 @@ EndIf If ConnectWithPOSMachine = 1 Then - If POS_SELL_STATUS = "NORMAL" Then + If POS_SELL_MODE = "NORMAL" Then Else Var EnableSelectMenuBetweenBrew = "Invisible" @@ -594,7 +594,7 @@ If EnableSelectMenuBetweenBrew = "Enable" Then If ConnectWithPOSMachine = 1 Then - If POS_SELL_STATUS = "NORMAL" Then + If POS_SELL_MODE = "NORMAL" Then Else Var EnableSelectMenuBetweenBrew = "Invisible" diff --git a/xml/page_payment.xml b/xml/page_payment.xml index 2ddf0dea..a1f70572 100644 --- a/xml/page_payment.xml +++ b/xml/page_payment.xml @@ -247,8 +247,14 @@ Var ReadyForBrew = "false" EndIf + READ_FILE "/mnt/sdcard/coffeevending/app_manager/app_list/king_power_service/enable" POSMachineFlag + DEBUGVAR POSMachineFlag + If POSMachineFlag = 1 Then + Var ConnectWithPOSMachine = 1 + EndIf + If ConnectWithPOSMachine = 1 Then - If POS_SELL_STATUS = "NORMAL" Then + If POS_SELL_MODE = "NORMAL" Then Else If Seeker = "next" Then @@ -409,6 +415,7 @@ Var param2 = PureName EndIf + DEBUGVAR ConnectWithPOSMachine If ConnectWithPOSMachine = 1 Then Var WaitPOSStatus = 1 Var TimeWaitPOSStatus = 0 @@ -514,6 +521,8 @@ If WaitPOSStatus = 1 Then + DEBUGVAR TimeWaitPOSStatus + DEBUGVAR POS_SELL_STATUS If TimeWaitPOSStatus < 10 Then Var TimeWaitPOSStatus = TimeWaitPOSStatus + 1