From 6afda141a18e4664d4a194a7086244bfedafd382 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 9 Apr 2020 09:18:28 +0200 Subject: [PATCH] Remove track_inventory_levels conditional This value is always true in OFN --- app/models/spree/stock/quantifier.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/spree/stock/quantifier.rb b/app/models/spree/stock/quantifier.rb index b046dc2b17..8c437dc580 100644 --- a/app/models/spree/stock/quantifier.rb +++ b/app/models/spree/stock/quantifier.rb @@ -11,11 +11,7 @@ module Spree end def total_on_hand - if Spree::Config.track_inventory_levels - stock_items.sum(&:count_on_hand) - else - Float::INFINITY - end + stock_items.sum(&:count_on_hand) end def backorderable?