Rammohan0504 commited on
Commit
d46fc5c
·
verified ·
1 Parent(s): 6defb35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -568,6 +568,8 @@ def order_summary():
568
 
569
  discount_percentage = 10 # Apply 10% discount
570
  discount = order['Total_Amount__c'] * (discount_percentage / 100) # Calculate the discount value
 
 
571
  print(discount)
572
  # Calculate the final total after applying discount
573
  final_total = order['Total_Amount__c'] - discount # Final price after discount
 
568
 
569
  discount_percentage = 10 # Apply 10% discount
570
  discount = order['Total_Amount__c'] * (discount_percentage / 100) # Calculate the discount value
571
+ discount = round(discount, 2)
572
+
573
  print(discount)
574
  # Calculate the final total after applying discount
575
  final_total = order['Total_Amount__c'] - discount # Final price after discount