mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Remove track_inventory_levels conditional
This value is always true in OFN
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user