This PR changes how contribution and line item amounts are calculated for a fixed period me membership type.
Before
Calculation
When payment schedule is monthly, and fixed membership types are used, the pro rated amount will be calculated by days will be used regardless of membership type.
Contribution
When fixed membership type is used and membership is paid monthly, each contribution amounts will be divided by 12 from the pro rated amount.
Line Item
The logics for altering the line item are only based on below scenarios.
If line item has membership type
if line item is price set and membership type is fixed period
if line item does not attach to any membership type.
After
Calculation
When payment schedule is monthly, and fixed membership types are used, the pro rated amount will be calculated by days or by months depending on the membership type configuration.
Contribution
When fixed membership type is used and membership is paid monthly, each contribution amounts will be divided by number of months between membership start date and membership end date from pro rated amount.
Line Item
The logics for altering the line item are based on below scenarios.
if line item contains membership type
if line item is price set and membership type is fixed period and payment schedule is monthly
if line item is price set and membership type is fixed period and payment schedule is annual.
if line item is a non price set and membership type is fixed period
Overview
This PR changes how contribution and line item amounts are calculated for a fixed period me membership type.
Before
Calculation
Contribution
Line Item
The logics for altering the line item are only based on below scenarios.
After
Calculation
Contribution
Line Item
The logics for altering the line item are based on below scenarios.