🏦 Bank statements
Updated
The bank's statement file becomes the company's payments: customer payments, vendor payments, other income and expenses on the bank account, each through the same posting a person does by hand. What the statement could not place is left for the person to say.
What is where#
| Object | What it is |
|---|---|
BankStatement (Bank statements, Accounting → Operations) |
A statement of one bank account: period, opening and closing balance, the file it came from, and one line per transaction |
| Statement line | Date, amount (in +, out −), counterparty name and account (IBAN), the payer's text, the bank's reference, and what it is: a customer and contract, a supplier and contract, an income account or a cost article |
BankCounterparty (Bank counterparties, Accounting → Setup) |
What a counterparty's account (or name) is. Written when a line posts, read when the next statement is matched |
Files the import reads#
| Format | What is taken |
|---|---|
| CSV export of any bank | The header row is found by its column names (date, amount or credit/debit, counterparty, IBAN, details, transaction id - in English or German). Comma, semicolon or tab; 1.234,56 and 1,234.56; a preamble above the header is skipped |
| camt.053 (ISO 20022) | Every entry: amount and side, value or booking date, the other party and its account, the remittance text, the bank's reference; the opening and closing balance |
Client-bank text file (the tagged .txt of most Ukrainian internet-banking systems) |
One line per payment document of the account: money in when the account is the recipient's, out when it is the payer's; the other side's name, account and EDRPOU, the purpose, the debit or credit date, the balances. Windows-1251, DOS or UTF-8 |
| MT940 (SWIFT customer statement) | Every entry of the account's statement: value date, amount and side, the bank's reference, the other side and purpose from :86: (ZKA subfields, slash codes or free text), the balances |
The format and the code page are recognised from the file. A file of another bank account is refused. The lines can also be fetched from the bank's API instead of a file (PrivatBank, monobank): Fetch from the bank. See bank files and bank APIs of the Ukrainian pack.
A transaction already on a statement of the same bank account is not imported again (by the bank's reference, or by its content when a CSV has no reference). Importing the same file twice, or two files that overlap, adds nothing twice.
How a line is matched#
In this order, the first that answers wins:
- Learned counterparty: a bank counterparty with the line's account (or, when the bank gives no account, its name).
- Document number in the text: a sales invoice number in money in, a purchase order or vendor invoice number in money out.
- Party by name or tax number: exactly one customer (money in) or supplier (money out) with the counterparty's name, full name, a tax number in the text, or the tax code the bank states for the counterparty (client-bank files, MT940 and bank APIs give one). The Ukrainian pack also looks the code up in the EDRPOU field of the party.
The contract is the party's contract in force on the line's date. A line the person fills by hand (a customer, a supplier, an income account or a cost article) counts as matched. A line set to Ignored is never posted.
Post#
Post matched lines turns every matched line into its document on the statement's bank account:
| Line | Document | Command it runs |
|---|---|---|
| Money in from a customer | Customer payment | Receive payment |
| Money out to a supplier | Vendor payment | Pay vendor |
| Money in with an income account | Other income | Post income |
| Money out with a cost article | Cash expense | Post expense |
Each line remembers the document it became. A line that cannot post (an unknown account, a closed month, a contract in another currency) stays matched with the reason and leaves no draft behind. The statement is Posted once no line is left open. The counterparty of every posted line is remembered, so next month's statement matches it by its account.
Steps#
- Create a bank statement and choose the bank account.
- Import file and pick the bank's file (CSV, camt.053, client-bank text file or MT940), or press Fetch from the bank for a connected bank. The lines appear and are matched at once.
- Fill what is still open (a customer, a supplier, an income account or a cost article), or set it Ignored; Match lines again if you changed rules.
- Post matched lines.
Payments out#
The other direction is a file too: the posted payments of a bank account as a payment order file for the client-bank, which the person imports, checks, signs and sends: Send payments to the bank as a file.