Recognising documents when importing a statement
The online accounting program mKsiegowa.pl offers the ability to import bank statements from files available for download in electronic banking systems.
The bank statement import is supported by mechanisms that match a bank transaction shown on the bank statement with records in the program. Detailed configuration of these mechanisms can be found in Accounting -> Bank Transactions Import Configuration.

How documents are recognised when importing a bank statement
The mechanism that makes it easier to post bank statements from files is divided into two areas:
- Matching the counterparty
- Matching the transaction by sales invoice / purchase invoice number
We will illustrate 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. Where the program is unable to match the customer's payment with a sales invoice, the item in the imported file has an empty counterparty recognised column and a Post to account column:

NOTE: Showing a value in the Post to account column guarantees that the bank statement item will be posted in the Chart of Accounts.
Matching the counterparty
When loading the bank statement file, the mKsiegowa.pl program tries to recognise the counterparty (customer / supplier) associated with 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 the customer's account shows no unallocated invoices (this situation usually occurs 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 item 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 do not assign 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 need to tick the Search for Invoice Numbers for Unknown Bank Accounts option in the settings.
Payment ageing
Once the counterparty has been recognised, 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 taking the following steps:
- Correctly configure the import of bank statements
- Describe transfers using the numbers of documents entered in mKsiegowa.pl (for purchase documents)
- Communicate with customers about describing transfers for your sales invoices with the numbers of your invoices
- Enter the counterparties' bank account numbers in the customer and supplier master files (if it is possible to assign only one bank account number to a counterparty)