Tuesday, March 25, 2025
3 changes · 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
The payroll accounting test for Belgian salary advances now includes the required journal setup, so it no longer fails when demo data is not installed. This improves reliability of automated testing without changing behavior for end users.
Original PR description
Before this fix, the salary advance test was failing when no demo data was installed due to a missing journal on the structure. This commit adds a journal to the structure to avoid test failure without demo data. task-4672827
This fixes an internal automated test issue in the recruitment appointment module when demo data is not available. It helps keep validation checks reliable so future updates can be tested without false failures.
Original PR description
runbot-160911