BankStatement
Updated
A statement of one bank account, brought in from the bank's file or API. Its lines are matched to customers, suppliers, income accounts and cost articles, then posted as customer payments, vendor payments, other income and expenses on that account. The statement itself moves nothing: each line moves money through the document it becomes.
| Kind | Document |
| Module | Accounting |
| Menu | General ledger → Operations → Bank statements |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | string, 50, required |
BankAccount |
Bank account | BankAccount, required: the account the statement is of. Its Account number (IBAN) is what a client-bank file or an MT940 statement is read against |
LegalEntity |
Legal entity | LegalEntity: stamped from the bank account on save |
Currency |
Currency | Currency: stamped from the bank account on save |
DateFrom |
From | date: the earliest line, else the day the statement is entered |
DateTo |
To | date: the latest line, else the day the statement is entered |
OpeningBalance |
Opening balance | decimal: from camt.053, a client-bank file or MT940 |
ClosingBalance |
Closing balance | decimal: the same |
SourceName |
Imported from | string, 200: the format (CSV, camt.053, client-bank text, MT940) or the bank API and the number of transactions |
Table parts#
BankStatementLines, one row per transaction:
| Field | Caption | Points at |
|---|---|---|
ValueDate |
Date | date, required |
Amount |
Amount | decimal, required: money in is positive, money out negative |
CounterpartyName |
Counterparty | string, 200 |
CounterpartyAccount |
Counterparty account | string, 64: the IBAN or number as the bank wrote it |
CounterpartyTaxId |
Counterparty tax code | string, 20: the registration or tax code the bank states for the other side (EDRPOU, tax number); read from client-bank files, MT940 and bank APIs; the matching looks a customer or a supplier up by it |
Reference |
Reference | string, 500: the payer's text |
BankRef |
Bank reference | string, 100: the bank's own id of the transaction, or a hash of its content; what keeps a transaction from being imported twice |
State |
State | string, 20: New, Matched, Posted, Ignored |
Customer, SalesContract |
Customer, Customer contract | for money in |
Supplier, SupplierContract |
Supplier, Supplier contract | for money out |
IncomeAccountCode |
Income account | string, 32: other income |
CostArticle |
Cost article | an expense |
MatchNote |
Matched by | string, 200: why the line was matched (a rule, a document number, a customer, EDRPOU …) |
Document |
Posted as | the document the line became |
CashFlowItem |
Cash-flow item | CashFlowItem |
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Import file | Reads a file — CSV, camt.053, client-bank text file, MT940, in Windows-1251, DOS or UTF-8 — into lines (nothing twice), sets the period, the balances and Imported from, and matches the lines |
| Draft | Fetch from the bank | Ukrainian pack. Fetches the period from the bank of the connection with this account's IBAN (PrivatBank or monobank), adds the lines as a file's, and matches them. Parameters: From date, To date (empty: the statement's period) |
| Draft | Match lines | Finds whose each open line is: a learned counterparty, a document number in the text, a customer or supplier by name or code |
| Draft | Post matched lines | Posts each matched line as the document it is; the statement is Posted once no line is left open |
| Posted | — | Read-only |
Import file refuses a file that is not a readable statement and a file of another bank account, and leaves the statement as it was.
Registers#
None of its own. A posted line writes the registers of its document: BankBalance and the ledger.
Used by#
Where next#
Was this page helpful?