Rammohan0504 commited on
Commit
51026ee
·
verified ·
1 Parent(s): 9d6d30e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -604,12 +604,7 @@ def order_summary():
604
  print(final_total)
605
 
606
 
607
- update_result = sf.Order__c.update(order['Id'], {
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