Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: invoice report, advances counted twice
The below revision force the use of `ABS` on the `price_subtotal_signed` because of a migration issue: 649b289 This leads to issues regarding the advances, in `out_invoice` invoices, where this amount `price_subtotal_signed` is negative, and should remain negative in this report, otherwise the advance is counted twice: Once with the advance invoice, and a second in the actual invoice where the advance is removed with a line with a negative `price_subtotal` e.g. - A sale order of 500€ without taxes - Create an advance invoice for an advance payment of 10%: 50€ without taxes - A second invoice with the remaining: 450€ without taxes In the invoices report, the total without taxes for this customer was displayed as 600€ (50 + 500 + 50) instead of 500€ (50 + 500 - 50) opw-682390
- Loading branch information