Sunday, March 16, 2025
1 change · saas-17.4
Miscellaneous changes
When multiple split payments taxes are involved in (e.g., 22% SP), and some lines are negative, the split payment is not calculated correctly. It sums only the credits, but when the lines are negative, the credit is 0. Steps to reproduce: - Install Italy - E-invoicing - Duplicate the "22% SP" tax group and its subtaxes (22% SP neg. and 22% SP pos.) - Create an invoice: - 1 product at 100€ with "22% SP" - 1 product at -50€ with "22% SP (copy)" - Validate the invoice - Process throu
Original PR description
When multiple split payments taxes are involved in (e.g., 22% SP), and some lines are negative, the split payment is not calculated correctly. It sums only the credits, but when the lines are negative, the credit is 0. Steps to reproduce: - Install Italy - E-invoicing - Duplicate the "22% SP" tax group and its subtaxes (22% SP neg. and 22% SP pos.) - Create an invoice: - 1 product at 100€ with "22% SP" - 1 product at -50€ with "22% SP (copy)" - Validate the invoice - Process through E-invoicing service In the resulting XML, the value of ImportoTotaleDocumento should be 61€ (100-50+22-11), but it will be 72€. This fix ensures all tax values are considered in the split payment calculation. Task [link](https://www.odoo.com/odoo/project/967/tasks/4630987) opw-4630987 Forward-Port-Of: odoo/odoo#201916 Forward-Port-Of: odoo/odoo#201519