Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct mistake from 35608ae

  • Loading branch information...
commit fae0f9b0fa9540f7fb01fc333564c77574261891 1 parent c3df674
@radar radar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  promo/app/models/spree/order_decorator.rb
View
2  promo/app/models/spree/order_decorator.rb
@@ -16,7 +16,7 @@ def update_adjustments_with_promotion_limiting
most_valuable_adjustment = adjustments.promotion.eligible.max{|a,b| a.amount.abs <=> b.amount.abs}
current_adjustments = (adjustments.promotion.eligible - [most_valuable_adjustment])
current_adjustments.each do |adjustment|
- if adjustment.originator.calculator.is_a?(Spree::Calculator::PerItem)
+ unless adjustment.originator.calculator.is_a?(Spree::Calculator::PerItem)
adjustment.update_attribute_without_callbacks(:eligible, false)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.