Wednesday, May 22, 2024
1 change · master
Resolved issues and error corrections
Financial PDF reports now respect the “Hide lines at 0” option, so zero-value lines hidden on screen are also omitted when printed. This makes printed reports more consistent with the report view and reduces confusion for users comparing both versions.
Original PR description
When "Hide lines at 0" is toggled, lines at 0 are still included in the PDF report, despite being hidden in the report view. This leads to a difference between what the user sees and what is printed. Another reason to hide lines at 0 from the printed report is that lines with Hide if Zero checked does impact the PDF. This means the two options (Hide lines at 0 and Hide if Zero) have similar impacts in the user view but different behavior in printed reports. This commit implements the function _filter_out_0_lines to remove lines at 0 from printed report if "Hide lines at 0" is toggled. task-3888290