mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove stock check done for payment fees
This commit is contained in:
@@ -32,12 +32,7 @@ module Spree
|
||||
|
||||
# This is called by the calculator of a payment method
|
||||
def line_items
|
||||
if order.complete? && Spree::Config[:track_inventory_levels]
|
||||
inventory_item_ids = order.distributor.inventory_items.pluck(:variant_id)
|
||||
order.line_items.select { |li| inventory_item_ids.include?(li.variant_id) }
|
||||
else
|
||||
order.line_items
|
||||
end
|
||||
order.line_items
|
||||
end
|
||||
|
||||
# Pin payments lacks void and credit methods, but it does have refund
|
||||
|
||||
Reference in New Issue
Block a user