How to Check Balanced but Repeated GL Postings in Excel
The debits equal the credits. The invoice still appears to have been posted twice.
A balance check answers whether both sides agree. It does not prove that the accounting effect happened only once. This synthetic workbook compares active ledger effects with an independent reference, while keeping legitimate split lines and cancelled history visible.
The public problem
A public ERPNext accounting discussion reports repeated complete General Ledger posting sets while the source invoice or Payment Ledger reflected one transaction. The author does not establish a single historical cause. The investigation also notes that grouping entries by creation second produced a false monitoring failure.
This example is a separate read-only workbook audit. It does not reproduce the reported ERP behavior or prescribe a correction. The run identifiers used below are deliberately supplied synthetic evidence groups, not assumed native ERP fields and not timestamp buckets.
Compare the same accounting basis
All records are synthetic: DemoCo, customer C-01, USD and a common comparable snapshot. Both invoices are fully unpaid and tax-free, with no payments, credit notes or other adjustments. Only Accounts Receivable (AR) and Revenue appear. The independent reference is therefore directly comparable with net AR in this restricted example.
ERPNext’s Payment Ledger documentation explains why GL postings and invoice-payment references answer different questions. A real comparison needs matching company, party, account, dates, currency and allocation scope. A difference between reports alone does not identify a duplicate.
| Voucher | Active debit | Active credit | Net AR | Reference AR | AR difference |
|---|---|---|---|---|---|
| V100 | $200 | $200 | $200 | $100 | $100 |
| V200 | $150 | $150 | $150 | $150 | $0 |
Both vouchers have a zero debit-minus-credit difference. Only V100 has an excess against the comparable reference.
Look at complete sets, not the number of rows
V100 has two active evidence groups. R1 debits AR by $100 and credits Revenue by $100. R2 does the same. Each is a complete copy of the expected accounting effect for one $100 reference. Together, they leave net AR at $200. The workbook marks this as a repeated-set candidate requiring review.
V200 has one active group, R3: a $150 AR debit and two Revenue credits of $90 and $60. Those three lines form one valid $150 set. A rule that calls every voucher with more than two GL lines a duplicate would flag this legitimate split.
The original V100 active lines are Records!A13:G16. V200’s split set is Records!A17:G19. The invoice and independent reference values are in Records!A24:D25. The verified synthetic run inventory and states are in Review!A16:C19.
Preserve cancelled history
R0 contains four cancelled historical rows: an original $100 AR/Revenue pair and its opposite reversal. They total $200 debit and $200 credit, with zero net AR and zero net Revenue. They stay in Records!A9:G12 and are excluded from active totals.
This follows the distinction in ERPNext’s immutable-ledger documentation: cancellation retains original and opposite entries as an audit trail. The workbook’s state labels are supplied analytical inputs. It does not infer cancellation from a zero net amount, delete history or make an ERP change.
What the workbook checks
The main output in Review!A9:I10 separates active debit and credit, their difference, net AR, the independent reference, the AR discrepancy and the count of complete expected active sets. Run-level calculations in Review!D16:J19 make the underlying account effects inspectable.
Use the classification only when Review!B5 says Ready. Missing run evidence, duplicated GL row IDs, unsupported accounts, missing references or incompatible currency require review. If reliable grouping evidence or a comparable reference is unavailable, withhold the repeated-set conclusion. A creation timestamp is not a substitute for that evidence.
The independent validation passed 861 assertions across the baseline, ten separate input changes and restored baselines. It compared run and voucher totals, account effects, expected-set counts, input states and classifications with an independent calculation. Both worksheets were rendered and the exported raw cells and key outputs were checked.
On November 24, 2026 (IST), Jolene read the byte-identical public XLSX and independently reproduced both voucher results, all four evidence groups, the valid split posting and the cancelled history. The numerical source-cell references were checked against the workbook. One explanatory-note citation was corrected from Records!A34 to the actual populated cell, Records!A33. This verifies the public-file calculation and the corrected cited cells. A separate native-only test could not open the uploaded database despite a four-table status, so native upload access remains unverified.
Download the synthetic audit
Download the balanced repeated posting audit workbook.
The ranges are fixed to eleven GL rows, two invoice/reference records and four evidence groups. Extend them together before adding records. A complete export and reliable posting-state evidence remain assumptions to establish separately. The workbook identifies a review candidate; it does not establish an ERP root cause or a general accounting correction.