Update app.py (#4)
Browse files- Update app.py (c3e5b86cee0df90dabde969d658bc55ab6685396)
Co-authored-by: Surendra <[email protected]>
app.py
CHANGED
@@ -1175,7 +1175,7 @@ def checkout():
|
|
1175 |
if not customer_id:
|
1176 |
print("Customer record not found")
|
1177 |
return jsonify({"success": False, "message": "Customer record not found in Salesforce"})
|
1178 |
-
|
1179 |
# Store order data
|
1180 |
order_data = {
|
1181 |
"Customer_Name__c": user_id,
|
|
|
1175 |
if not customer_id:
|
1176 |
print("Customer record not found")
|
1177 |
return jsonify({"success": False, "message": "Customer record not found in Salesforce"})
|
1178 |
+
table_number = table_number if table_number != 'null' else None # Ensure 'null' string is replaced with None
|
1179 |
# Store order data
|
1180 |
order_data = {
|
1181 |
"Customer_Name__c": user_id,
|