Skip to content

🐛 Fix POS discount with tag filter applying to entire pool instead of matching items only#2393

Merged
Tirodem merged 1 commit intomainfrom
fix/pos_discount_on_tag_applies_on_whole_pool__2391
Feb 27, 2026
Merged

🐛 Fix POS discount with tag filter applying to entire pool instead of matching items only#2393
Tirodem merged 1 commit intomainfrom
fix/pos_discount_on_tag_applies_on_whole_pool__2391

Conversation

@gntw
Copy link
Contributor

@gntw gntw commented Feb 10, 2026

POS discount with a tag filter (e.g. 100% off "Alcohol") was incorrectly applied to the entire pool total in the split page and Global Ticket. Now only matching items are discounted; other items remain at full price.

Closes #2391

@Tirodem
Copy link
Contributor

Tirodem commented Feb 10, 2026

Global ticket amount is inconsistent with a discount on only one product type.
Price in UI is good, global ticket is not good, order amount is good, order receipt is good.
I don't understand the origin of the difference.
Otherwise, the discount by tag mechanic is working.

@gntw gntw force-pushed the fix/pos_discount_on_tag_applies_on_whole_pool__2391 branch 2 times, most recently from 9130e6e to 2a0a36f Compare February 11, 2026 10:52
@gntw gntw requested a review from roosemberth February 12, 2026 12:46
@gntw gntw force-pushed the fix/pos_discount_on_tag_applies_on_whole_pool__2391 branch 2 times, most recently from 5520c96 to ec453c4 Compare February 13, 2026 15:19
@Tirodem
Copy link
Contributor

Tirodem commented Feb 23, 2026

Fix seems functional ✅ Were change request applied previously ?

@Tirodem Tirodem force-pushed the fix/pos_discount_on_tag_applies_on_whole_pool__2391 branch from ec453c4 to 4393708 Compare February 26, 2026 15:16
@Tirodem
Copy link
Contributor

Tirodem commented Feb 26, 2026

@roosemberth I cannot validate requested changes, will you have the time to confirm them ? Otherwise I'll bypass tomorrow. Thanks.

- Set per-item discountPercentage by tag match in getHydratedOrderTab
- Replace blind total * (1 - percentage/100) with tag-aware calculation
- Group Global Ticket items by discount tag with per-group breakdown
- Use effective multiplier (total/totalBeforeDiscount) on printed ticket

Fixes issue #2391
@gntw gntw force-pushed the fix/pos_discount_on_tag_applies_on_whole_pool__2391 branch from 4393708 to 5ea2027 Compare February 27, 2026 08:45
@Tirodem Tirodem merged commit b4a1736 into main Feb 27, 2026
6 checks passed
@Tirodem Tirodem deleted the fix/pos_discount_on_tag_applies_on_whole_pool__2391 branch February 27, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Discount on tag now applies on whole pool

3 participants