Describe the bug
When generating the General Ledger report, even if the option "Hide accounts with zero balance" is selected, the report still includes accounts whose ending balance is zero.
This results in a very long document with many unnecessary pages.
Module
account_financial_report
To Reproduce
Steps to reproduce the behavior
1.Go to Accounting → Reporting → General Ledger.
2.Select a date range.
3.Enable the option "Hide accounts with zero balance".
4. Click on Print (or Export to PDF/XLSX).
Current behavior
Accounts with a zero ending balance are still displayed in the generated report.
Expected behavior
Accounts with a zero ending balance should be excluded from the report when the "Hide accounts with zero balance" option is selected.
Impact
This leads to unnecessarily long reports and wasted paper when printing.