CiviDiscount override the amount regardless the number of terms for membership
Similar to #860 (closed) , the amount is overridden regardless of the terms. But the expired date is right.
Step to reproduce:
- create a discount code for membership
- create or renew membership with credit card
- set the terms to two or more
- submit and check the created contribution and membership
For example, the membership fee is $100 per term. We submit the form with 3 terms. The discount is 25% off.
Expected results:
- contribution amount is adjusted correctly: 100 * 3 * 75% = 225
- membership expired date matches the terms: 3 terms
Actual results:
- contribution amount is one term price adjusted by the discount: 75
- membership expired date matches the terms: 3 terms
Agileware ref: CIVICRM-1307