Skip to content

Commit

Permalink
Source order ref update
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Ivanov committed Feb 4, 2014
1 parent c8fa116 commit f37d608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/spree/line_item_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Spree::LineItem.class_eval do
def update_adjustment(adjustment, source) #source being the order
new_amount = if adjustment.originator and source.line_items.include? adjustment.originator
def update_adjustment adjustment, source
new_amount = if adjustment.originator and source.order.line_items.include? adjustment.originator
calculate_core_charge
else
0
Expand Down

0 comments on commit f37d608

Please sign in to comment.