mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Fix sum call in quantifier
This commit is contained in:
@@ -15,7 +15,7 @@ module Spree
|
||||
# may still be in an active cart after it's deleted, so this will mark it as out of stock.
|
||||
return 0 if @variant.deleted?
|
||||
|
||||
stock_items.sum(&:count_on_hand)
|
||||
stock_items.sum(:count_on_hand)
|
||||
end
|
||||
|
||||
def backorderable?
|
||||
|
||||
Reference in New Issue
Block a user