mikefarmer/spree — comment on commit ef31aa2546427e9746e31f73a6ea5bf4c26fd6e3
File: promo/app/models/promotion.rb line 97
By mikefarmer:

I have contemplated reworking this method and calling it something like create_coupon_adjustments since it is coupon specific. I also think we need to update it to handle recalculating coupon amounts. Right now, it only looks at the current coupons on the order and doesn't take into account previous coupons added to the order. It probably wouldn't take much to rework this a little to support adding coupons to the order when coupons already exist. The harder scenario is removing coupons from the order. That would probably need to be handled in another method.