gopichandra commited on
Commit
07aba00
·
verified ·
1 Parent(s): f4c2740

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -227,8 +227,7 @@ def subtract_stock_from_inventory(data):
227
 
228
  sf_object.update(record_id, {"Quantity_Sold__c": updated_quantity_sold})
229
 
230
- return f"Stock updated successfully in exit mode. Quantity sold for product
231
- '{product_name}': {updated_quantity_sold}."
232
  except Exception as e:
233
  return f"Error updating stock in Inventory_Management__c: {str(e)}"
234
 
 
227
 
228
  sf_object.update(record_id, {"Quantity_Sold__c": updated_quantity_sold})
229
 
230
+ return f"Stock updated successfully in exit mode. Quantity sold for product '{product_name}': {updated_quantity_sold}."
 
231
  except Exception as e:
232
  return f"Error updating stock in Inventory_Management__c: {str(e)}"
233