Tuesday, March 25, 2025
1 change · master
Resolved issues and error corrections
This fix improves tax calculations when down payments or global discounts are used on Italian sales and point-of-sale orders. It helps ensure final invoices show accurate rounded tax amounts, reducing billing discrepancies and correction work.
Original PR description
Fix the tax rounding issues in down payment and global discount applied on sale orders and pos orders. To do so, this commit introduces a new field 'extra_tax_data' allowing to split the global taxes computation on subset of lines. This is usefull on the down payment because, when generating the final invoice, the first down payment is subtracted with negative lines. However, those lines represent a separated document so the taxes computation in round globally has to be split between the original lines and the negative down payment lines. This extra field could also contain manual tax amounts to be taken into account in the taxes computation engine. task_id: 4457175