You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Inventory for add-ons (stock, low-stock, transactional deduct/restore) #358
Feature: Inventory for add-ons (stock, low-stock, transactional deduct/restore)
Summary
Today only products (products.stock_quantity, track_inventory, low_stock_threshold) track inventory. Add-ons (e.g. "extra cheese") have no stock, so a customer can order unlimited out-of-stock items.
What already exists
addon_groups already have is_required, min_selection, max_selection, allow_multiple_quantities (main/db.ts:4131-4139) and the server validates submitted add-ons against the catalog (main/routes/orders.tsresolveItemAddons).
Validate + decrement on order creation, restore the exact deducted quantity on cancel/void/refund — transactionally (same pattern as products in main/routes/index.ts/orders.ts).
Low-stock warnings surfaced in the add-on picker.
Notes
Deliberately not building ingredient/recipe inventory (an ERP) — just enough so "extra avocado is sold out" works. Reuse the append-only inventory movement ledger direction of #280 when available.
Acceptance criteria
Add-ons can have stock fields; order creation validates availability and deducts.
Activity
khaira777 commentedon Oct 5, 2026
Kickoff for the add-on inventory delivery. Branch: feat/addon-inventory-358. Pull request: #967