Skip to content

extensions/cividiscountls Fix discount to use largest amount, for given item

eileen requested to merge eileen/cividiscount:more into master

This addresses a long-standing issue / discussion with many PRs - see !215 (closed) #303 (closed)

I think there is general agreement that the highest applicable discount should apply but there is concern over

  1. re-introducing cumulative discounts - this is missed by some but not all
  2. having more than one discount per transaction, resulting in issues with tracking

This ensures that only one discount is applied but also that it is the one that gives the greatest discount (calculated across all line items)

Merge request reports

Loading