From 84a41957a2b9b5249d22393ddda3cb687ba35fbc Mon Sep 17 00:00:00 2001 From: Ittipat Lusuk Date: Mon, 19 May 2025 16:42:10 +0700 Subject: [PATCH] Topping7 : Change shot index, Fixed case espresso-v1 --- xml/page_topping_select7.xml | 41 +++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/xml/page_topping_select7.xml b/xml/page_topping_select7.xml index f57fada8..a500cbab 100644 --- a/xml/page_topping_select7.xml +++ b/xml/page_topping_select7.xml @@ -2380,7 +2380,14 @@ Var showShotEnable = "Invisible" Var ExtraTopping = "Enable" Else - Var EnableLightRoast = "Enable" + If toppingID2index3 = 0 Then + Var EnableLightRoast = "Invisible" + Var ShotCoffeePremium = "Enable" + Var showShotEnable = "Invisible" + Var ExtraTopping = "Enable" + Else + Var EnableLightRoast = "Enable" + EndIf EndIf DEBUGVAR TOPPING2 @@ -2438,16 +2445,16 @@ Var CustomCoffeeQuantityAdditionalPrice[0] = "" EndIf - If toppingID2price2 > 0 Then - Var priceFormated !assigned StringFmt( toppingID2price2 , PriceCustomCoffeeFormat, PreScaleConvertShow) + If toppingID2price3 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price3 , PriceCustomCoffeeFormat, PreScaleConvertShow) Var CustomCoffeeQuantityAdditionalPrice[1] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[1] = CustomCoffeeQuantityAdditionalPrice[1] + ")" Else Var CustomCoffeeQuantityAdditionalPrice[1] = "" EndIf - If toppingID2price3 > 0 Then - Var priceFormated !assigned StringFmt( toppingID2price3 , PriceCustomCoffeeFormat, PreScaleConvertShow) + If toppingID2price4 > 0 Then + Var priceFormated !assigned StringFmt( toppingID2price4 , PriceCustomCoffeeFormat, PreScaleConvertShow) Var CustomCoffeeQuantityAdditionalPrice[2] = "(+" + priceFormated Var CustomCoffeeQuantityAdditionalPrice[2] = CustomCoffeeQuantityAdditionalPrice[2] + ")" Else @@ -2455,6 +2462,18 @@ EndIf EndIf + If CustomCoffeeQuantityAdditionalPrice[1] = "" Then + Var CustomCoffeeQuantityTextX[1] = 809 + Else + Var CustomCoffeeQuantityTextX[1] = 784 + EndIf + + If CustomCoffeeQuantityAdditionalPrice[2] = "" Then + Var CustomCoffeeQuantityTextX[2] = 922 + Else + Var CustomCoffeeQuantityTextX[2] = 892 + EndIf + ;-END @@ -6096,7 +6115,7 @@ - 694 + 699 CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -6106,7 +6125,8 @@ - 784 + "Enable" + CustomCoffeeQuantityTextX[1] CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -6116,7 +6136,8 @@ - 892 + "Enable" + CustomCoffeeQuantityTextX[2] CustomCoffeeTextY KanitRegularTTF showCoffeeQuantity @@ -7907,10 +7928,10 @@ Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price1 EndIf If CustomCoffeeQuantityState[1] = "PressForever" Then - Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price2 + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3 EndIf If CustomCoffeeQuantityState[2] = "PressForever" Then - Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price3 + Var TOPPING_PRICE = TOPPING_PRICE + toppingID2price4 EndIf If CustomCoffeeLevelState[0] = "PressForever" Then