chenge index id 2 from index2 to index3

This commit is contained in:
kenta-work 2023-09-06 16:01:20 +07:00
parent 1e4bd59a50
commit da6d3a2435

View file

@ -981,7 +981,7 @@
EndIf
If TOPPING2 = "add-show-1009" Then
If toppingID2index2 = 1060 Then
If toppingID2index3 = 1060 Then
Var showCustomCoffee = "Enable"
Var showCoffeeQuantity = "Enable"
@ -997,15 +997,15 @@
EndIf
If toppingID2index2 = toppingID2Default Then
Var CurrentCoffeeQuantityId = toppingID2index2
If toppingID2index3 = toppingID2Default Then
Var CurrentCoffeeQuantityId = toppingID2index3
Var CustomCoffeeQuantityState[0] = "Enable"
Var CustomCoffeeQuantityState[1] = "PressForever"
Var CustomCoffeeQuantityState[2] = "Enable"
EndIf
If toppingID2index3 = toppingID2Default Then
Var CurrentCoffeeQuantityId = toppingID2index3
If toppingID2index4 = toppingID2Default Then
Var CurrentCoffeeQuantityId = toppingID2index4
Var CustomCoffeeQuantityState[0] = "Enable"
Var CustomCoffeeQuantityState[1] = "Enable"
Var CustomCoffeeQuantityState[2] = "PressForever"
@ -1021,16 +1021,16 @@
; Var CustomCoffeeQuantityAdditionalPrice[0] = ""
; EndIf
;
; If toppingID2index2price > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index2price , PriceCustomCoffeeFormat, PreScaleConvertShow)
; If toppingID2index3price > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index3price , PriceCustomCoffeeFormat, PreScaleConvertShow)
; Var CustomCoffeeQuantityAdditionalPrice[1] = "(+" + priceFormated
; Var CustomCoffeeQuantityAdditionalPrice[1] = CustomCoffeeQuantityAdditionalPrice[1] + ")"
; Else
; Var CustomCoffeeQuantityAdditionalPrice[1] = ""
; EndIf
;
; If toppingID2index3price > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index3price , PriceCustomCoffeeFormat, PreScaleConvertShow)
; If toppingID2index4price > 0 Then
; Var priceFormated !assigned StringFmt( toppingID2index4price , PriceCustomCoffeeFormat, PreScaleConvertShow)
; Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated
; Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")"
; Else
@ -1791,7 +1791,7 @@
If TOPPING2 = "add-show-1009" Then
If toppingID2index2 = 60 Then
If toppingID2index3 = "" Then
Var ShotCoffeePremium = "Enable"
Var showShotEnable = "Invisible"
Var ExtraTopping = "Enable"
@ -4917,13 +4917,15 @@
Var topping2 = toppingID2index1
EndIf
If CustomCoffeeQuantityState[1] = "PressForever" Then
Var topping2 = toppingID2index2
EndIf
If CustomCoffeeQuantityState[2] = "PressForever" Then
Var topping2 = toppingID2index3
EndIf
If CustomCoffeeQuantityState[2] = "PressForever" Then
Var topping2 = toppingID2index4
EndIf
Else
Var topping2 = 0
If toppingID2index3 = 1060 Then
Var topping2 = 0
EndIf
EndIf
If showCoffeeLevel = "Enable" Then
@ -4954,7 +4956,9 @@
Var topping10 = 0
EndIf
Else
Var topping2 = 0
If toppingID2index3 = 1060 Then
Var topping2 = 0
EndIf
Var topping7 = 0
Var topping8 = 0
Var topping9 = 0
@ -5445,7 +5449,7 @@
EndIf
If TOPPING2 = "add-show-1009" Then
If toppingID2index2 = 1060 Then
If toppingID2index3 = 1060 Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
@ -5503,10 +5507,10 @@
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index1price
EndIf
If CustomCoffeeQuantityState[1] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index2price
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index3price
EndIf
If CustomCoffeeQuantityState[2] = "PressForever" Then
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index3price
Var TOPPING_PRICE = TOPPING_PRICE + toppingID2index4price
EndIf
If CustomCoffeeLevelState[0] = "PressForever" Then