StmtRecon
BAI2 balance, summary and detail codes

BAI2 010 — Opening Ledger

BAI2 type 010 reports opening ledger in record 03 as an account status. Confirm that the previous final 015 belongs to this account and currency.

Open this sample in Air-Gapped Converter

Worked bank sample

Synthetic bank data for local reconciliation.

01,REPORTING,TREASURY,261130,1700,1,,,2/
02,TREASURY,REPORTING,1,261130,1700,USD,2/
03,OPERATING,USD,010,100000,,,015,102500,,/
16,195,2500,0,BANK-010,000010,Prior close carried into the current ledger
88,  Settlement reference CASE-010
49,205000,4/
98,205000,1,6/
99,205000,1,8/

Read 000010 as a text reference. The one USD 25.00 credit takes booked cash from 1,000.00 to 1,025.00. Record 49 reports 205000 in minor units because the transmission control includes both account observations and detail amounts.

This example places all four-field balance and summary groups on one 03 line, with an empty funds type. The 88 record extends the example movement. For other layouts, reassemble 03 continuations and consume any distribution fields before advancing to the next type.

Field anatomy

Field or pathMeaning in this fileType or formatERP or Excel import risk
03 · repeated typeAccount-level opening ledgerThree-character status codeA numeric type lookup can confuse the opening ledger with a transaction or omit it from account controls.
03 · amount after 010Reported opening ledger for OPERATINGUSD implied centsA balance observation imported as a payment duplicates cash.
03 · item count and funds typeNext two fields in this account groupOptional fields, comma-delimitedDropping empty fields moves the next type into the amount column.

Root cause and ERP fix

  1. An intraday import replaced the prior-day opening. Retrieve the final report for the preceding business day.
  2. Weekend days were skipped in the reconciliation calendar. Compare consecutive reporting dates and any intervening adjustments.
  3. Excel converted 010 to 10. Import the type column as text and restore the three-character mapping.

Inspect with the MIT parser

Save the sample as bai2-code-010.bai2 and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs bai2-code-010.bai2.

import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text);
const account = text.split(/\r?\n/).find(line => line.startsWith('03,'));
const groups = account.slice(0, -1).split(',').slice(3);
for (let i = 0; i < groups.length; i += 4) {
  if (groups[i] === '010') console.log(report.currency, groups[i + 1], 'minor units');
}
Open this sample in Air-Gapped Converter

Export a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.

npm package · SDK source · Format reference

Related BAI2 balance, summary and detail codes

Export your full workbook

Purchases are currently unavailable. Existing licenses can be activated offline.