Remove track_inventory_levels conditional

This value is always true in OFN
This commit is contained in:
Matt-Yorkley
2020-04-09 09:18:28 +02:00
parent 5bb2614f9d
commit 6afda141a1

View File

@@ -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?