From e20aede25fd08b29037493057077be11eae2a3bb Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Mon, 12 Jan 2026 18:09:54 -0800 Subject: [PATCH] Fix KDS to show all selected modifiers including defaults Previously the KDS was skipping modifiers marked as "checked by default", but for exclusive selection groups (like drink choices) the customer's actual selection should always be visible to the kitchen. Co-Authored-By: Claude Opus 4.5 --- kds/kds.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kds/kds.js b/kds/kds.js index a28d325..396df7b 100644 --- a/kds/kds.js +++ b/kds/kds.js @@ -332,11 +332,14 @@ function renderAllModifiers(modifiers, allItems) { const leafModifiers = []; function collectLeafModifiers(mods) { mods.forEach(mod => { - if (mod.ItemIsCheckedByDefault === 1 || mod.ItemIsCheckedByDefault === true || mod.ItemIsCheckedByDefault === "1") return; + // Show ALL selected modifiers - don't skip defaults + // The customer made a choice and it should be visible on the KDS const children = allItems.filter(item => item.OrderLineItemParentOrderLineItemID === mod.OrderLineItemID); if (children.length === 0) { + // This is a leaf node (actual selection) leafModifiers.push({ mod, path: getModifierPath(mod) }); } else { + // Has children, recurse deeper collectLeafModifiers(children); } });