mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
11923: update voucher_amount logic
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user