mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb
Co-authored-by: Gaetan Craig-Riou <40413322+rioug@users.noreply.github.com>
This commit is contained in:
@@ -172,7 +172,7 @@ module Reporting
|
||||
return '' unless voucher_applicable?(order)
|
||||
|
||||
voucher = order.voucher_adjustments.take.originator
|
||||
voucher&.code.to_s # in case if we don't get the voucher, return ""
|
||||
voucher.code.to_s
|
||||
end
|
||||
|
||||
def voucher_amount(order)
|
||||
|
||||
Reference in New Issue
Block a user