Monday, July 22, 2024
3 changes · master
Enhancements to existing features
Vendor bill lines created from OCR imports are now marked as imported so later product changes do not overwrite their captured prices and taxes. This helps preserve invoice data extracted from documents and avoids unexpected recalculations during bill review.
Original PR description
When changing the product on the vendor bill line, the price and taxes are recomputed. The corresponding community PR uses a flag to disable the computation for lines that have been imported. Since the OCR feature writes the lines later, the flag is set explicitly on created lines. Task-3837975
Payslips can now show year-to-date totals for each payment and deduction, making it easier for employees and payroll teams to understand cumulative earnings and deductions during the year. Payroll administrators can choose when these totals reset and control whether they appear by payroll structure type or individual salary rule.
Original PR description
The "Year to Date" (YTD) field shows the accumulated total of each payment/deduction of the current year in the payslip (in a YTD column). The reset date of the YTD is customizable. YTD can be toggled on the structure type scale, and also on each single rule. task-4001255
Resolved issues and error corrections
Salary rules that depend on a payslip input will now be displayed correctly, even when their payment amount is calculated another way. This prevents valid payroll rules from being hidden and helps ensure payslips are computed as expected.
Original PR description
Issue: If you create a salary rule with a condition based on an input but with something else than input for the amount, the rule will not be shown. Expected: The rule should be shown if the input is present in the payslip and the computation should happen normally. Fix: When checking if the rule should be shown or not, we were looking at the wrong field that is related to the amount and not the condition.