CiviDiscount does not affect line item amounts
Created by: agileware-fj
CiviDiscount does not affect line item amounts
Steps to reproduce:
- Set up a discount code to work with memberships
- Start an offline membership renewal
- Enter the discount code on the renewal form
- observe the amounts have been changed on the form
- submit the renewal
- observe the total amount of the resulting contribution is correct
- print an invoice for the contribution, or use some other method to check the line item amounts
Expected results:
- The line item amount is adjusted for the discount
- The total amount corresponds to the sum of the line items
Actual results:
- The line item amount does not have the discount applied
- There is no additional line item for the discount
- The total amount has the discount applied, so is less than the sum of the lines.
I suspect this may be the results of hook_civicrm_buildAmount not actually being conferred to line items.