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