Permalink
Browse files

Fix: don't update line_item discount unnecessarily

  • Loading branch information...
Adam Wróbel
Adam Wróbel committed Mar 11, 2011
1 parent e042671 commit ad5e78dd6ef36d9a475fb1752fdb28da32dbc9bf
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/line_item_decorator.rb
@@ -17,7 +17,7 @@ def update_volume_discount updated_order = nil
end
def amount_with_volume_discount
- update_volume_discount
+ check_update_volume_discount
amount_without_volume_discount + self.volume_discount
end
alias_method_chain :amount, :volume_discount

0 comments on commit ad5e78d

Please sign in to comment.