Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|