Enhancement: Add-on Multi-Quantity Support#122
Merged
Conversation
khaira777
force-pushed
the
main
branch
2 times, most recently
from
July 22, 2026 21:59
46f0145 to
c6f9e70
Compare
…issue #83) - Add migration v33 with addon_groups.allow_multiple_quantities column - Update backend order and tax routes to validate and compute addon quantities - Update POS AddonModal with +/- quantity controls and total group bounds check - Update cart store identity generation and subtotal calculations - Format add-on quantities on KDS views and printed receipts (e.g. Sugar ×3) - Add comprehensive integration test suite in tests/issue-122-addon-quantities.test.ts
…toggle to products addon modal - Add server-side validateItemAddonGroupLimits helper in main/routes/orders.ts to enforce allow_multiple_quantities, min_selection, and max_selection on order placement - Update Products page add-on group editor state, form submit handler, and modal UI to load, edit, and submit allow_multiple_quantities - Add backend group limit enforcement integration test assertions in tests/issue-122-addon-quantities.test.ts
# Conflicts: # frontend/src/components/pos/AddonModal.tsx
…ddon count + inactive category indicators - Unify layout in POS AddonModal so both single-select and multi-select rows show price next to name on the left and action controls (+ / [- 1 +]) on the right - Add Add-ons column in Products page table showing total addon groups linked to each product - Add Inactive Category warning badge to Products page table when a product's parent category is disabled
…e browser printing mode, and fix toggle alignment - Enforce required add-on group selection in POS AddonModal (disabled Add to Cart button + red warning when required count not met) - Handle browser print mode smoothly in usePrinter (call printViaBrowser instead of throwing uncaught Error) - Add shrink-0, gap-4, and flex-1 min-w-0 to settings page toggle rows to prevent switch cutoff on small screens
Contributor
Author
PR #122 Summary: Add-on Multi-Quantity Support (Issue #83)1. Overview & ArchitectureThis PR completes the full implementation of multi-quantity add-on support per add-on group. Store owners can configure whether an add-on group allows customers to select multiple quantities of individual add-on items (e.g. 2x Extra Shot, 3x Syrup) while strictly enforcing group minimum and maximum selection caps. 2. Key ChangesDatabase Schema
Backend Routes & Validation (
|
khaira777
marked this pull request as ready for review
July 23, 2026 14:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #83. Work in progress for add-on configuration UX and multi-quantity support.