Commerce: giftcard calculation/display goes wrong

Hi community,

In one of our applications we’re using Umbraco Commerce 16.4.1.
We’ve processed an order in which two gift cards were redeemed. It’s important to mention that the calculation itself (the final result) is correct, but the way the order is displayed and the records in the database don’t match.

As you can see in the screenshot below, the Net Total is 164 EUR and a total of 78 EUR is deducted from the gift cards, which means there should still be 86 EUR remaining to pay. However, the transaction amount is set to 0 EUR.

What’s interesting is that the deduction on the gift cards is correct. Both gift cards originally had 125 EUR. One had 125 EUR deducted, and the other had 39 EUR deducted, as shown in the screenshot:


This indeed adds up to 164 EUR, which matches the Net Total of the entire order. What makes it even stranger is that when we look at the adjustments in the Commerce database, there is also an adjustment of 39 EUR recorded.

image

So in short: am I looking at a bug here?
If so i will make a issue in GitHub

Bugs should be reported on the issue tracker GitHub · Where software is built