11923: update voucher_amount logic

This commit is contained in:
Ahmed Ejaz
2024-01-03 15:54:32 +05:00
parent 3a957fb988
commit c06f251ff3

View File

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