Discount wants 50 billion minus the voucher amount
We use CiviDiscount with euros instead of dollars.
Let's say we have a membership for 50 euros. If we use a voucher for less than 50 euros for this membership, there is no problem.
If we redeem a voucher of 50 Euro or more for this membership, there will be wrong entries - but proper processing. On the input page I enter the voucher and press redeem - CiviCRM recognizes that the voucher amount is enough and does not load the payment processors. Thats correct. If I click continue, I get to the verification page. There the membership fee to pay is shown as 50 billion minus the voucher amount. This is a bit of a deterrent for customers. Nevertheless, if one clicks on continue, all the details are correctly posted on the confirmation page; the customer owes nothing and the membership runs as desired. The expenses on the confirmation page are also correct; 0 euros are due.
We have Euro as the default currency. Other currencies do not matter on the system. I wanted to recreate this on dmaster, but the donation pages there are broken.
One more thing, it also affects the verification page. There the amount owed is given and the default currency (euros) is taken into account. The value of the voucher is also given, but in dollars. CiviCRM 5.59.1, Discount 3.8.7