mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Line item adjustments are displayed separately, if we don't filter them here they get displayed twice.
12 lines
363 B
Ruby
12 lines
363 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 + order.all_adjustments.payment_fee.eligible
|
|
end
|
|
end
|
|
end
|