An accounting firm gets the most from converted bank statements when every file comes out in the column order and headings its own workpapers or import template expect, and every statement is checked against its printed balances first. This repo has a layout spec form, column mappings and a script that rearranges a converted statement and proves nothing was lost.
| File | What it is |
|---|---|
converted-statement.csv |
A fictional September 2026 checking statement after conversion: opening balance row, seven lines, debit, credit and running balance. |
layout-spec-template.csv |
A form for writing down your firm's template: column order, heading, content, format and an example for each column. |
mappings/signed-amount-workpaper.csv |
A mapping to a workpaper layout with client name, one signed Amount column, US dates and an empty tickmark column. |
mappings/deposits-and-withdrawals.csv |
A mapping to a layout with separate Withdrawals and Deposits columns and day-first dates. |
remap_columns.py |
Rearranges a converted statement with a mapping, then checks the row count, money in and out, opening plus activity against the last balance, and every running balance. Python 3, standard library only. |
samples/ |
The two outputs the script makes from the sample statement. |
sample-statements-checklist.md |
Which client statements to use when testing a converter, and what to check in every converted file. |
-
Fill in
layout-spec-template.csvfrom the template your team pastes statement data into. -
Copy one of the files in
mappings/and change it to match. Each row is one output column: its heading, the source column and a transform (copy,signed,date:FORMATorconst:VALUE). -
Run it on a converted statement:
python3 remap_columns.py mappings/signed-amount-workpaper.csv converted-statement.csv workpaper.csv -
Read the last line.
OKmeans the output has every line and the balances tie.CHECK FAILEDnames the line where the running balance breaks.
Opening balance 4,250.00, money in 6,401.27, money out 4,795.85, closing balance 5,855.42. Change the card payment from 1,210.30 to 1,201.30 and the script reports the statement off by 9.00 and points to the 2026-09-15 line, the kind of transposed digits a misread produces. All figures are fictional.
A closing balance can tie while two errors cancel out. Checking each line against the one before finds where the first break is, so someone looks at one line instead of the whole statement.
Whatever your template expects. Import templates often want one signed Amount; audit workpapers often keep deposits and withdrawals apart. Both mappings are here.
No. It moves the review to the exceptions: statements that don't tie and lines that look wrong. Someone still reads those.
Bank statement converter for accounting firms on ZeraBooks, and the ZeraBooks bank statement converter.
The content and data in this repository are licensed under
CC BY 4.0. The code (remap_columns.py) is licensed under
MIT.
Maintained by ZeraBooks.
