Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -610,7 +610,6 @@ def order_summary():
|
|
610 |
|
611 |
update_result = sf.Order__c.update(order['Id'], {
|
612 |
"Total_Amount__c": final_total, # Update total amount with the discount
|
613 |
-
"Offers_Applied__c": f"Discount Applied: {coupon['Coupon_Code__c']} - ${discount} ({discount_percentage}% off)" # Store discount in offers applied field
|
614 |
})
|
615 |
|
616 |
print(f"Updated order: {update_result}")
|
|
|
610 |
|
611 |
update_result = sf.Order__c.update(order['Id'], {
|
612 |
"Total_Amount__c": final_total, # Update total amount with the discount
|
|
|
613 |
})
|
614 |
|
615 |
print(f"Updated order: {update_result}")
|