Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -604,12 +604,7 @@ def order_summary():
|
|
604 |
print(final_total)
|
605 |
|
606 |
|
607 |
-
|
608 |
-
"Total_Amount__c": final_total, # Update total amount with the discount
|
609 |
-
"Offers_Applied__c": f"Discount Applied: {coupon['Coupon_Code__c']} - ${discount} ({discount_percentage}% off)" # Store discount in offers applied field
|
610 |
-
})
|
611 |
-
|
612 |
-
print(f"Updated order: {update_result}")
|
613 |
|
614 |
return render_template("order.html", order=order, discount=discount, final_total=final_total)
|
615 |
|
|
|
604 |
print(final_total)
|
605 |
|
606 |
|
607 |
+
|
|
|
|
|
|
|
|
|
|
|
608 |
|
609 |
return render_template("order.html", order=order, discount=discount, final_total=final_total)
|
610 |
|