THAI: make drink smoothie

This commit is contained in:
Kenta420 2025-05-08 12:41:44 +07:00
parent 86588e10c0
commit e7a4678c82
5 changed files with 34 additions and 120 deletions

View file

@ -0,0 +1,26 @@
SAVELOG "[MAKE_DRINK]"
DEBUGVAR Seeker
DEBUGVAR SmoothieToPayment
If Seeker = "curr" Then
If New_Payment = 1 Then
__CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID
EndIf
If SmoothieToPayment = 1 Then
; do nothing
Else
MakeDrinkV1 SelectDrink SelectSugarID
EndIf
Var TxRef1 = ""
CreateTxRef1 TxRef1
Else
Var TxRef1 = ""
CreateTxRef1 TxRef1
Var DrinkPaid = SelectDrink
Var PaidPaymentFromNextStage = 1
EndIf
If SmoothieToPayment = 1 Then
Open "ROOT/taobin_project/xml/page_spiral_sell.xml"
Else
Open "ROOT/taobin_project/xml/page_thankyou.xml"
EndIf