nagasurendra commited on
Commit
20e8ce3
·
verified ·
1 Parent(s): 6867b80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -360,7 +360,7 @@ def checkout():
360
  return jsonify({"success": False, "message": "Cart is empty"})
361
 
362
  # Calculate the total price of the order
363
- total_price = sum(item['Price__c'] * item['Quantity__c'] for item in cart_items)
364
 
365
  # Create the order in Salesforce
366
  order_data = {
 
360
  return jsonify({"success": False, "message": "Cart is empty"})
361
 
362
  # Calculate the total price of the order
363
+ total_price = sum(item['Price__c'] for item in cart_items)
364
 
365
  # Create the order in Salesforce
366
  order_data = {