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 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-01-16 00:29:53 -08:00
parent fe383f40d0
commit ef6efa0762

View file

@ -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) {