mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
14 lines
422 B
Ruby
14 lines
422 B
Ruby
module Admin
|
|
module OrdersHelper
|
|
# Adjustments to display under "Order adjustments".
|
|
#
|
|
# We exclude shipping method adjustments because they are displayed in a
|
|
# separate table together with the order line items.
|
|
def order_adjustments_for_display(order)
|
|
order.adjustments.eligible.reject do |adjustment|
|
|
adjustment.originator_type == "Spree::ShippingMethod"
|
|
end
|
|
end
|
|
end
|
|
end
|