From f37d6083b8537f22f479bd1156ce98cee886acf4 Mon Sep 17 00:00:00 2001 From: Denis Ivanov Date: Tue, 4 Feb 2014 13:03:27 -0800 Subject: [PATCH] Source order ref update --- app/models/spree/line_item_decorator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/spree/line_item_decorator.rb b/app/models/spree/line_item_decorator.rb index d80816a..94f1853 100644 --- a/app/models/spree/line_item_decorator.rb +++ b/app/models/spree/line_item_decorator.rb @@ -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