From ef6efa0762684eb05fe30a92932b422f47cc656a Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Fri, 16 Jan 2026 00:29:53 -0800 Subject: [PATCH] Filter default modifiers from KDS display Only show customized modifiers on the Kitchen Display System, hiding default/unaltered selections to reduce clutter. Co-Authored-By: Claude Sonnet 4.5 --- kds/kds.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kds/kds.js b/kds/kds.js index c348fb1..4abeb3d 100644 --- a/kds/kds.js +++ b/kds/kds.js @@ -343,8 +343,12 @@ function renderAllModifiers(modifiers, allItems) { function collectLeafModifiers(mods, depth = 0) { console.log(` collectLeafModifiers depth=${depth}, processing ${mods.length} mods:`, mods.map(m => m.ItemName)); mods.forEach(mod => { - // Show ALL selected modifiers - don't skip defaults - // The customer made a choice and it should be visible on the KDS + // Skip default modifiers - only show customizations + if (mod.ItemIsCheckedByDefault) { + console.log(` Skipping default modifier: ${mod.ItemName}`); + return; + } + const children = allItems.filter(item => item.OrderLineItemParentOrderLineItemID === mod.OrderLineItemID); console.log(` Mod: ${mod.ItemName} (ID: ${mod.OrderLineItemID}) has ${children.length} children`); if (children.length === 0) {