- setLineItem.cfm: Attach default children from ItemTemplateLinks (fixes drink choices not being saved for combos) - listForKDS.cfm: Include ItemParentName for modifier categories - kds.js: Display modifiers as "Category: Selection" format - Various other accumulated fixes for menu builder, orders, and admin Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
635 B
Text
22 lines
635 B
Text
<cfsetting showdebugoutput="false">
|
|
<cfcontent type="application/json; charset=utf-8" reset="true">
|
|
|
|
<cfscript>
|
|
// Delete cart orders (status 0) to reset for testing
|
|
result = queryExecute("
|
|
DELETE FROM OrderLineItems
|
|
WHERE OrderLineItemOrderID IN (
|
|
SELECT OrderID FROM Orders WHERE OrderStatusID = 0
|
|
)
|
|
", {}, { datasource = "payfrit" });
|
|
|
|
result2 = queryExecute("
|
|
DELETE FROM Orders WHERE OrderStatusID = 0
|
|
", {}, { datasource = "payfrit" });
|
|
|
|
writeOutput(serializeJSON({
|
|
"OK": true,
|
|
"MESSAGE": "Deleted all cart orders (status 0)",
|
|
"DELETED_ROWS": result2.recordCount ?: "unknown"
|
|
}));
|
|
</cfscript>
|