Actions
Development #7455
openFeature #7125: Discount Engine (M05)
Integrate M05 discount result with M04 tax calculation
Status:
New
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Complete Date:
Description
Refer to:
- docs/planning/modules/M05_Discount_Engine.md
- docs/planning/modules/M04_Tax_Calculation.md
Integrate the discount calculation output into the tax calculation pipeline.
Scope:
- Pass the correct post-discount taxable base to M04.
- Recalculate tax when a discount is added, changed or removed.
- Handle line-level discount impact on tax.
- Handle receipt-level discount allocation impact on tax.
- Ensure tax and discount calculation order follows the documented business/country rule.
- Avoid duplicating tax logic inside M05.
Expected flow:
Base Price → M05 Discount → Discounted Taxable Base → M04 Tax → Final Amount
Done when: Any change to M05 discounts causes the correct M04 tax recalculation without manual intervention.
No data to display
Actions