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:
Ahmed Ejaz
2024-01-04 12:53:24 +05:00
committed by GitHub
parent 883bfcdf0d
commit 25c1f64876

View File

@@ -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)