THAI: Fix bug again. Even we have enough credit we have to adddata 22 but instead of use all credit, just use only drink price.

This commit is contained in:
Kenta420 2024-07-26 15:24:02 +07:00
parent abda487328
commit 171b90c946

View file

@ -110,17 +110,17 @@
Open "ROOT/taobin_project/xml/page_member_topupCash.xml"
Else
If TopupFromPage = "payment" Then
If NotEnoughPayment = 1 Then
If ReqPayWithCash = 0 Then
Var TelephoneNumber = Seeker.TNumberTaobinCredit
If ReqPayWithCash = 0 Then
Var TelephoneNumber = Seeker.TNumberTaobinCredit
If NotEnoughPayment = 1 Then
Var useCreditAmount = SumCreditAmount
Var BmiYear = useCreditAmount
Var GetScore = "useCredit"
AddData 22 TelephoneNumber BmiYear PointCrm GetScore
Var ReqPayWithCash = 1
Else
Var useCreditAmount = PayAmountSubDiscount
EndIf
Else
Open "ROOT/taobin_project/xml/page_payment_credit3-TopupCash.xml"
Var BmiYear = useCreditAmount
Var GetScore = "useCredit"
AddData 22 TelephoneNumber BmiYear PointCrm GetScore
Var ReqPayWithCash = 1
EndIf
Else
Open "ROOT/taobin_project/xml/page_topup_credit3-TopupCash.xml"