mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
14 lines
394 B
Ruby
14 lines
394 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|