chrisjrn / registrasion

A conference registration app, built on top of the Symposion conference management system
Apache License 2.0
18 stars 14 forks source link

Discounts do not always apply to the highest-value product in the cart #88

Closed chrisjrn closed 8 years ago

chrisjrn commented 8 years ago

Looks like you can sometimes get a cheaper item attracting a discount. It's because product_items in CartController._recalculate_discounts(self) doesn't correctly order the product items -- they should be ordered in descending order of price.