Rammohan0504 commited on
Commit
d8d6d04
·
verified ·
1 Parent(s): 23f35a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -600,13 +600,9 @@ def order_summary():
600
  WHERE Referral_Email__c = '{email}' AND Coupon_Status__c = 'Active'
601
  """)
602
 
603
- discount_percentage = 10 # Apply 10% discount
604
- discount = order['Total_Amount__c'] * (discount_percentage / 100) # Calculate the discount value
605
- discount = round(discount, 2)
606
-
607
- print(discount)
608
  # Calculate the final total after applying discount
609
- final_total = order['Total_Amount__c'] - discount # Final price after discount
610
  print(final_total)
611
 
612
  update_result = sf.Order__c.update(order['Id'], {
 
600
  WHERE Referral_Email__c = '{email}' AND Coupon_Status__c = 'Active'
601
  """)
602
 
603
+
 
 
 
 
604
  # Calculate the final total after applying discount
605
+ final_total = order['Total_Amount__c'] # Final price after discount
606
  print(final_total)
607
 
608
  update_result = sf.Order__c.update(order['Id'], {