From af66e0366ae8f279e6a68290d14c318fb6579288 Mon Sep 17 00:00:00 2001 From: Denis Ivanov Date: Thu, 14 Jun 2012 18:42:04 -0300 Subject: [PATCH] This is a charge not a discount --- app/models/spree/line_item_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/line_item_decorator.rb b/app/models/spree/line_item_decorator.rb index f0b63b6..98b60bb 100644 --- a/app/models/spree/line_item_decorator.rb +++ b/app/models/spree/line_item_decorator.rb @@ -19,6 +19,6 @@ def eligible?(source = nil) def calculate_core_charge return unless product.core_amount - - self.quantity * product.core_amount + self.quantity * product.core_amount end end