THAI & AUS: Super update promotion & image menus

This commit is contained in:
Kenta420 2024-12-06 15:08:20 +07:00
parent 2cb72fc7b1
commit bce3edf85e
197 changed files with 86174 additions and 29402 deletions

View file

@ -15,6 +15,8 @@
; Open "ROOT/taobin_project/xml/page_payment_camera.xml"
;EndIf
Var ErrorCause = ""
Var PreScaleCanculate = 100
Var CashlessPayFlag = 0
@ -95,6 +97,7 @@
Var EMAEnterNumberButtonState = "Invisible"
Var EMAPopupSuccessState = "Invisible"
Var EMAPopupErrorState = "Invisible"
Var QRErrorText = "Errror scanning\nthe QR code"
Var alphaState = "Invisible"
Var alphaState2 = "Invisible"
@ -167,54 +170,34 @@
DEBUGVAR QRCODE99KBANK
Var PayWithCreditCardState = "Disable"
Var PayWithTaoCreditState = "Disable"
Var PayWithCouponState = "Disable"
Var PayWithAUBState = "Disable"
Var PayWithFatzebraState = "Disable"
If RoadShow = "true" Then
Var PayState1 = "Invisible"
Var PayState2 = "Invisible"
Var PayState3 = "Invisible"
Var PayState4 = "Invisible"
Var PayState5 = "Invisible"
Var PayState6 = "Invisible"
Var showRemaining = "Free"
Var PayWithCreditCardState = "Invisible"
Var PayWithTaoCreditState = "Invisible"
Var PayWithCouponState = "Invisible"
Var PayWithAUBState = "Invisible"
Var PayWithFatzebraState = "Invisible"
Var showRemaining = "Free"
Else
Var PayState1 = "Enable"
If cash_disable = "1" Then
Var PayState1 = "Press"
EndIf
If Seeker.IntVendingCampaign = 0 Then
Var PayState2 = "Enable"
Var PayState4 = "Enable"
Var PayState5 = "Enable"
Var PayState6 = "Enable"
Else
SAVELOG "Cash only IntVendingCampaign"
Var PayState2 = "Disable"
Var PayState4 = "Disable"
Var PayState5 = "Enable"
Var PayState6 = "Disable"
EndIf
Var PayState3 = "Enable"
DEBUGVAR CoinAmount
If CoinAmount > 0 Then
SAVELOG "Cash only CoinAmount"
Var PayState2 = "Disable"
Var PayState3 = "Disable"
Var PayState4 = "Disable"
Var PayState5 = "Disable"
Var PayState6 = "Disable"
Var CoinInFlag = 1
EndIf
Var PayWithCreditCardState = "Enable"
Var PayWithTaoCreditState = "Enable"
Var PayWithCouponState = "Enable"
Var PayWithAUBState = "Enable"
Var PayWithFatzebraState = "Enable"
If Seeker.IntVendingCredit > 0 Then
SAVELOG "Cash only IntVendingCredit"
Var PayState2 = "Disable"
Var PayState4 = "Disable"
Var PayState5 = "Disable"
Var PayState6 = "Disable"
Var PayWithCreditCardState = "Disable"
Var PayWithTaoCreditState = "Disable"
Var PayWithCouponState = "Disable"
Var PayWithAUBState = "Disable"
Var PayWithFatzebraState = "Disable"
EndIf
@ -347,13 +330,13 @@
EndIf
If SELLONLINE = 0 Then
SAVELOG "Cash only NetworkStatus down"
SAVELOG "Credit card only NetworkStatus down"
Var PayState2 = "Disable"
Var PayState3 = "Disable"
Var PayState4 = "Disable"
Var PayState5 = "Enable"
Var PayState6 = "Disable"
Var PayWithCreditCardState = "Enable"
Var PayWithTaoCreditState = "Disable"
Var PayWithCouponState = "Disable"
Var PayWithAUBState = "Disable"
Var PayWithFatzebraState = "Disable"
Var PayOfflineMode = 1
@ -371,10 +354,6 @@
DEBUGVAR NOCashFlag
If NOCashFlag = 1 Then
Var PayState1 = "Disable"
EndIf
;cancel order
If SELLSTATUS = "DEACTIVE" Then
Var SELLONLINE = 1
@ -382,29 +361,17 @@
Var pay_with_credit_image = DirImage + "/bp_pay_with_credit_AUS.png"
Var pay_with_chanel_text = DirImage + "/text_1.png"
;If DisableUsingCode = "true" Then
If DisableUsingCode = "-" Then
SAVELOG "Diable code because using topping."
Var PayState2 = "Disable"
Var pay_with_code_image = DirImage + "/bd_pay_with_code.png"
Var PayWithCouponState = "Disable"
Else
If Seeker.IntVendingCredit > 0 Then
Var pay_with_code_image = DirImage + "/bp_pay_with_code.png"
Var pay_with_credit_image = DirImage + "/bp_pay_with_credit_AUS.png"
Var pay_with_chanel_text = DirImage + "/text_2.png"
Else
Var pay_with_code_image = DirImage + "/bp_pay_with_code.png"
EndIf
EndIf
@ -426,12 +393,11 @@
;Open "ROOT/taobin_project/xml/page_page_camera.xml"
If RoadShow = "true" Then
Var PayState1 = "Invisible"
Var PayState2 = "Invisible"
Var PayState3 = "Invisible"
Var PayState4 = "Invisible"
Var PayState5 = "Invisible"
Var PayState6 = "Invisible"
Var PayWithCreditCardState = "Disable"
Var PayWithTaoCreditState = "Disable"
Var PayWithCouponState = "Disable"
Var PayWithAUBState = "Disable"
Var PayWithFatzebraState = "Disable"
EndIf
@ -783,6 +749,8 @@
<EventActionError>
DEBUGVAR ErrorCause
If ActionOKCase = 0 Then
If ReqPayInfoFlag = 1 Then
Var QRErrorFlag = 1
@ -824,16 +792,32 @@
Var LOADING_STATE = "Invisible"
EndIf
EndIf
If ReqPayInfoFlag = 6 Then
Var QRErrorFlag = 1
If alphaState = "Enable" Then
Var QR_POPUP = "/img_popup_ema_error.png"
Var EMAPopupErrorState = "Enable"
Var EMAEnterNumberButtonState = "Invisible"
Var LOADING_STATE = "Invisible"
Var popup_cancel_button_y = 1225
EndIf
EndIf
If ReqPayInfoFlag = 6 Then
Var QRErrorFlag = 1
If alphaState = "Enable" Then
; Server error
If ErrorCause = "failed_fromoper_1000" Then
Var QRErrorText = "A server error occurred"
EndIf
; Member not found
If ErrorCause = "failed_fromoper_1001" Then
Var QRErrorText = "Member cannot be found"
EndIf
; Not enough balance
If ErrorCause = "failed_fromoper_1002" Then
Var QRErrorText = "Not having enough\nbalance"
EndIf
Var QR_POPUP = "/img_popup8-2.png"
Var EMAPopupErrorState = "Enable"
Var EMAEnterNumberButtonState = "Invisible"
Var LOADING_STATE = "Invisible"
Var popup_cancel_button_y = 1225
EndIf
EndIf
Else
Var PayInfoCFlag = 1
EndIf
@ -925,9 +909,9 @@
If RoadShow = "true" Then
Else
Var PayState3 = "Disable"
Var PayState5 = "Disable"
Var PayState6 = "Disable"
Var PayWithTaoCreditState = "Press"
Var PayWithAUBState = "Press"
Var PayWithFatzebraState = "Press"
EndIf
Var LOADING_STATE = "Invisible"
@ -1526,7 +1510,7 @@
EndIf
EndIf
Else
Var QR_POPUP = "/img_popup_ema_error.png"
Var QR_POPUP = "/img_popup8-2.png"
Var EMAPopupErrorState = "Enable"
Var alphaState = "Enable"
Var LOADING_STATE = "Invisible"
@ -1621,7 +1605,7 @@
<Button>
<X> 216 </X>
<Y> 1276 </Y>
<State> PayState5 </State>
<State> PayWithCreditCardState </State>
<Filename> Var( DirImage + "/bn_pay_with_ccard.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_pay_with_ccard.png") </FilenamePress>
<FilenameDisable> Var( DirImage + "/bd_pay_with_ccard.png") </FilenameDisable>
@ -1649,10 +1633,10 @@ EndIf
<Button>
<X> 439 </X>
<Y> 1276 </Y>
<State> PayState4</State>
<State> PayWithTaoCreditState </State>
<Filename> Var( DirImage + "/bn_pay_with_credit_AUS.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_pay_with_credit_AUS.png") </FilenamePress>
<FilenameDisable> pay_with_credit_image </FilenameDisable>
<FilenameDisable> Var( DirImage + "/bd_pay_with_credit_AUS.png") </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -1680,10 +1664,10 @@ EndIf
<Button>
<X> 664 </X>
<Y> 1276 </Y>
<State> PayState2</State>
<State> PayWithCouponState </State>
<Filename> Var( DirImage + "/bn_pay_with_code.png") </Filename>
<FilenamePress> Var( DirImage + "/bp_pay_with_code.png") </FilenamePress>
<FilenameDisable> pay_with_code_image </FilenameDisable>
<FilenameDisable> Var( DirImage + "/bd_pay_with_code.png") </FilenameDisable>
<Sound> "/mnt/sdcard/coffeevending/wav/click.wav" </Sound>
<Volume> SoundVolume </Volume>
<EventClick>
@ -1708,7 +1692,7 @@ EndIf
<Button>
<X> 552 </X>
<Y> 1499 </Y>
;<State> PayState3</State>
;<State> PayWithFatzebraState </State>
<State> "Invisible" </State>
<Filename> "ROOT/taobin_project/inter/aus/image/payment_cash/bn_pay_qrcode.png" </Filename>
<FilenamePress> "ROOT/taobin_project/inter/aus/image/payment_cash/bp_pay_qrcode.png" </FilenamePress>
@ -1812,8 +1796,7 @@ EndIf
<Button>
<X> 328 </X>
<Y> 1499 </Y>
<State> PayState6 </State>
;<State> "Invisible" </State>
<State> PayWithAUBState </State>
<Filename> "ROOT/taobin_project/inter/aus/image/payment_cash/bn_pay_with_ema.png" </Filename>
<FilenamePress> "ROOT/taobin_project/inter/aus/image/payment_cash/bp_pay_with_ema.png" </FilenamePress>
<FilenameDisable> "ROOT/taobin_project/inter/aus/image/payment_cash/bd_pay_with_ema.png" </FilenameDisable>
@ -2001,6 +1984,18 @@ EndIf
<Value> EMAMemberBalance </Value>
</Text>
<Text>
<X> 249 </X>
<Y> 821 </Y>
<State> EMAPopupErrorState </State>
<Width> 583 </Width>
<Font> KanitRegularTTF </Font>
<Size> 48 </Size>
<Color> 0x513C2F </Color>
<Align> center-vertical-horizontal </Align>
<Value> QRErrorText </Value>
</Text>
<Button>
<X> 402 </X>
<Y> 1080 </Y>