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