Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -600,13 +600,9 @@ def order_summary():
|
|
600 |
WHERE Referral_Email__c = '{email}' AND Coupon_Status__c = 'Active'
|
601 |
""")
|
602 |
|
603 |
-
|
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']
|
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'], {
|