THAI: Added ธันวาทันใจ, 4 เมนูรูปจริง, 3 เมนูชา

This commit is contained in:
Kenta420 2024-11-26 10:33:09 +07:00
parent a84aafb73c
commit 46e333b5e4
101 changed files with 37248 additions and 155 deletions

View file

@ -291,6 +291,44 @@
from_happy_trios = True
else:
from_happy_trios = False
if current_file_name == "page_catalog_group_pro_12_day_12_menu.skt":
from_12_day_12_menu = True
price_12_day_12_menu = {
"12-03-03-0067": 40,
"12-02-03-0058": 40,
"12-03-03-0058": 30,
"12-03-03-0006": 30,
"12-01-02-0001": 25,
"12-21-02-0001": 25,
"12-03-03-0011": 30,
"12-03-03-0010": 30,
"12-31-02-0001": 30,
"12-11-02-0001": 30,
"12-02-02-0064": 30,
"12-02-02-0039": 30,
"12-02-02-0042": 25,
"12-05-02-0025": 15,
}
original_price_12_day_12_menu = {
"12-03-03-0067": 55,
"12-02-03-0058": 60,
"12-03-03-0058": 40,
"12-03-03-0006": 40,
"12-01-02-0001": 35,
"12-21-02-0001": 35,
"12-03-03-0011": 45,
"12-03-03-0010": 45,
"12-31-02-0001": 45,
"12-11-02-0001": 45,
"12-02-02-0064": 45,
"12-02-02-0039": 45,
"12-02-02-0042": 35,
"12-05-02-0025": 25,
}
else:
from_12_day_12_menu = False
price_12_day_12_menu = {}
original_price_12_day_12_menu = {}
#print ("######################################################################################################")
idx_of_eng = 2
@ -515,6 +553,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[6] + '.Price\r\n')
elif from_12_day_12_menu:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(price_12_day_12_menu, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(price_12_day_12_menu, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(price_12_day_12_menu, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_1)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_2)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_3)) + '\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
@ -648,6 +693,9 @@
if from_happy_trios:
out_xml( '\t\tVar FromHappyTriosPro = 1 \r\n')
if from_12_day_12_menu:
out_xml( '\t\tVar From12Day12MenuPro = 1 \r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\t'+ button_add_string +'\r\n')
out_xml( '\t\tOpen "ROOT/taobin_project/xml/page_topping_select5.xml"\r\n')
@ -862,6 +910,8 @@
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif from_12_day_12_menu:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -877,6 +927,8 @@
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[5])) + '" </Value>\r\n')
elif from_12_day_12_menu:
out_xml( '\t<Value> "฿' + str(GetPrice(price_12_day_12_menu, spl[5])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -953,6 +1005,8 @@
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif from_12_day_12_menu:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(price_12_day_12_menu, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -968,6 +1022,8 @@
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[6])) + '" </Value>\r\n')
elif from_12_day_12_menu:
out_xml( '\t<Value> "฿' + str(GetPrice(price_12_day_12_menu, spl[6])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -1178,6 +1234,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[10] + '.Price\r\n')
elif from_12_day_12_menu:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(price_12_day_12_menu, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(price_12_day_12_menu, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(price_12_day_12_menu, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_1)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD2 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_2)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD3 = ' + str(GetOriginalPrice(original_price_12_day_12_menu, pd_code_3)) + '\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[9] + '.Price\r\n')
@ -1301,6 +1364,9 @@
if from_happy_trios:
out_xml( '\t\tVar FromHappyTriosPro = 1 \r\n')
if from_12_day_12_menu:
out_xml( '\t\tVar From12Day12MenuPro = 1 \r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')