Worked example
Initial prorated refund: 41.66666667
Inputs
- Original bundle amount paid: 100
- Standalone prices of retained items: 40,30
- Standalone prices of returned items: 50
- Promotion reversal cap: 30
Supported rule: initial refund is returned-item share of original bundle price, then the merchant may recover discount on retained items up to a stated cap.
Currency changes the labels, not the amounts. No exchange-rate conversion.
Allocate original payment by standalone price weights.
Compare retained standalone value with its original payment share and cap recovery.
Subtract promotion recovery from prorated refund, floored at zero.
Subtract adjusted refund from original bundle payment.
Supported rule: initial refund is returned-item share of original bundle price, then the merchant may recover discount on retained items up to a stated cap. Refund never goes below zero.
OpenStax: Solve proportions and their applications ↗Initial prorated refund: 41.66666667
Initial prorated refund: 41.66666667