From 25c1f64876997747d81dd25bef55dfdce8113a44 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Thu, 4 Jan 2024 12:53:24 +0500 Subject: [PATCH] Update lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb Co-authored-by: Gaetan Craig-Riou <40413322+rioug@users.noreply.github.com> --- .../orders_and_fulfillment/order_cycle_customer_totals.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb b/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb index 298df7daa7..8a538dfe23 100644 --- a/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb +++ b/lib/reporting/reports/orders_and_fulfillment/order_cycle_customer_totals.rb @@ -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)