Files
odoo_source/addons/account/tests
Camille Spiritus 0c55bc83ac [FIX] account: fix mixed early pay payment term with multi lines
Some payment terms with early payment cash discount weren't giving out the correct computation.

Example of a problematic set up :
Payment term with multiple lines (percentage X, percentage Y, balance)
Cash Discount tax computation : mixed

The journal items of the invoice and the total amount wouldn't correctly take into account the different discount percentages of the payment term lines.

Fixed it by applying the line percentage to the epd lines computation.

closes odoo/odoo#101341

X-original-commit: 4af4d0e3bc25a5f81eabd1c2068fd6bf6a25621d
Related: odoo/enterprise#31874
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Camille Spiritus (casp) <casp@odoo.com>
2022-09-28 08:40:24 +02:00
..