Document matching when importing a statement
The online accounting program mKsiegowa.pl offers the option of importing bank statements from files available for download in online banking systems.
Bank statement import is supported by mechanisms that match a bank transaction visible on the bank statement with entries in the program. Detailed configuration of these mechanisms can be found in Accounting -> Bank Transactions Import Settings.

How documents are matched when importing a bank statement
The mechanism that facilitates posting bank statements from files is divided into two areas:
- Matching the counterparty
- Matching the transaction by sales invoice / purchase invoice number
We will present how these mechanisms work using the example of a customer's payment for a sales invoice.
In the example below, the company Sukces Sp. z o.o. has paid a sales invoice. If the program is unable to match the customer's payment with a sales invoice, the imported file line contains an empty counterparty recognised column and a Posting to account column:

NOTE: Showing a value in the Posting to account column guarantees that the bank statement line will be posted in the Chart of Accounts.
Matching the counterparty
When loading a bank statement file, the mKsiegowa.pl program tries to recognise the counterparty (customer / supplier) related to a given transaction on the bank statement by the bank account number assigned to the counterparty in the program.

In this case the bank transfer will be assigned to the counterparty and allocated against the oldest unallocated sales invoice. If there are no unallocated invoices on the customer's account (this usually happens when the customer has overpaid), the bank transfer will be assigned to the counterparty, while its allocation against a sales invoice will be possible later:
NOTE: Showing a value in the Counterparty recognised column guarantees that the bank statement line will be posted in the Chart of Accounts to the counterparty indicated in the Counterparty recognised' column.
Matching the transaction
The mKsiegowa.pl program searches for documents in the program that correspond to the description of the bank transfer. Even if we have not assigned to the counterparty the bank account from which the company should receive the transfer, the document matching mechanism will find a description in which the customer entered the number of the document being paid:

NOTE: In this case you must select the Search for Invoice Numbers for Unknown Bank Accounts option in the settings.
Payment ageing
After recognising the counterparty, the mKsiegowa.pl program will assign the payment to the oldest unallocated documents issued / entered in the program:

Documents will be allocated up to the amount shown on the bank statement.
How to improve the import of bank statements
To improve the import of bank statements into the mKsiegowa.pl program, we suggest the following steps:
- Correctly configure the import of bank statements
- Describe transfers using the numbers of documents entered into mKsiegowa.pl (in the case of purchase documents)
- Communicate with customers about describing transfers for your sales invoices with the numbers of your invoices
- Enter counterparties' bank account numbers in the customer and supplier master files (if only one bank account number can be assigned to a counterparty)