feat(backend,waiter,terminal,manager): +1 on a sent line and changing a line's quantity

Owner 2026-11-23 (plan 6F.5). Product flag one_more_enabled (off by default; product editor).
POST /api/orders/{id}/items/{item}/again: a new line like the old one (choices, removed, note,
course), priced now, sent to the kitchen like any new line. Waiter app and the counter's table
panel: +1 beside such lines; the first tap arms it, more taps count up, 'Send +N' sends, 4 s idle
disarms (no stray sends).
POST /api/orders/{id}/items/{item}/quantity: venue setting orders.quantity_change (off | add_only |
add_and_remove, default off), key ordering.items.change_quantity (owner, store manager; Alembic 0049
grants it); up only changes the line, down cuts a cancelled part ('quantity lowered', split_from_id)
and prints a cancellation only when asked (the dialog presets yes while the kitchen hasn't finished).
Waiter: 'Change quantity' in a line's actions (now -> new, -/+). cut_part() now shared with split.
GET /api/orders/{id} items carry the product's one_more_enabled / unit_type, deal ids, split_from_id,
cancel_reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 08:26:46 +02:00
co-authored by Claude Opus 5.5
parent 0a353c5f97
commit 72e175ab73
35 changed files with 813 additions and 35 deletions
+6
View File
@@ -749,6 +749,12 @@ try {
r.check(`${st6} Operation: prices by hand "before sending only", a reason asked, a quick reason added`,
pcMode === 'before_sending' && await settingValue2('orders.price_change_reason') === 'true' && reasonsNow.includes('E2E: birthday'))
await page.getByTestId('setting-orders.price_change').selectOption('anytime')
// 6F.5: changing a sent line's quantity
await page.getByTestId('setting-orders.quantity_change').selectOption('add_only')
let qMode = ''
for (let i = 0; i < 30 && qMode !== 'add_only'; i++) { await sleep(150); qMode = await settingValue2('orders.quantity_change') }
r.check(`${st6} Operation: quantity changes "only add"`, qMode === 'add_only')
await page.getByTestId('setting-orders.quantity_change').selectOption('off')
await page.getByTestId('settings-price-changes').getByRole('switch').first().click()
await sleep(500)
await page.getByTestId('flag-new').click()