Rammohan0504 commited on
Commit
22c5fc4
·
verified ·
1 Parent(s): afa308c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -566,8 +566,8 @@ def order_summary():
566
  WHERE Customer_Email__c = '{email}' AND Coupon_Status__c = 'Active'
567
  """)
568
 
569
- discount_percentage = 10 # Apply 10% discount
570
- discount = order['Total_Amount__c'] * (discount_percentage / 100) # Calculate the discount value
571
 
572
  # Calculate the final total after applying discount
573
  final_total = order['Total_Amount__c'] - discount # Final price after discount
 
566
  WHERE Customer_Email__c = '{email}' AND Coupon_Status__c = 'Active'
567
  """)
568
 
569
+ discount_percentage = 10 # Apply 10% discount
570
+ discount = order['Total_Amount__c'] * (discount_percentage / 100) # Calculate the discount value
571
 
572
  # Calculate the final total after applying discount
573
  final_total = order['Total_Amount__c'] - discount # Final price after discount