update custom coffee visibility

This commit is contained in:
kenta-work 2023-09-07 11:08:39 +07:00
parent da6d3a2435
commit 35fc0d30b5

View file

@ -79,6 +79,8 @@
; Customer Coffee
Var CustomCoffeeEnable = "False"
Var showCoffeeWater = "Invisible"
Var showCoffeeQuantity = "Invisible"
Var showCoffeeLevel = "Invisible"
@ -925,6 +927,7 @@
Var PriceCustomCoffeeFormat = "%.0f฿"
If TOPPING7 = "water-level" Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
Var showCoffeeWater = "Enable"
@ -982,6 +985,7 @@
If TOPPING2 = "add-show-1009" Then
If toppingID2index3 = 1060 Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
Var showCoffeeQuantity = "Enable"
@ -1040,6 +1044,7 @@
EndIf
If TOPPING9 = "single-shot-espv2" Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
var showCoffeeLevel = "Enable"
@ -1099,6 +1104,7 @@
EndIf
If TOPPING9 = "double-shot-espv2" Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
var showCoffeeLevel = "Enable"
@ -1158,6 +1164,7 @@
EndIf
If TOPPING10 = "tampping-espv2" Then
Var CustomCoffeeEnable = "True"
Var showCustomCoffee = "Enable"
var showCoffeeTamping = "Enable"
@ -5233,13 +5240,13 @@
Var UserSelectProductCode = PD_CODE1
If showShotEnable = "Disable" Then
If showCustomCoffee = "Invisible" Then
If CustomCoffeeEnable = "False" Then
Var showShotEnable = "Enable"
EndIf
EndIf
If showCustomCoffee = "Invisible" Then
If showShotEnable = "Enable" Then
If CustomCoffeeEnable = "True" Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
@ -5267,13 +5274,13 @@
Var UserSelectProductCode = PD_CODE2
If showShotEnable = "Disable" Then
If showCustomCoffee = "Invisible" Then
If CustomCoffeeEnable = "False" Then
Var showShotEnable = "Enable"
EndIf
EndIf
If showCustomCoffee = "Invisible" Then
If showShotEnable = "Enable" Then
If CustomCoffeeEnable = "True" Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
@ -5307,7 +5314,7 @@
Var showShotEnable = "Disable"
EndIf
If showCustomCoffee = "Invisible" Then
If CustomCoffeeEnable = "True" Then
Var showCustomCoffee = "Enable"
EndIf
@ -5444,21 +5451,7 @@
; Invisible showCustomCoffee
Var showCustomCoffee = "Invisible"
Else
If TOPPING7 = "water-level" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING2 = "add-show-1009" Then
If toppingID2index3 = 1060 Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
If TOPPING9 = "single-shot-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING10 = "tampping-espv2" Then
If CustomCoffeeEnable = "True" Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
@ -5495,10 +5488,17 @@
DEBUGVAR CustomCoffeeDefault
If CustomCoffeeDefault = "false" Then
Var showShotEnable = "Disable"
If showShotEnable = "Enable" Then
Var showShotEnable = "Disable"
EndIf
Else
If showText4 = "Invisible" Then
Var showShotEnable = "Enable"
If showShotEnable = "Invisible" Then
Else
If blend_button_state = "PressForever" Then
Else
Var showShotEnable = "Enable"
EndIf
EndIf
EndIf