cardinal
Accounting

Ledger tools

Repost the GL and Payment Ledger of submitted vouchers, watch for ledger mismatches, and find the dates where reports disagree.

These tools repair or check ledgers that already exist. Each repost runs as a chain of background jobs, one voucher per job, so a stopped run picks up where it left off on any node.

Repost Accounting Ledger

Repost Accounting Ledger rebuilds the GL Entries and Payment Ledger Entries of submitted vouchers from the vouchers as they stand now. Use it when a voucher's GL rows no longer match the voucher.

Create a Repost Accounting Ledger, pick the Company, and add rows to the Vouchers table with Voucher Type and Voucher No.
Tick Delete Cancelled Ledger Entries to delete the old rows instead of reversing them.
Submit. Status moves to Queued, then In Progress, then Completed.

For each voucher, the old GL rows are reversed the way your cancel mode reverses them (see General ledger), and the current GL rows are posted. A voucher cancelled since is marked Skipped. A voucher that fails is rolled back and marked Failed with its Traceback. If the run ends Failed or Partially Reposted, the Restart Repost button resumes at the first Pending or Failed row.

Voucher TypeVoucher NoStatus
Sales InvoiceACC-SINV-2026-00012Reposted
Journal EntryACC-JV-2026-00044Skipped
Payment EntryACC-PAY-2026-00031Pending

Rules on save:

  • At least one voucher, and at most 50. Split larger sets into several records.
  • Each Voucher Type must be in Accounts Settings' Allowed DocTypes table. Sales Invoice, Purchase Invoice, Journal Entry, Payment Entry and Purchase Receipt can be listed.
  • No duplicate vouchers, and every voucher submitted.
  • No invoice with deferred revenue or expense on a row.
  • No voucher dated on or before the company's last submitted Period Closing Voucher.
  • A record cannot be cancelled while it is Queued or In Progress.

ERP also creates one for you. Changing the Cost Center, Project or another accounting dimension on a submitted Journal Entry or Payment Entry submits a Repost Accounting Ledger for it, and the same rules apply to that save.

Repost Payment Ledger

Repost Payment Ledger rewrites only the Payment Ledger rows of submitted vouchers and resets the outstanding amount of the invoices they are against. Use it when receivable or payable balances disagree with the GL.

FieldWhat it does
CompanyRequired
Posting DateVouchers posted on or after this date
Voucher TypeLimits to one of Sales Invoice, Purchase Invoice, Payment Entry, Journal Entry
Add ManuallyIgnores the filters, so you fill Selected Vouchers yourself

Save to fill Selected Vouchers, then submit. Repost Status moves from Queued to Completed. If a voucher fails, Repost Status is Failed, Repost Error Log says why, and the Restart Repost button continues from the first voucher not yet reposted.

Ledger Health Monitor

Ledger Health Monitor runs a daily check of recent vouchers and writes a Ledger Health record for each one it finds wrong.

FieldWhat it does
Enable Health MonitorTurns the daily check on
Monitor for Last 'X' daysHow far back to look, 60 by default
Debit-Credit MismatchFlags vouchers whose GL debits and credits differ
Discrepancy between General and Payment LedgerFlags vouchers whose GL and Payment Ledger balances differ
CompaniesThe companies to check

Each Ledger Health record has Voucher Type, Voucher No, Checked On and which mismatch it found. A voucher found again on a later day gets another record. Fix a flagged voucher with one of the reposts above.

Bisect Accounting Statements

Bisect Accounting Statements finds the dates where the Profit and Loss Statement's net profit and the Balance Sheet's assets less liabilities and equity disagree. It halves the date range until you reach the days that cause the gap.

Set Company, From Date and To Date, then pick Bisect > Build Tree. The full range becomes the current node.
Read Profit and Loss Summary, Balance Sheet Summary and Difference for the node.
Pick Bisect Left or Bisect Right to move into the first or second half. Pick Up to go back.
Follow the half whose Difference is not zero until the range is a few days.

Each range is a Bisect Nodes record. ERP creates a node's two halves the first time you move into one, and stores each node's summaries once computed. Build Tree deletes all earlier nodes. From Date cannot be after To Date. The Algorithm field (BFS or DFS) has no effect.

On this page