From c06f251ff3233dbc11788fb2bf40ed573513f2c1 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Wed, 3 Jan 2024 15:54:32 +0500 Subject: [PATCH] 11923: update voucher_amount logic --- .../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 e1a6fbd845..298df7daa7 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 @@ -178,7 +178,7 @@ module Reporting def voucher_amount(order) return '' unless voucher_applicable?(order) - (order.total - order.pre_discount_total).abs + order.pre_discount_total - order.total end def voucher_applicable?(order)