feat(backend): alert managers while a ticket keeps failing to print (setting print.alert_after_failures, default 2)
Owner request after step 1.11: hear about a failing ticket during service, not only when it's abandoned. - New notification print.failing (critical, all managers) when a print job's failed attempts reach print.alert_after_failures (ordering setting, default 2, 0 = never). Once per job; jobs on the same printer within an hour fold into one notification. print.failed_final (abandoned) stays. - Both the first attempt (route-and-print, sent after its commit) and the retry sweep report it. - Texts in en/el; tests for 1/2/3/0 and folding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ MODULE = Module(
|
||||
SettingDef('orders.waiter_price_adjust_allowed', 'false', "Allow waiters to adjust item prices (before or after ordering): 'true' | 'false'", type='bool'),
|
||||
SettingDef('payments.card_enabled', 'false', "Allow waiters to record card payments (in addition to cash): 'true' | 'false'", type='bool'),
|
||||
SettingDef('payments.waiter_revert_allowed', 'false', "Allow waiters to revert individual paid items back to unpaid: 'true' | 'false'", type='bool'),
|
||||
SettingDef('print.alert_after_failures', '2', 'Tell managers when a kitchen/bar ticket has failed to print this many times and is still retrying (0 = never; they are always told when a ticket is finally given up).', type='int'),
|
||||
SettingDef('print.beep_on_ticket', 'true', "Play beep when a kitchen ticket prints: 'true' | 'false'", type='bool'),
|
||||
SettingDef('print.beep_pattern', 'double', "Beep pattern: 'single' | 'double' | 'triple' | 'long' | 'custom:n1:n2:n3'", type='str'),
|
||||
SettingDef('print.divider_style', 'dash', 'Divider character used between sections: dash, equals, star, or empty', type='str'),
|
||||
|
||||
Reference in New Issue
Block a user