Wrong amount to pay in case a statement origin is added as invoice payment line
Steps to reproduce:
- Create a invoice of 1000€
- Create a payment of 999€ linked to pay the invoice. Use a payment journal with a clearing account set.
- Process and success the payment
- Open the invoice, you should see 1€ as amount to pay.
- Click the
+icon on the payment lines, so the clearing line is linked to the invoice.
- The amount to pay is updated to -998€
- The amount to pay is 1€
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information