Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -566,8 +566,8 @@ def order_summary():
|
|
566 |
WHERE Customer_Email__c = '{email}' AND Coupon_Status__c = 'Active'
|
567 |
""")
|
568 |
|
569 |
-
|
570 |
-
|
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
|