Trial Balance Closing and Opening Balance mismatch

Hi,

We are experiencing an issue where the Trial Balance opening balance for Fiscal Year 2023 is displaying as double the closing balance of Fiscal Year 2022. Both fiscal years are marked as closed. Standard accounting practice dictates that the closing balance of one fiscal year should exactly match the opening balance of the next. Could you please help to understand whether this is due to a specific ERPNext system behavior or if it is a system or report bug?

Yes, this is a known ERPNext report behaviour (not pure accounting error).

Your case (FY 2023 opening = exactly 2× FY 2022 closing, both years closed) matches known issues with how Trial Balance calculates openings after Period Closing Vouchers.

Why it happens

From v14 onward, ERPNext precomputes Account Closing Balance records when you submit a Period Closing Voucher. Trial Balance (and other reports) use these for opening balances for speed.

This can produce:

  • Zero openings (common)
  • Double openings (your case)
  • Mismatch with General Ledger

The GL is usually correct; the report is not. Similar reports exist on the forum and GitHub (e.g. #52870, #46544).

Quick fixes to try

  1. Toggle the report filter (easiest first step)
    In Trial Balance, change “With Period Closing Entry For Opening Balances”.
    This controls whether the Period Closing Voucher entries are included in the opening calculation.

  2. Force recalculation from GL (most reliable workaround)

    • Go to Accounts Settings → Accounts Closing tab
    • Enable Ignore Account Closing Balance
      This makes reports ignore the precomputed closing balances and recalculate from raw GL Entries. It is slower but usually matches the GL.
  3. Check fiscal year dates
    If your FY start and end dates share the same day-of-month (e.g. both on the 1st or 16th), ERPNext’s period splitter can count the boundary date twice.
    Workaround: run the report with custom From/To dates that skip the overlapping day (e.g. start one day later).

  4. Verify against General Ledger
    Pick a couple of Balance Sheet accounts and compare opening balance in Trial Balance vs General Ledger. GL is the source of truth.

  5. If needed: After a backup, cancel and recreate the Period Closing Vouchers (in order) if Account Closing Balance records look incomplete or duplicated.

Recommendation: Start with the report filter toggle, then the “Ignore Account Closing Balance” setting. That resolves the double-opening case for most users.

I reproduced this on current develop with two closed years. With the default filters, FY2022 closing and FY2023 opening matched.

The opening was off in two cases:

1. “Period Closing Entry For Current Period” unchecked. Retained earnings in the FY2023 opening grow by the 2022 profit. That is how the checkbox works.

2. “With Period Closing Entry For Opening Balances” unchecked. The opening then includes income and expenses of all earlier years. That is a bug, I have a fix.

Which accounts doubled for you, and are those two boxes checked?

Thanks!

I cancelled the existing period closure voucher and created a new one, which has successfully resolved the issue.