diff --git a/image/page_drink_picture2_n/bn_oreo_vo_weekend_special.png b/image/page_drink_picture2_n/bn_oreo_vo_weekend_special.png
new file mode 100644
index 00000000..dc56dc08
Binary files /dev/null and b/image/page_drink_picture2_n/bn_oreo_vo_weekend_special.png differ
diff --git a/xml/event/backToSchool.ev b/xml/event/backToSchool.ev
new file mode 100644
index 00000000..6ef32abd
--- /dev/null
+++ b/xml/event/backToSchool.ev
@@ -0,0 +1,55 @@
+
+
+;DEBUGVAR SystemDateMonthInt
+;DEBUGVAR SystemDateDayInt
+
+Var OreoDueEnable = 0
+If SystemDateMonthInt = 5 Then
+ If SystemDateDayInt = 6 Then
+ Var OreoDueEnable = 1
+ EndIf
+ If SystemDateDayInt = 7 Then
+ Var OreoDueEnable = 1
+ EndIf
+
+ If SystemDateDayInt = 13 Then
+ Var OreoDueEnable = 1
+ EndIf
+ If SystemDateDayInt = 14 Then
+ Var OreoDueEnable = 1
+ EndIf
+
+
+ If SystemDateDayInt = 20 Then
+ Var OreoDueEnable = 1
+ EndIf
+ If SystemDateDayInt = 21 Then
+ Var OreoDueEnable = 1
+ EndIf
+
+
+ If SystemDateDayInt = 27 Then
+ Var OreoDueEnable = 1
+ EndIf
+ If SystemDateDayInt = 28 Then
+ Var OreoDueEnable = 1
+ EndIf
+
+EndIf
+
+DEBUGVAR OreoDueEnable
+If OreoDueEnable = 0 Then
+ Var $12-03-03-0009-alter.Button = "Invisible"
+Else
+ Var $12-03-03-0009-alter.Button = "Enable"
+
+EndIf
+
+
+Var $12-03-03-0009-alter.Price = 70
+
+Var $12-03-03-0009-alter.NameE = $12-03-03-0009.NameE
+Var $12-03-03-0009-alter.descriptionE = $12-03-03-0009.descriptionE
+Var $12-03-03-0009-alter.Name = $12-03-03-0009.Name
+Var $12-03-03-0009-alter.description = $12-03-03-0009.description
+
diff --git a/xml/menu_catalog_new.xml b/xml/menu_catalog_new.xml
index 83960365..e91a6734 100644
--- a/xml/menu_catalog_new.xml
+++ b/xml/menu_catalog_new.xml
@@ -79,6 +79,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/menu_new_layout_gen.py b/xml/menu_new_layout_gen.py
index cafc3647..f75e7170 100644
--- a/xml/menu_new_layout_gen.py
+++ b/xml/menu_new_layout_gen.py
@@ -211,14 +211,14 @@
out_xml( '\t\tIf PD_STAGE_2 = "Enable" Then\r\n')
#out_xml( '\t\t\tVar PD_STAGE_2 = "Enable"\r\n')
- out_xml( '\t\t\tTopping "Load" "'+ spl[5] +'"\r\n')
+ out_xml( '\t\t\tTopping "Load" "'+ spl[5].replace("-alter", "") +'"\r\n')
out_xml( '\t\tElse\r\n')
out_xml( '\t\t\tIf PD_STAGE_1 = "Enable" Then\r\n')
#out_xml( '\t\t\t\tVar PD_STAGE_1 = "Enable"\r\n')
- out_xml( '\t\t\tTopping "Load" "'+ spl[4] +'"\r\n')
+ out_xml( '\t\t\tTopping "Load" "'+ spl[4].replace("-alter", "") +'"\r\n')
out_xml( '\t\t\tElse\r\n')
#out_xml( '\t\t\t\tVar PD_STAGE_3 = "Enable"\r\n')
- out_xml( '\t\t\tTopping "Load" "'+ spl[6] +'"\r\n')
+ out_xml( '\t\t\tTopping "Load" "'+ spl[6].replace("-alter", "") +'"\r\n')
out_xml( '\t\t\tEndIf\r\n')
out_xml( '\t\tEndIf\r\n')
@@ -251,10 +251,7 @@
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
- if "inter" in param:
- out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
- else:
- out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select4.xml"\r\n')
+ out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
out_xml( '\t\t\r\n')
diff --git a/xml/page_board.xml b/xml/page_board.xml
index 02ef2214..b2caa956 100644
--- a/xml/page_board.xml
+++ b/xml/page_board.xml
@@ -700,10 +700,18 @@
If BoxID = 200434 Then
Var SongkranEnable = 0
EndIf
+ If BoxID = 172644 Then
+ Var SongkranEnable = 0
+ EndIf
If BoxID = 172102 Then
Var SongkranEnable = 0
EndIf
+ TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/backToSchool.ev"
+
+ If BoxID = 200001 Then
+ Var OreoDueEnable = 0
+ EndIf
DEBUGVAR SoundThaiIndex
@@ -884,9 +892,18 @@
;Var CupOnArm = "true"
If CupOnArm = "true" Then
- Var buttonRemoveCup = "Enable"
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
Else
- Var buttonRemoveCup = "Invisible"
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
EndIf
@@ -924,6 +941,7 @@
EndIf
+
Refresh
TimerReset
@@ -1136,6 +1154,9 @@
Machine RemoveCup
Machine DoorLidOpen
+
+ Var CheckCupStateDoorCupClose = "reset"
+ Var buttonRemoveCup = "Invisible"
diff --git a/xml/page_catalog2.xml b/xml/page_catalog2.xml
index 7fcd181c..3ffec5dc 100644
--- a/xml/page_catalog2.xml
+++ b/xml/page_catalog2.xml
@@ -203,6 +203,8 @@
RebootWithCause "BoxID was zero"
EndIf
+
+ TRY "/mnt/sdcard/coffeevending/taobin_project/xml/event/backToSchool.ev"
Var Price5Active = 0
@@ -237,7 +239,21 @@
EndIf
EndIf
-
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
Refresh
TimerReset
@@ -581,7 +597,11 @@
"ROOT/taobin_project/image/main_page/bp_remove_cup.png"
Machine RemoveCup
- Machine DoorLidOpen
+ Machine DoorLidOpen
+
+ Var CheckCupStateDoorCupClose = "reset"
+ Var buttonRemoveCup = "Invisible"
+
diff --git a/xml/page_catalog_group_appfast.xml b/xml/page_catalog_group_appfast.xml
index 87249ffd..3d07d946 100644
--- a/xml/page_catalog_group_appfast.xml
+++ b/xml/page_catalog_group_appfast.xml
@@ -227,6 +227,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_cocktail.xml b/xml/page_catalog_group_cocktail.xml
index 371f1c3c..a3a0b278 100644
--- a/xml/page_catalog_group_cocktail.xml
+++ b/xml/page_catalog_group_cocktail.xml
@@ -219,6 +219,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_coffee.xml b/xml/page_catalog_group_coffee.xml
index cf45777c..c6169b6b 100644
--- a/xml/page_catalog_group_coffee.xml
+++ b/xml/page_catalog_group_coffee.xml
@@ -219,6 +219,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_forkid.xml b/xml/page_catalog_group_forkid.xml
index e34f169e..1288f1df 100644
--- a/xml/page_catalog_group_forkid.xml
+++ b/xml/page_catalog_group_forkid.xml
@@ -228,6 +228,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_health.xml b/xml/page_catalog_group_health.xml
index e6eff2b2..f8509d47 100644
--- a/xml/page_catalog_group_health.xml
+++ b/xml/page_catalog_group_health.xml
@@ -219,6 +219,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_milk.xml b/xml/page_catalog_group_milk.xml
index 2925894f..2ec6bf98 100644
--- a/xml/page_catalog_group_milk.xml
+++ b/xml/page_catalog_group_milk.xml
@@ -217,6 +217,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_oreo.xml b/xml/page_catalog_group_oreo.xml
index a745108b..5beb8571 100644
--- a/xml/page_catalog_group_oreo.xml
+++ b/xml/page_catalog_group_oreo.xml
@@ -215,6 +215,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_other.xml b/xml/page_catalog_group_other.xml
index 67213c45..7e8e73e2 100644
--- a/xml/page_catalog_group_other.xml
+++ b/xml/page_catalog_group_other.xml
@@ -218,6 +218,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_recommend.skt b/xml/page_catalog_group_recommend.skt
index 681ce228..d4de5d16 100644
--- a/xml/page_catalog_group_recommend.skt
+++ b/xml/page_catalog_group_recommend.skt
@@ -70,6 +70,7 @@
Machine RemoveCup
Machine DoorLidOpen
+ Var buttonRemoveCup = "Invisible"
diff --git a/xml/page_catalog_group_recommend.xml b/xml/page_catalog_group_recommend.xml
index 1c412bb5..8a96f4b8 100644
--- a/xml/page_catalog_group_recommend.xml
+++ b/xml/page_catalog_group_recommend.xml
@@ -236,6 +236,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
@@ -576,7 +593,7 @@
;dummy_layout.inc
-; menu_new_list 30
+; menu_new_list 31
;TAGESP
; ==================> Len = 16
; - - 12-03-03-0009
@@ -830,6 +847,256 @@ VOLCANO"
; - - -
;TAGESP
; ==================> Len = 16
+ ; - - 12-03-03-0009-alter
+
+ 33
+ 22
+ 225
+ 296
+ Flag( 12-03-03-0009-alter.Button,Disable=Invisible,$Sum1203030009alter)
+
+
+ 16
+ 164
+ 24
+ 220
+ "multi2"
+ KanitMediumTTF
+ 0x322B26
+ showthaiText
+ "โอริโอ้ปั่นภูเขาไฟ"
+
+
+ 16
+ 220
+ 14
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ showthaiText
+ "นม น้ำตาล โอริโอ้
+ "
+
+
+ 16
+ 164
+ 22
+ 220
+ "multi2"
+ KanitMediumTTF
+ 0x322B26
+ showengText
+ "OREO SMOOTHIE
+VOLCANO"
+
+
+ 16
+ 220
+ 14
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ showengText
+ "Milk, Sugar, Oreo"
+
+
+ 16
+ 264
+ Var( DirImage2 + "option_deactive.png" )
+
+
+ 16
+ 264
+ "Invisible"
+ Var( DirImage2 + "hot.png" )
+ Var( DirImage2 + "hot_db.png" )
+
+
+ 50
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ 0xEAE6E1
+ "Invisible"
+ StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 81
+ 264
+ Var( DirImage2 + "cold.png" )
+ Var( DirImage2 + "cold_db.png" )
+ "Invisible"
+
+
+ 115
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ 0xEAE6E1
+ "Invisible"
+ StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 146
+ 264
+ Var( DirImage2 + "blend.png" )
+ Var( DirImage2 + "blend_db.png" )
+ $12-03-03-0009-alter.Button
+
+
+ 180
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitRegularTTF
+ 0x6F5F51
+ 0xEAE6E1
+ $12-03-03-0009-alter.Button
+ StringFmt( $12-03-03-0009-alter.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 81
+ 264
+
+ eval(
+ If ICE_PROCESS_STATUS = 2 Then
+
+ Var ice_tab_process_show = "Invisible"
+
+ Else
+ Var ice_tab_process_show = "Invisible"
+ EndIf
+ Var return = ice_tab_process_show
+ )
+
+ "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png"
+ "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png"
+
+
+ 49
+ 117
+
+ eval(
+ If $Sum1203030009alter = "Disable" Then
+ STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
+ STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
+ STRCONTAIN "ERR" $12-03-03-0009-alter.TAG tag3_is_disable
+ Var return = "Invisible"
+ If tag1_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ If tag2_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ If tag3_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ Else
+ Var return = "Invisible"
+ EndIf
+ )
+
+ "ROOT/taobin_project/image//img_menu_err2.png"
+
+
+ 84
+ 266
+ 10
+ OpunMediumTTF
+ 0xDE794E
+ ice_tab_process_show
+ ice_show_open
+
+
+ 48
+ 116
+ 32
+ 128
+ 64
+ MITRegularTTF
+ 0x5A5A5A
+ "disable-show"
+ $Sum1203030009alter
+ text_unavailable
+ center-vertical-horizontal
+
+
+ ; - - -
+ ; ==================> Len = 16
; - - 12-03-03-0009
33
@@ -7928,6 +8195,7 @@ LIMENADE SODA"
Machine RemoveCup
Machine DoorLidOpen
+ Var buttonRemoveCup = "Invisible"
diff --git a/xml/page_catalog_group_recommend3.xml b/xml/page_catalog_group_recommend3.xml
index d81a282d..453b7bf9 100644
--- a/xml/page_catalog_group_recommend3.xml
+++ b/xml/page_catalog_group_recommend3.xml
@@ -236,6 +236,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
@@ -1809,6 +1826,256 @@ VOLCANO"
; menu_new_li;TAGESP
+ ; ==================> Len = 16
+ ; - - 12-03-03-0009-alter
+
+ 33
+ 22
+ 225
+ 296
+ Flag( 12-03-03-0009-alter.Button,Disable=Invisible,$Sum1203030009alter)
+
+
+ 16
+ 164
+ 24
+ 220
+ "multi2"
+ KanitMediumTTF
+ 0x322B26
+ showthaiText
+ "โอริโอ้ปั่นภูเขาไฟ"
+
+
+ 16
+ 220
+ 14
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ showthaiText
+ "นม น้ำตาล โอริโอ้
+ "
+
+
+ 16
+ 164
+ 22
+ 220
+ "multi2"
+ KanitMediumTTF
+ 0x322B26
+ showengText
+ "OREO SMOOTHIE
+VOLCANO"
+
+
+ 16
+ 220
+ 14
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ showengText
+ "Milk, Sugar, Oreo"
+
+
+ 16
+ 264
+ Var( DirImage2 + "option_deactive.png" )
+
+
+ 16
+ 264
+ "Invisible"
+ Var( DirImage2 + "hot.png" )
+ Var( DirImage2 + "hot_db.png" )
+
+
+ 50
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ 0xEAE6E1
+ "Invisible"
+ StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 81
+ 264
+ Var( DirImage2 + "cold.png" )
+ Var( DirImage2 + "cold_db.png" )
+ "Invisible"
+
+
+ 115
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitMediumTTF
+ 0x6F5F51
+ 0xEAE6E1
+ "Invisible"
+ StringFmt( $-.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 146
+ 264
+ Var( DirImage2 + "blend.png" )
+ Var( DirImage2 + "blend_db.png" )
+ $12-03-03-0009-alter.Button
+
+
+ 180
+ TextPriceMenuY
+ TextPriceMenuSize
+ 220
+ KanitRegularTTF
+ 0x6F5F51
+ 0xEAE6E1
+ $12-03-03-0009-alter.Button
+ StringFmt( $12-03-03-0009-alter.Price , DisplayFormat, PreScaleConvertShow) ; test
+
+
+ 81
+ 264
+
+ eval(
+ If ICE_PROCESS_STATUS = 2 Then
+
+ Var ice_tab_process_show = "Invisible"
+
+ Else
+ Var ice_tab_process_show = "Invisible"
+ EndIf
+ Var return = ice_tab_process_show
+ )
+
+ "ROOT/taobin_project/image/drink_option/ice_tab_unavalible.png"
+ "ROOT/taobin_project/image/drink_option/ice_tab_unavalible_dis.png"
+
+
+ 49
+ 117
+
+ eval(
+ If $Sum1203030009alter = "Disable" Then
+ STRCONTAIN "ERR" $##-##-##-####.TAG tag1_is_disable
+ STRCONTAIN "ERR" $##-##-##-####.TAG tag2_is_disable
+ STRCONTAIN "ERR" $12-03-03-0009-alter.TAG tag3_is_disable
+ Var return = "Invisible"
+ If tag1_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ If tag2_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ If tag3_is_disable = "true" Then
+ Var return = "Enable"
+ EndIf
+ Else
+ Var return = "Invisible"
+ EndIf
+ )
+
+ "ROOT/taobin_project/image//img_menu_err2.png"
+
+
+ 84
+ 266
+ 10
+ OpunMediumTTF
+ 0xDE794E
+ ice_tab_process_show
+ ice_show_open
+
+
+ 48
+ 116
+ 32
+ 128
+ 64
+ MITRegularTTF
+ 0x5A5A5A
+ "disable-show"
+ $Sum1203030009alter
+ text_unavailable
+ center-vertical-horizontal
+
+
+ ; - - -
; ==================> Len = 16
; - - 12-03-03-0009
@@ -8908,6 +9175,7 @@ LIMENADE SODA"
Machine RemoveCup
Machine DoorLidOpen
+ Var buttonRemoveCup = "Invisible"
diff --git a/xml/page_catalog_group_songkran.xml b/xml/page_catalog_group_songkran.xml
index de6e72ef..58201c35 100644
--- a/xml/page_catalog_group_songkran.xml
+++ b/xml/page_catalog_group_songkran.xml
@@ -215,6 +215,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_tea.xml b/xml/page_catalog_group_tea.xml
index 8efecba9..2655418c 100644
--- a/xml/page_catalog_group_tea.xml
+++ b/xml/page_catalog_group_tea.xml
@@ -219,6 +219,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_catalog_group_whey.xml b/xml/page_catalog_group_whey.xml
index e69d7411..3d6e3249 100644
--- a/xml/page_catalog_group_whey.xml
+++ b/xml/page_catalog_group_whey.xml
@@ -224,6 +224,23 @@
EndIf
EndIf
+
+ If CupOnArm = "true" Then
+
+ If CheckCupStateDoorCupClose = "" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+
+ If CheckCupStateDoorCupClose = "done" Then
+ Var buttonRemoveCup = "Enable"
+ EndIf
+ Else
+ If buttonRemoveCup = "Enable" Then
+ Var buttonRemoveCup = "Invisible"
+ EndIf
+ EndIf
+
+
Var Timeout = Timeout + 1
TimerReset
diff --git a/xml/page_face_compare.xml b/xml/page_face_compare.xml
index 80454153..32760057 100644
--- a/xml/page_face_compare.xml
+++ b/xml/page_face_compare.xml
@@ -16,7 +16,7 @@
- SAVELOG "EventActionOk"
+ SAVELOG "EventActionOk-facecompare"
Var FaceCompareStatus = "OK"
Var AdultFlag = 0
@@ -50,7 +50,7 @@
Var Price5Active = 0
Var FaceCompareStatus = "Fail"
- SAVELOG "EventActionError"
+ SAVELOG "EventActionError-facecompare"
Var load_gif_stage = "Invisible"
Var Timeout = 10
Var IDcardTextState = "Enable"
diff --git a/xml/page_identity_verification.xml b/xml/page_identity_verification.xml
index 6e56712e..21d50fe0 100644
--- a/xml/page_identity_verification.xml
+++ b/xml/page_identity_verification.xml
@@ -99,11 +99,6 @@
EndIf
- 09:59:35 [X]Var IDCardState=PRESENT
-09:59:35 [X]Var Timeout=112
-09:59:35 [X]Var LivenessResult=
-09:59:36 [X]Var IDCardStatus=ERROR
-
If IDCardStatus = "OK" Then
If IDCardReady = "OK" Then
If IDCardData = "ERROR" Then
@@ -245,7 +240,7 @@
EndIf
EndIf
-
+
If IDCardState = "PRESENT" Then
If IDCardStatus = "ERROR" Then
Var load_gif_stage = "Invisible"
@@ -311,6 +306,7 @@
"/mnt/sdcard/coffeevending/wav/click.wav"
SoundVolume
+ SAVELOG "Liveness Result - Cancel"
Open "ROOT/taobin_project/xml/page_catalog2.xml"
@@ -407,7 +403,10 @@
DEBUGVAR LivenessResult
If LivenessResult = "pass" Then
- SAVELOG "Liveness Result - pass"
+
+ Var strlog_liveness = "Liveness Result - pass " + FailTrickCount
+
+ SAVELOG strlog_liveness
Else
Var FailTrickCount = FailTrickCount + 1
Var strlog_liveness = "Liveness Result - fail " + FailTrickCount
diff --git a/xml/page_payment.xml b/xml/page_payment.xml
index c1ad6fe7..81eccd6c 100644
--- a/xml/page_payment.xml
+++ b/xml/page_payment.xml
@@ -10,6 +10,8 @@
Var IndoQR = 0
+
+
Var GetPayInfoFlag = 0
Var SessionID2 = ""
Var testservice = "kbank"
@@ -144,14 +146,7 @@
Var PlaySoundCodeLang = "ROOT/sounds/Code8digit.m4a"
EndIf
- Var PromotionIDCurrentOrder = 0
- If PromotionOreoVolcanoEnable = 1 Then
- If PD_CODE3 = "12-03-03-0009" Then
- Var PromotionIDCurrentOrder = 2
- EndIf
- EndIf
- DEBUGVAR PromotionIDCurrentOrder
SAVELOG MachineStage
diff --git a/xml/page_topping_select6.xml b/xml/page_topping_select6.xml
index e44002eb..b30c851e 100644
--- a/xml/page_topping_select6.xml
+++ b/xml/page_topping_select6.xml
@@ -303,33 +303,8 @@
Var PromotionIDCurrentOrder = 0
- If PromotionOreoVolcanoEnable = 1 Then
- If PD_CODE3 = "12-03-03-0009" Then
- Var PromotionIDCurrentOrder = 2
- EndIf
- EndIf
-
-
- If PromotionOreoToppingFreeEnable = 1 Then
-
-
- Var oreo_topping_wed_free = "Enable"
- Var oreo_topping_wed_topping = "Invisible"
- Else
-
- Var oreo_topping_wed_free = "Invisible"
- Var oreo_topping_wed_topping = "Enable"
-
- EndIf
-
- If ShowPromoitonOreo = 1 Then
-
- Else
- Var oreo_topping_wed_free = "Invisible"
- Var oreo_topping_wed_topping = "Invisible"
- EndIf
-
DEBUGVAR PromotionIDCurrentOrder
+
Var DiscountWithIdentifyState = "Invisible"
DEBUGVAR Price5Active
@@ -3250,6 +3225,8 @@
;
+
+
Var SelectDrink = UserSelectProductCode
; Set drink
Topping "Select" UserSelectProductCode
@@ -3428,6 +3405,8 @@
EndIf
;
+ Var PromotionIDCurrentOrder = 0
+
Var SelectDrink = UserSelectProductCode
@@ -3660,7 +3639,15 @@
EndIf
;
-
+ If OreoDueEnable = 1 Then
+ If UserSelectProductCode = "12-03-03-0009-alter" Then
+ Var PromotionIDCurrentOrder = 2
+ Var UserSelectProductCode = "12-03-03-0009"
+ EndIf
+ EndIf
+ DEBUGVAR PromotionIDCurrentOrder
+
+
Var SelectDrink = UserSelectProductCode
Var Seeker.selected_a_drink = UserSelectProductCode
@@ -3992,7 +3979,7 @@
EndIf
-
+
DEBUGVAR showOreoAddEnable
DEBUGVAR TOPPING_PRICE
diff --git a/xml_main/startup.xml b/xml_main/startup.xml
index e374c512..f6874713 100644
--- a/xml_main/startup.xml
+++ b/xml_main/startup.xml
@@ -108,8 +108,8 @@
Var RandomPromotionMyworld = 0
Var RandomSalePackage = 0
- Var XMLPageVersion = "7.15"
- Var XMLPageVersionInt = 715
+ Var XMLPageVersion = "7.16"
+ Var XMLPageVersionInt = 716