Book Contents

Book Index

Bank

Bank code lists
Card of bank document

The Card of bank document code list is intended for predefining frequently used items. Data from the card are copied into the banker's order item and bank statement item, so they no longer need to be entered manually.

pic_6080

Picture: Cards of bank documents - book

Basic data

The Basic data tab of the card of bank document is used to record basic data.

pic_7318

Picture: Cards of bank documents - Basic data

Description of fields:

Abbreviation

Abbreviation of the card of bank document.

Name

Name of the card of bank document.

VAT rate

VAT rate.

Tax type

Tax type.

Item type

Item type (P - receipt, V - payment).

Do not copy name

If on, the Name is copied from the card into the banker's order / statement item only if no name is stored on the document item.

Account

Account from the chart of accounts.

Posting key

Posting key of the bank statement.

Matching symbol

Any numeric or text value used to classify the company's activities.

Cost centre

Cost centre to which the card of bank document relates.

Contract code

Any numeric or text value used to classify the company's activities.

Device

Link to the Resource book.

Article code

Article code.

Officer, Code 1, Code 2

The fields allow user-defined differentiation or a link to the Officers book. A more detailed description is in the Basic code lists - Code 1, Code 2, Officer chapter.

External Documents and Documents (9th Page)

On the External Documents and Documents tab of the card of bank documents, it is possible to insert documents and assign links to documents within IS K2. A more detailed description of working with documents is given in the Basic code lists and supporting modules of K2 - External Documents and Documents (9th Page) - Linkage and links. chapter.

Banks

The Banks code list contains a list of banks.

pic_107301

Picture: Banks code list

pic_107302

Picture: Banks code list - Basic data

Description of selected fields:

BCN

Bank code. When the bank code is changed in this code list, the SCB in account numbers already saved on documents and Suppliers/Customers cards is not changed automatically.

Mod. 11

Checking the field activates validation of account numbers with this bank code.

Blocked

Flag of a blocked record. We can block a record using the Invalidate (Make valid) record function.

SWIFT code list

The SWIFT code list is launched from the tree menu Finances – Basic data – SWIFT code list. SWIFT (Society for Worldwide Interbank Financial Telecommunication) is used mainly for international payments. Within SWIFT, each participating bank has its unique code (BIC) by which it is identified.

pic_6084

Picture: SWIFT - book

This tab of the SWIFT code list is used to enter basic data. If the bank address is also entered in the SWIFT code list, the bank address is also copied to the account after the given SWIFT is selected.

pic_6085

Picture: SWIFT - Basic data

Description of fields:

Country of bank

Country of the bank.

SWIFT

SWIFT.

Blocked

Checkbox for blocking the SWIFT.

Address

Bank address - multiple lines can be used to enter the bank address.

Book Contents

Book Index

Bank accounts

Bank accounts are kept in the Administration of books, where all bank accounts that we have with financial institutions are entered. It is launched from the tree menu Finances - Basic data - Bank accounts. Books are switched in all documents with the Alt+F10 key (after switching books, the cursor bar is automatically set to the last record in the table).

pic_7980

Picture: Administration of books - Bank accounts book

A more detailed description of working with the Administration of books module is given in the Administration of books chapter.

Book Contents

Book Index

Default setting

Each bank account can be assigned properties, which we set on the Default setting tab.

pic_7981

Picture: Administration of books - Default setting

Description of fields:

Post unsettled balance

Allows posting a bank statement for which there is a difference between the total amount on the document and the posted amount.

Check document currency and bank account currency on sale documents

If on, when an invoice out, advance received or other receivable with this bank account is confirmed, a check is performed whether the currency of the Bank account on the document corresponds to the document currency.

Bank

Selection of the bank where the account is kept.

Bank code

Bank code, filled in automatically after the bank is selected.

Currency

Currency of the given bank account, which cannot be changed after saving. It is selected from the Currency code list.

Posting key

Posting key of the bank account - selected from the Posting keys code list.

Account

Account number that will enter accounting. Selected from the Chart of accounts. book

Op. balance, C

The opening balance of the bank account in the bank account currency is filled in this field. The field can be edited only in the default setting and if no statements in a blocked period are entered in IS K2 for the bank account.

Op. balance

If the bank account is in a foreign currency, the opening balance in the client's currency is filled in this field.

Document item type

The most frequently entered document item type, which will be filled in when entering orders and statements (e.g. Invoice in).

Tax type

The most frequently entered tax type, which will be filled in the document item.

Tax rate

The most frequently entered tax rate, which will be filled in the document item.

Documents with VAT

Option to enter documents with VAT. If checked, the VAT flag can be checked on an item of the Receipt and Payment type and the Tax type and Tax can be entered. Once this field is checked, it can no longer be edited!

Insert only confirmed documents to the banker's order

If checked, only confirmed documents can be inserted into a banker's order.

Matching symbol

Pairing symbol.

Reference number

Here we can preset the reference numbers that will be inserted into bank documents when these documents are created.

Supported formats for entering the reference number definition:

1) XXX@CI(N0Y): the value XXX represents any digits or letters. The characters @CI determine that the following part will be formed by the document number, and the characters (N0Y) represent the number of digits to which (determined by the value Y) the document number will be padded with zeros (determined by the character 0). The maximum number of characters for the reference number is 12. The numbers are generated when the document is saved.

For example, when the function 4002@CI(N07) is entered and assuming that the number of the document for which the reference number is to be created is 1256, the reference number will look as follows: 40020001256.

2) A reference number definition can also be entered for cases where the bank document number should not be padded with zeros to the specified number of characters. The definition must be entered as follows: XXXX@CI(N00). In this specific case, the second zero entered must be understood as cancelling the zero padding (the first zero entered).

3) XXX@KO(1 to 12): fills in the contract code; the number 1 to 12 determines how many characters of the contract code abbreviation are used.

4) XXX@ST(1 to 12): fills in the cost centre; the number 1 to 12 determines how many characters of the cost centre abbreviation are used.

If all reference number fields remain empty, the reference number will be filled in automatically in the format @CI(N07).

Account No.

Bank account number.

Account 1,2 No.

Additional bank account numbers. Can be used for multiple bank account numbers at one bank.

SWIFT

SWIFT code number - bank identification.

IBAN

International form of bank account numbers. It must be filled in for foreign bank accounts. For domestic bank accounts, it must be filled in if a QR code is to be printed on documents.

Cost centre

Cost centre that will be preset in bank statements.

DEfault rates

Selection of the exchange rate from the code list. This sets automatic selection of the relevant rate from the exchange rate list in banker's orders and bank statements. Credit notes are marked with a minus sign.

Partner Activity PAP

The field is intended for the Auxiliary Analytical Overview (PAP) report. In the field, the bank where the account is kept can be selected (from the Suppliers/Customers code list).

Overdraft

It is possible to enter the overdraft amount in the bank account currency. The amount is then taken into account in the Financial Management book and in the balance in the form of the function for creating a banker's order from the Financial Management book and the Open items book.

The Bank API button is located under the Default setting. The Settings button is used to establish the connection to the bank's API. The form differs depending on the selected bank; Česká spořitelna has a different form than Fio bank. The Bank accounts/Bank API configuration right is required for the setting.

pic_7983

Picture: Selecting a bank for the bank API setting

pic_7982

Picture: API setting form for Česká spořitelna

Book Contents

Book Index

Default numbering

The numbering of banker's orders and bank statements is defined on the Default numbering tab.

pic_7986

Picture: Administration of books - Default numbering

Book Contents

Book Index

Banker's orders

Banker's orders are launched from the tree menu Finances - Bank - Banker's orders. In the Banker's orders book, we create payment orders.

pic_6087

Picture: Banker's orders book

In the Banker's orders book, we switch between individual bank accounts with the Alt+F10 key (after switching books, the cursor bar is automatically set to the last record in the book).

A banker's order can also be created

Banker's order document
Basic data

The Basic data tab contains data that relate to the whole document.

pic_6088

Picture: Banker's orders - Basic data

Description of fields:

Banker's order

Number of the banker's order, including the book of the bank account. It is filled in automatically when a new order is saved.

Issued

Date of issue of the document.

Due date

Due date of the document.

Sent

Name of the user who exported the banker's order with the HB - banker's order function (HB_Order.pas).

Date of dispatch

Date and time when the order was exported with the HB - banker's order function (HB_Order.pas).

Status

Document status.

Debit acc. No.

Number of the bank account from which the payment is to be made.

Payment type code

Constant symbol. The field is displayed only in Change mode and in a New record. When a new item is inserted, the constant symbol is then filled in automatically.

Amount

Total amount of the order items in the bank account currency. It is calculated automatically. For a foreign bank account, the amount in the client's currency is also displayed.

Created by

Date of creation of the document and name of the user who created the document.

Changed by

Date of the last change and name of the user who changed the document.

Items

Items are inserted into a banker's order in the standard way with the Insert key or the New icon. After pressing it, the Banker's order item form is displayed.

pic_7223

Picture: Banker's order item - for items of the Payment type

Description of fields of the Payment type:

Type

Type of payment V - payment.

Reference number

Reference number.

To credit of account, Bank, SCB

Bank account of the supplier/customer.

BPR book in the client's currency

  • if the BPR item has no link to a PF or VZ document or to a payment calendar item, and at the same time there is a link to a company and the company has a default account entered:
    • the default account is domestic - the account number and bank code from the default account are inserted. If the account is not filled in, the IBAN from the default account is filled in.
    • the default account is foreign - the IBAN from the default account is inserted. If the IBAN is empty, the account number and bank code from the default account are filled in.

 

BPR book in a foreign currency

  • if the BPR item has no link to a PF or VZ document or to a payment calendar item, and at the same time there is a link to a company and the company has a default account entered - the IBAN from the default account is inserted. If the IBAN is empty, the account number and bank code from the default account are filled in.

 

In the case of a foreign bank account, in addition to the data already mentioned, the other data contained in the bank account are also copied.

Any account number can also be written into the To credit of account field.

Summation

Summing numeric identifier. It is used to group items into one payment.

Name

Name of the item. It can be selected from the Cards of bank documents code list.

Matched with statement

If a reference to a banker's order is filled in the bank statement, both documents are matched. This field shows the bank statement number, and pic_921i is displayed in the 'S' column in the list of items on the basic data page.

Amount

Payment amount in the banker's order currency. In the case of a foreign currency, the amount in the client's currency is also displayed.

Payment exch. rate

Payment exchange rate in the banker's order currency.

Exchange rates - item

Pressing the button displays the exchange rate list.

Additional currency

Field for entering a different currency in which we want to send the payment to the bank.

Company

Company name in the Suppl./Cust. code list.

Account

Account from the chart of accounts.

Payment type code

Constant symbol.

Specific symbol

Specific symbol.

pic_6091

Picture: Banker's order item - of the PF, VF, PZ, VZ, MZ type

Description of fields of the PF, VF, PZ, VF, MZ, OP, OV type:

Type

Type of payment - payment of Invoice in/out, payment of Advance paid/received, payment of Payroll payable.

Paid document

Document that will be included in the banker's order - PF, VF, PZ, VZ, MZ, OP, OV.

 

pic_970i

Selection of the paid document, which can also be done with the F12 key. In this case, the documents are always displayed sorted by Number. The cursor bar in the book of the paid document is positioned as follows:

  • On the first selection, the cursor bar is set to the first document.
  • If a document has already been selected, the cursor bar is set to this document.

 

pic_830i

Helper button located after the number of the paid document. In this case, a selection of unpaid documents in the bank account currency is displayed.

Reference number

Reference number, filled in automatically from the paid document.

Charge code

Number identifying the type of payment.

Payment item

Indication of the purpose of the payment.

To credit of account

Bank account of the supplier/customer. The following cases may occur:

BPR book in the client's currency

  • the account number (for PF the Account No. field, for VZ the Bank account field, for a PLK item the To credit of account field) on the document is not empty and the account is domestic - the account number and bank code from the document are inserted,
  • the account number on the document is empty and the IBAN on the document is not empty - the IBAN from the document is inserted,
  • the account is foreign - the IBAN from the document is inserted,
  • the Bank field on the document is empty - the procedure is the same as when the BPR has no link to a document (item of the Payment type - see above).

 

BPR book in a foreign currency

  • the IBAN on the document is not empty - the IBAN from the document is inserted,
  • the IBAN on the document is empty and the account number on the document is not empty - the account number and bank code from the document are inserted,
  • the Bank field on the document is empty - the procedure is the same as when the BPR has no link to a document (item of the Payment type - see above).

In the case of a foreign bank account, in addition to the data already mentioned, the other data contained in the bank account are also copied.

Any account number can also be written into the To credit of account field.

Description

Description of the order.

Charge code

Number identifying the type of payment.

Payment item

Indication of the purpose of the payment.

Summation

Summing numeric identifier. It is used to group items into one payment.

Matched with statement

If a reference to a banker's order is filled in the bank statement, both documents are matched. This field shows the bank statement number, and pic_921i is displayed in the 'S' column in the list of items on the Basic data page of the banker's order.

Amount

Payment amount in the banker's order currency.

Payment

Payment amount in the currency of the paid document. In this row, the payment amount can be entered both in a foreign currency and in the client's currency. The amount enters the Total settled field on the Payments tab of the invoice.

Difference

Exchange difference in the client's currency.

Payment exch. rate

Payment exchange rate in the banker's order currency.

Rate date

This button fills in the exchange rate from the exchange rate list valid as at the issue date of the Banker's order. It can be used only in the Change state. If the client parameter Exchange rate on invoices according to Ac. trans. date is set, it fills in the rate according to the value in the Ac. trans. date field.

Pay. rate in doc. curr.

Payment exchange rate in the currency of the paid document. It is used when several currencies occur, e.g. document in USD, order in EUR

Doc. exch. rate

Exchange rate stated on the paid document.

Account

Account from the chart of accounts.

Payment type code

Constant symbol.

Specific symbol

Specific symbol.

If an invoice in is paid by a banker's order, the amount from the issued banker's order is recorded in this invoice, in the Settled field on the Payments tab. At the same time, a new item with the date, payment amount and banker's order number is inserted into the lower window on the Payments page of the invoice. This makes it possible to track not only whether the invoice has been paid, but also whether a payment order has already been issued for it. When a bank statement is issued and matched with the banker's order, the amount in the Settled field is reset to zero and the amount in the Remains to be paid field is reduced by the bank statement amount. In the lower window on the Payments tab of the invoice, the item changes from the banker's order to the bank statement.

Foreign button

The Foreign button on the banker's order displays data about the foreign bank connection. These are copied here automatically from the 'Banks' tab, located on the Supplier/Customer card. The data about the foreign bank connection are inserted into the form from the filled-in data after the Foreign account type is checked.

pic_6090

Picture: Banker's orders form - Foreign button

External Documents and Documents (9th Page)

On the External Documents and Documents tab, any documents and external documents can be assigned to the banker's order. A more detailed description of working with attached documents and external documents is given in the Basic code lists and supporting modules of K2 - External Documents and Documents (9th Page) - Linkage and links chapter.

Functions over Banker's orders

All functions mentioned below can be used on banker's orders in Change mode and in a New record (unless stated otherwise).

Overview of functions over items:

F4

Selection from the offer of Invoices in.

F5

Selection from the offer of Advances paid.

Shift+F2

Selection from the offer of Other liabilities.

Shift+F3

Selection from the offer of Payroll payables.

Shift+F4

Insert items in bulk from the container of Invoices in.

Shift+F5

Insert items in bulk from the container of Advances paid.

Shift+F7

Insert items in bulk from the container of Payroll payables.

Shift+F8

Insert items in bulk from the container of Other liabilities.

Ctrl+F4

Selection from the offer of Invoices out.

Ctrl+F5

Selection from the offer of Advances received.

Ctrl+F6

Selection from the offer of Other receivables.

Ctrl+Shift+F4

Insert items in bulk from the container of Invoices out.

Ctrl+Shift+F5

Insert items in bulk from the container of Advances received.

Ctrl+Shift+F6

Insert items in bulk from the container of Other receivables.

Alt+F4

Creating a direct debit order from the container of Invoices out.

Alt+F5

Creating a direct debit order from the container of Advances received.

Alt+F6

Creating a direct debit order from the container of Other receivables.

Ctrl+Enter

In View mode these keys display the paid document.

Alt+F3

Setting of the default sorting of items (can be re-sorted in all states).

Function when confirming a banker's order:

If the Detection service of the reliability of VAT payers is activated in the Finances/Basic data/Configure the Reliability of VAT payer service function, checking the Check payment on unregistered account option performs the following when a banker's order is confirmed:

If a problem is found, the query "The order contains payments to accounts that are unverified or not registered in the register of VAT payers. Do you wish to confirm?" is displayed, and a text file with a list of errors is displayed.

The following errors may be displayed in the text file:

Note: When a bank order is confirmed, the information stored on the Suppl./Cust. card is checked (there is no online update from the register of VAT payers).

Banker's order from the Invoice in filter

Process number: FIN003

Script ID number: FFIN040

File: INVOICE_IN_ORDER.PAS

Script description: The function is used for quick creation of a banker's order from a container of invoices in, advances provided, payroll payables and other liabilities.

Address in the tree: [Finances] [Functions]

[Finances] [Bank]

[Wages] [Payroll payables]

Script parameters:

AdvancesProvided - No

Yes - processes advances provided if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables.

BookOfBo -

Abbreviation of the book in which the banker's order is created.

DateDue - 0

Due date. The parameter is not taken into account if the parameter NewDailyOrder = Yes.

DaysToMat - 0

Number of days by which the payment date is shifted.

InvoicesReceived - Yes

No - processes invoices in if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables.

NewDailyOrder - No

Yes - inserts the documents into orders according to the due date; No - inserts all documents into one order.

OtherLiability - No

Yes - processes other liabilities if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables.

PayrollLiab - No

Yes - processes payroll payables if the script is run over a module other than invoices in, advances provided, other liabilities and payroll payables.

The function is used for quick creation of a banker's order. Invoices in (advances provided, payroll payables, other liabilities) from the current data module (marked with asterisks, from the container, from the book) are loaded into the order. The due date of the order is set by default according to the current date.

Mark with an asterisk the documents in the book of invoices in (advances provided, payroll payables, other liabilities) that you want to pay from one bank account. Over these documents, run the script Banker's order from the PF, VZ, MZ and OV filter. Select the bank account book in which you want to create the order. If you do not want to pay the documents exactly on the due date but earlier or later, set the "DaysToMat" parameter as well. Enter the number of days by which you want to shift the payment date. A positive value means that the payment will be made x days before the due date, a negative value means that the invoice will be paid x days after the due date.

After the function is started, a message is displayed about the number of documents in the filter, stating for how many documents payment can be made. An obstacle to payment may be finding that the document has already been paid, the amount to be paid is negative, or the supplier's bank account is not entered.

The result is one or more banker's orders created in the selected book. After the order is created, information about the documents that could not be inserted into the order is displayed.

Reports over banker's orders

Banker's order

Banker's order - grouped payments

Payment notice

Banker's order - sorting by supplier

Collective payment order

Banker's order - sorting by account number

Book Contents

Book Index

Bank statements

Bank statements are launched from the tree menu Finances - Bank - Bank statements.

The Bank statements book is used for recording, account assignment (pre-assignment) and posting of bank statements. Data are entered into IS K2 manually according to the account statements from the bank or automatically using the Homebanking function. For some banks (Česká spořitelna, Fio bank) the bank API is supported, which is used for automatic downloading of movements on the bank account into K2 without the need for user intervention.

pic_6244

Picture: Bank statements book

In the Bank statements book, we switch between individual bank accounts with the Alt+F10 key (after switching books, the cursor bar is automatically set to the last record in the table). The upper blue bar on the screen shows the Book and Currency of the bank account.

Bank statement document
Basic data

The Basic data tab of bank statements contains basic data that relate to the whole document.

pic_7297

Picture: Bank statements - Basic data tab

Description of fields:

Bank statement

Bank statement number, including the book of the bank account and the year. It is filled in automatically by pressing the Insert button.

Document No.

Bank statement number.

Date of issue

Date of issue of the document.

Time of issue

Time of issue of the document.

Created by

Date, time and name of the user who issued the document.

Changed by

Date and time of the last change and name of the user who changed the document.

Status

A field for selection from a code list, which allows the user to filter documents by the selected status.

pic_741i

Icon indicating confirmation of the document.

pic_1099i

Icon indicating that all items of the bank statement are matched, i.e. the statement does not contain an item of type N (unmatched). To display statements that contain an unmatched item, the factory filter Unmatched items over bank statements can be used.

Credit

Total credit amount of the statement. If it is an account in a foreign currency, the credit in the client's currency is also displayed next to it.

Debits

Total debit amount of the statement. If it is an account in a foreign currency, the debit in the client's currency is also displayed next to it.

Balance

Balance on the bank account. If it is an account in a foreign currency, the balance in the client's currency is also displayed next to it.

Imported balance

Balance imported into K2 from the bank file by the HB - bank statement function.

Items

Items are inserted into a bank statement in the standard way with the Insert key or the New icon. After pressing it, the Bank statement item form is displayed.

In the Bank accounts book, it is possible to set whether bank statements with VAT can be created for the given bank account (the Documents with VAT checkbox). When entering a bank statement item of the P/V type, slightly different forms for entering the item are then displayed depending on the Documents with VAT checkbox in the bank accounts book.

pic_1703753

Picture: Bank statement item - form, items of the P, V type (Documents with VAT is not checked in the bank accounts book)

Description of fields of an item of the Receipt/Payment type (Documents with VAT is not checked in the bank accounts book):

Type

Type of bank statement item (Receipt, Payment).

Ac. trans. date

The Ac. trans. date enters accounting.

Time

Time of the accounting transaction.

Counteraccount

Bank account number of the supplier/customer.

Bank code

Bank code number of the supplier/customer.

Banker's order

Link to the item of the corresponding banker's order.

Summation

Summing numeric identifier. It is stated on items that were grouped into one payment.

Tax point date

If Documents with VAT is not set in the bank account books, the field is greyed out and cannot be edited.

Reference number

Reference number of the bank statement item - it can be created automatically according to the setting in the Document books.

Specific symbol

Specific symbol.

Bank re-evaluation

The field is displayed only for bank accounts kept in a foreign currency. If the field is checked, it is a revaluation of the bank. It is used for bank accounts kept in a foreign currency when revaluing the bank account balance.

 

 

Name

Name of the item. It can be selected from the Cards of bank documents, where some settings can be predefined (tax, account, posting key, cost centre, article code, matching symbol, officer, code 1, code 2).

Net

Net amount in the document currency. If it is an account in a foreign currency, the Net amount in the client's currency is also displayed next to it.

Difference

Displays the exchange difference, which is stated in the client's currency.

Exch. rate

If the document is issued in a foreign currency, the document currency and the exchange rate for conversion to the client's currency are filled in.

Rate date

Pressing the button displays the exchange rate list and sets the cursor to the rate valid as at the Ac. trans. date of the statement item.

Addit. currency, Amount, Rate of additional currency

Option to enter the amount in another currency. After these fields are entered, the exchange difference is recalculated automatically. It is used when transferring funds between foreign bank accounts. E.g. 100 USD released and 80 EUR received. On the BV item with the receipt of 80 EUR, 100 USD is entered in the Additional currency and the Exch. rate of additional currency (as it was on the payment from the USD account). The exchange difference is quantified automatically.

Company

Selection from the Suppl./Cust. code list

Address

Option to enter a simple address.

Account

Account from the chart of accounts.

Posting key

Posting key of the bank statement item.

Matching symbol

This symbol is used for pairing in accounting.

Cost centre

Cost centre.

Contract code

Any numeric or text value used to classify the company's activities.

Article code

Article code

Device

Link to the Device book.

Code 1

Option to enter any code.

Code 2

Option to enter any code.

Officer

Link to the Officers book.

pic_1703754

Picture: Bank statement item - form, items of the P, V type (Documents with VAT is checked in the bank accounts book)

Description of fields of an item of the Receipt/Payment type (Documents with VAT is checked in the bank accounts book):

It contains the same fields as an item of the P/V type (without Documents with VAT checked in the bank accounts book), plus the following fields:

Tax point date

The Tax point date enters the Tax return. If the Tax point date is zero, the document does not enter the Tax return.

VAT

Checkbox for distinguishing whether it is a tax document.

VAT

VAT amount in the document currency. In the case of a bank statement in a currency, the VAT amount in the client's currency is also displayed.

Gross

Gross amount in the document currency. In the case of a bank statement in a currency, the Gross amount in the client's currency is also displayed.

Tax type

Selected from the code list of tax types.

Tax

Determination of the tax percentage.

Do not round

The field is checked if the Net and VAT amounts on the tax document are rounded differently than in IS K2. The Gross and VAT fields are then filled in on the bank statement item. The Net amount is calculated automatically.

pic_1703755

Picture: Bank statement item - form, item types PF, VF, PZ, VZ, MZ

Description of fields of items of the PF, VF, PZ, VZ, MZ, OP, OV type:

Type

Type of bank statement item.

Ac. trans. date

The Ac. trans. date enters accounting.

Time

Time of the accounting transaction.

Counteraccount

Bank account number of the supplier/customer.

Bank code

Bank code of the supplier/customer.

Description

Description of the text on the bank statement.

Command

Link to the item of the corresponding banker's order.

Paid document

Document that will be included in the bank statement item (invoice out/in, advance received/paid, payroll payable). The following characters can be used to select the paid document:

Reference number

Reference number from paid document, which is important for automatic matching.

Specific symbol

Specific symbol.

Summation

Summing numeric identifier. It is stated on items that were grouped into one payment.

Manual change of payment in currency

The field cannot be edited manually, but if we manually adjust the payment amount in the client's currency to the required value, this field is checked.

Net

Amount stated on the statement in the bank account currency. The payment exchange rate is used to convert the payment to the basic currency. The Statement amount in the basic currency enters accounting.

Payment

Payment amount. In this row, the payment amount can be entered both in a foreign currency and in the basic currency. The amount enters the Paid in total field on the Payments tab of the paid document.

Difference

Displays the exchange difference, which is stated in the basic currency.

If we change one of the amounts (payment in the invoice currency, payment in the basic currency, exchange difference), the remaining values are recalculated.

Payment exch. rate

Payment exchange rate in the bank statement currency.

Rate date

Pressing the button displays the exchange rate list and sets the cursor to the rate valid as at the Ac. trans. date of the statement item.

Pay. rate in doc. curr.

Payment exchange rate in the currency of the paid document.

Doc. exch. rate

Exchange rate stated on the paid document.

Company

Supplier/customer from whom the payment comes / whom we pay with this bank statement item. It is filled in from the paid document

Address

Field for entering a simple address of the supplier/customer.

Remaining amount

Amount remaining to be paid in the currency of the paid document and in the client's currency. This amount cannot be changed.

Document amount

Gross of paid document in the currency of the paid document and in the client's currency.

Account

Account from the chart of accounts.

Posting key

Posting key of the bank statement item.

Matching symbol

This symbol is used for matching in accounting. It is filled in from the paid document.

Cost centre

Cost centre. It is filled in from the paid document.

Contract code

Contract code. It is filled in from the paid document.

Article code

Article code.

Code 1

Option to enter any code. It is filled in from the paid document.

Code 2

Option to enter any code. It is filled in from the paid document.

Officer

Link to the Officers book. It is filled in from the paid document.

The following principles apply when calculating the above amounts:

If the underpayment or overpayment of an invoice paid in a foreign currency (converted to the basic currency) is less than the rounding error set in the client parameters, the payment amount in the client's currency in the Payment row is aligned with the amount of the paid document so that it is paid.

Foreign button - BANK STATEMENTS

The Foreign button displays data about the foreign bank connection. These are copied here automatically from the bank account on the Banks tab, located on the Supplier/Customer card.

pic_6249

Picture: Foreign button

Examples of entering bank statement items Example of entering a payment of an invoice in a foreign currency

Example: An invoice is issued for EUR 50.00 at an exchange rate of CZK 30 / EUR. The customer pays EUR 50.00; the payment exchange rate is CZK 26.62 / EUR.

On the bank statement item, we enter the Type "VF" and select the invoice.

In the Payment exch. rate field in the Statement amount row, we write "26.62", which is the current exchange rate of the bank account currency at the time of payment. The amount in the basic currency is thus CZK 1,331.

In the Payment exch. rate field in the Invoice currency row, we also write the value "26.62" (if it is not in the exchange rate list), i.e. the current exchange rate of the invoice currency at the time of payment. The invoice value in the Payment row is calculated as the quotient of the Payment value in the basic currency and this rate.

In the Payment field we thus have the amount of EUR 50, which at the original invoice rate is CZK 1,500. The exchange difference is CZK -169.

pic_6251

Picture: Bank statements - form, Payment of an invoice out in a foreign currency

Note on invoice payments:

Example of entering a payment of an invoice reduced by a fee

Example: We issue an invoice for a total value of CZK 1,190.00. The customer pays CZK 1,196.00 by postal order. Six crowns are to cover the postage costs. The post office deducts CZK 7.50, so CZK 1,188.50 will be credited to our account.

We enter 2 items on the bank statement:

Invoice out

CZK 1,190.00

Payment

CZK 1.50

We post only the amount of CZK 1.50 to expenses, because CZK 6.00 was paid by the customer.

pic_6252

Picture: Bank statements form

Posting

The Posting tab of the Bank statement is used for account assignment and posting of the document. This topic is described in detail in the Accounting - Account assignment and posting chapter.

External Documents and Documents (9th Page)

On the External Documents and Documents tab, any documents and external documents can be assigned to the bank statement. A more detailed description of working with attached documents and external documents is given in the Basic code lists and supporting modules of K2 - External Documents and Documents (9th Page) - Linkage and links chapter.

Functions over Bank statements

Description of functions:

F7

Account assignment and posting of the bank statement. The account assignment and posting functions are described in detail in the Accounting - Account assignment and posting chapter.

Alt+F3

In the bank statements book, recalculates the account balance (recalculates the balance from the item on which the cursor is positioned).

Alt+F3

Sets the default sorting of items on the Basic data tab.

Ctrl+F3

Matching of bank statement items (on the Basic data tab in Change mode and in a New record). This function is described in more detail in the Bulk matching of payments chapter.

Ctrl+F7

Bulk account assignment and posting of bank statements.

Ctrl+L

In the book and in View mode, for posted statements it jumps to the corresponding item in the accounting journal. For unposted statements, the cursor bar in the accounting journal is set to the first item. This action can also be run via Module menu - Form - Action - Documents - Accounting journal.

Ctrl+P

In the bank statement items in Change mode and in a New record, items can be loaded directly from a banker's order.

Ctrl+Enter

In the bank statement items in View mode these keys display the paid document.

Ctrl+Shift+F7

In the bank statement items in View mode, these keys display a filter of payment documents.

To revalue the balance of bank accounts, the Revaluation of bank accounts and cash desks function can be used, located in the tree menu Accounting - Revaluation - Revaluation of bank accounts and cash desks. Working with this function is described in more detail in the Revaluation of bank accounts and cash desks chapter.

Bulk matching of payments

Matching applies to those bank statement items that are entered with the type N - Unmatched. If the amount is positive, IS K2 searches for payments among invoices out and credit notes received; for negative amounts, it searches for payments among invoices in, payroll payables and credit notes issued.

The bulk matching of payments function can be run in Change mode over bank statement items with the Ctrl+F3 keys. Here we choose the matching conditions.

The function can also be run via the Matching bulk action, in which case matching is performed on unconfirmed bank statements marked with an asterisk.

pic_6253

Picture: Automatic matching form - Ctrl+F3

Description of fields:

Pair by variable symbol

Matches the bank statement on the basis of the reference number.

Match by the "Remaining amount"

Matches the bank statement on the basis of the Remaining amount.

Match by counteraccount

Matches the bank statement by the counteraccount entered on the document:

- if the bank code is filled in on the bank statement item, the Counteraccount and bank code on the bank statement item are compared with the account number and bank code on the paid document,

- if the bank code is not filled in on the bank statement item, the Counteraccount from the bank statement item is compared with the IBAN on the document.

Check before due date

For matching checks, it allows entering the maximum number of days before the due date of the paid document.

Add supplier/customer to description

After the payment is matched, it adds the name of the supplier/customer to the Description field on the bank statement item. If the item is matched with a banker's order, the Description from the order item is added.

Set advance rate by payment rate

If the field is activated, during matching the exchange rate on the advance is changed according to the rate on the bank statement. If the field is not activated, the rate on the advance does not change and an exchange difference arises on the payment.

Recalculation of bank account balances

Recalculation of bank account balances is a function that allows the balance of selected bank accounts to be recalculated. The function is located in the tree menu Finances - Bank - Recalculation of bank account balances.

pic_7955

Picture: Form for Recalculation of bank account balances

After the function is run, a form opens containing:

Furthermore, a table with a list of all bank accounts is displayed in the input form. The following columns are displayed:

With the asterisk, we can unmark/mark a bank account for recalculation (manually or using the asterisk buttons).

After the form is confirmed with the OK button, the balances in the client's currency and in the bank account currency are recalculated in the marked bank accounts on documents with an Issue date from the day stated in Period from.

The function can be included as a scheduled task. The scheduled task respects the display of own companies set for the user under whom it is run. If the scheduled task is run with a period that is blocked in another own company, the first unblocked period of the given company is assigned.

Book Contents

Book Index

Bulk changes over bank statement items

Bulk change - the function is intended for bulk changes of bank statement items. It is run from the header of the bank statement form over the marked items with the bulk change icon. The function can also be run from the ribbon on the Items tab.

pic_107363

Picture: Bulk change

pic_107364

Picture: Bulk change form

Name - used to change the item name. Before execution, the user chooses whether to change the values on the item. It is possible to enter a custom name or select one from the Cards of bank documents code list. If the name on the item is empty and the user wants to keep the values on the item, the values from the card are transferred anyway, in the same way as with a manual change. It also depends on whether the card of bank document to which we want to change the item name in bulk has the Do not copy name checkbox. If the checkbox is set and a name is entered on the item, the name is not overwritten.

Bulk change - a general bulk change, in which the fields that are in the columns are displayed for change (except the currency field, which cannot be changed).

pic_107361

Picture: Bulk change

pic_107362

Picture: Bulk change form

Current balance

The function sends a request to the bank's API and displays the current account balance.

The function is available only in the book state, provided that a connection to the bank API is set for the current book. If it is not set, the function is hidden.

Load account movements

For the selected period, the function downloads the movements on the account linked to the current book and creates records for them in the bank statements.

The function is available only in the book state, provided that a connection to the bank API is set for the current book. If it is not set, the function is hidden.

Book Contents

Book Index

Split item

The Split item function splits an item into two according to the price. The user enters the price and the function calculates the remaining amount. A typical example of using the function is cash in transit - when money is sent to a savings account and the amount including interest comes back. The amount needs to be split separately for interest and separately for cash in transit.

The Split item function is available in Change mode of a bank statement for items of the N (unmatched), V (payment) and P (receipt) types. The function is located in the ribbon on the Items tab.

Book Contents

Book Index

Split items according to analytical dimensions

The function allows you to split an item of the Receipt or Payment type by a specified percentage, and the created item will have the analytical axis values set according to the defined values. A detailed description of the function is in the chapter Functions over purchase and sales documents.

Reports over bank statements

Bank statement

Bank accounts balances to date

Bank statements by counteraccounts

List of bank statements

List of bank statements - detailed

Statement of bank statements

Book Contents

Book Index

Homebanking

The homebanking functions allow:

Grouping of items

The HB - Grouping of items script (HB_GroupOrder.PAS) is used to group payments to individual suppliers within one order. It is run over the Basic data tab of the banker's order in Change mode and automatically groups payments up to the entered amount by the recipient's account number and by recipient.

pic_6611

Picture: Grouping of items form - loaded banker's order items before grouping (summing is 0)

In the form, it is possible to set:

The Group button is used for grouping – items with the same Account No. and Company are grouped automatically. If the script parameter Supplier check (CheckSupplier) is set to False, items are grouped only by account number and the Supplier is not checked. Existing grouping can be deleted with the Delete grouping button.

pic_6408

Picture: Grouping of banker's order items form

It is possible to mark the items we want to group with an asterisk. Grouping is then performed only for the selected banker's order items.

Over a grouped banker's order, it is possible to print the Payment notice report (HB_PaymentNotice.AM). The report displays all payments for a specific supplier grouped under the given reference number. By default, the report is set to print the grouped payments for the customer on which the cursor bar is positioned. If all grouped payments need to be printed at once, the PrintAll report parameter must be set to YES.

HB_PaymentNotice

Parameters of grouping of items

Parameter description:

EditAccountAndVS

If this parameter is set to "YES",

the account number and reference number can be edited. The default setting of the parameter is "NO".

FieldNameCurrency

Item currency field.

If not entered, the ItemCurrency field is used for a free payment and PaidDocumentCurrency for a paid document.

CheckSupplier

Supplier check. Set by default.

PaymentLimit

Maximum amount of a grouped item.

PaymentLimitCurr

Currency of the maximum amount.

UseOldDesign

Apply original appearance (in classic forms).

VsCharLimit

Maximum number of description characters with RN of a grouped item.

Export of banker's order

The HB - banker's order script (HB_ORDER.PAS) is available for creating banker's orders. It allows creating banker's orders for these systems:

Before using the script, the parameters must be set. Some script parameters are general and others relate only to the respective system. At startup, the script checks whether the parameters are entered and, where possible, also whether they are correct. If the initial parameter check passes successfully, the banker's order file is created. After the file is created, the icon pic_959i is displayed on the Basic data tab, meaning that the banker's order has already been sent. If the user needs to export the banker's order again, the Finances/Banker's orders/Repeated sending of banker's order right must be set.

The function allows exporting several banker's orders marked with an asterisk into one export file.

Some banking systems, such as the "Best KB" format, also support SEPA payments; however, the payment order created in the BEST format must meet the criteria for a SEPA payment (Single Euro Payment Area – a single payment area within the EU):

Book Contents

Book Index

Common parameters for orders

Description of parameters:

AccOrder

The parameter determines from which field the bank account is filled into the order:

  • "0" - from the banker's order,
  • "1" - account number,
  • "2" - account number 1,
  • "3" - account number 2.

AllowedChargeCodes

List of allowed charge codes separated by a comma or semicolon. If a description also needs to be added, it is separated by the | character (vertical bar).

SHA;OUR

SHA|paid by both;OUR|paid by us

ArchviveDocType

External document type for attaching to the document (must exist in K2). If entered, the exported file is inserted into the External Documents and Documents tab of the banker's order.

Backup

If this parameter is set to "YES", the output file is backed up. The default setting of the parameter is "YES".

ClientID

Client identification. ClientId can be used in FormatFilename using %l. A similar parameter is KM_ClientNr.

CompanyName

If filled in, its value is used instead of the company name. If not filled in, the company name is filled into the line. Applies to formats that contain the company name.

Counter

Starting number of the counter for creating files. So far it works only for types 23 and 24.

DateForFilename

Date that will be used if it is used in the file name.

  • "1" – today,
  • "2" – creation date of the banker's order,
  • "3" – due date of the banker's order.

DiffFilenames

Test whether an order with this name has already been created. The default value is "NO" (the file is overwritten). If the parameter is set to "YES", a message is displayed with a choice of whether to append the order to the existing file or create a new one.

EnabledBooks

Checks running of the HB_Order.pas script over the listed books of banker's orders. The books of banker's orders are entered into the parameter separated by a semicolon, CZ;EU.

ExExpPay

Parameter for presetting the charge. If it is not filled in on the banker's order item, the parameter value is filled in.

ExPayTit

Parameter for presetting the payment title. If it is not filled in on the banker's order item, the parameter value is filled in.

ExportItemDescr

The parameter determines what is filled into the description (from the order item):

  • "0" - nothing,
  • "1" - description,
  • "2" - recipient company,
  • "3" - reference number,
  • "4" - message for recipient,
  • "5" - payment detail,
  • "6" - reference number of the grouped payment.

ExportItemDescr2

The parameter determines what is filled into the second description (from the order item):

  • "0" - nothing,
  • "1" - description,
  • "2" - recipient company,
  • "3" - reference number,
  • "4" - message for recipient,
  • "5" - payment detail,
  • "6" - reference number of the grouped payment.
  • So far, the parameter can be used only for KB Best domestic (HBType=3).

ExportItemDescrFormat

 

Fills in the description field according to the specified format. Item fields must be entered as [M_poleK2]. It takes precedence over the ExportItemDescr parameter. Example: [M_TradingPartnerId;Abbr],[M_Description].

The HBType=5 order has been modified to allow the use of the ABO extended format (ČS). The ExportItemDescrFormat script parameter needs to be set, for example, as follows: [M_Description]|[M_TradingPartnerId;Abbr], where the field (value) before | is the message for the recipient and after | the message for the sender. Each can be 140 characters long.

ExportItemDescrFormat2

 

Fills in the description 2 field according to the specified format. Item fields must be entered as [M_poleK2]. It takes precedence over the ExportItemDescr parameter. Example: [M_TradingPartnerId;Abbr],[M_Description]. This parameter can be used only for Description 2 of the BEST domestic order (HBType=4). Other formats do not have description 2.

FileEncoding

Selects the character set encoding of the input file:

  • 1250 - windows-1250,
  • 20127 - us-ascii (7-bit) - without diacritics,
  • 28592 - iso-8859-2,
  • utf-7 (Unicode (UTF-7),
  • utf-8 Unicode (UTF-8).

Other encoding values can be found at: http://msdn.microsoft.com/en-us/library/dd317756%28VS.85%29.aspx

FileNameByUser

Option to set the file name in a dialog window.

FileNameMaxLen

For setting the length of the file name. If a longer file name is to be created according to the FormatFilename parameter, a message is displayed asking to adjust the FormatFilename parameter.

FirmAdr

The path starts in the company directory. The parameter is set by default to "YES". If the parameter is set to NO, the full path must be written into the HBPath parameter.

FormatFilename

File name format. The file name formatting string is created in the same way as in the Format function, but it has different characters for distinguishing values.

Meaning of the formatting characters:

  • "y" - year,
  • "m" - month,
  • "d" - day,
  • "h" - hour,
  • "n" - minute,
  • "s" - second,
  • "r" - series of the banker's order,
  • "c" - number of the banker's order.

Example:

  • creating the name "EB_20030717Klie.KPC".
  • formatting string "EB_%.4y%.2m%.2dKlie.KPC".

HBPath

This parameter is related to the FirmAdr parameter. If the value "YES" is set in the FirmAdr parameter, it is enough to enter only the directory name in the HBPath parameter, e.g. "HB". The default value is "Homeban". If the FirmAdr parameter were set to "NO", the full path must be entered in the HBPath parameter, e.g.: /K2/DEMO/HB.

HBPathAr

Subdirectory of HBPath with files for the homebanking archive. The default setting of the parameter is "ARCH".

HBType

Type of banker's order. The default value of the parameter is "0".

Values:

  • "1" = Multicash domestic,
  • "2" = Multicash foreign,
  • "3" = KB best domestic,
  • "4" = KB best foreign,
  • "5" = KB compatible media,
  • "6" = Citibank domestic,
  • "7" = Komerční banka Slovensko foreign order,
  • "8" = Gemini domestic,
  • "9" = Gemini foreign,
  • "10" = CitiDirect domestic,
  • "11" = ČS foreign, all systems 24,
  • "12" = Citibank foreign,
  • "13" = Citibank CDFF CEE domestic,
  • "14" = Citibank CDFF CEE foreign,
  • "15" = Deutsche Bank DBDirect domestic,
  • "17" = CitiDirect foreign,
  • "18" = Sepa .xml format,
  • "19" = Citibank SEPA,
  • "20" = pain.001.001.06: Reval,
  • "21" = Citibank direct debit,
  • "22" = ČSOB, MT101, foreign,
  • "23" = Sepa.xml according to the ČNB specification,
  • "24" = FS5 format - ČNB format.

Header

Adds a header to the file. The default value of the parameter is "NO".

InstantPayment

Instant payment. If the parameter is set to "YES", for formats that support instant payment, it adds the instant payment flag to the items. So far only for the ISO 20022 format (HB_Type=14). The default value is "NO".

Modulo11

Check of the account by Modulo11. The default value is "YES".

OneFile

The parameter is related to the option of creating one export file for several marked orders. If the value is set to YES, the export is performed into one file.

OnlyConfirmed

If the parameter is set to "YES", only a confirmed order can be exported. The default setting of the parameter is "NO".

OutputBatch

Output batch, including path, which is run after the script finishes. The default value is an empty string.

PaymentType

The parameter determines in which currency the order amounts are exported. The default value is "0".

Values:

  • "0" - in the currency of the paid document,
  • "1" - in the order currency,
  • "2" - in another currency (intended for special modifications.

ReplaceExMess1ByVS

If the parameter has the value "YES" and descriptions from the item entered under the Foreign button are exported to the banker's order, the reference number is filled into the first Message for recipient or Payment detail field. It is mostly filled into the Message for recipient field. The default value is "NO".

Parameters of grouping of items

Description of parameters:

GroupItems

If the parameter is set to "YES", the banker's order takes the grouping of items into account. The default value of the parameter is "YES".

FillVS

If not filled in on the banker's order item, it fills the reference numbers of the grouped items in the place for the order description. The default value of the parameter is "NO".

FieldNameCurrency

For grouping items by own currency (intended for special modifications).

Parameters of foreign orders

Description of parameters:

A1

Order of the field in the recipient's address. Default = "1"

A2

Order of the field in the recipient's address. Default = "2"

A3

Order of the field in the recipient's address. Default = "3"

A4

Order of the field in the recipient's address. Default = "4".

In the "A1 - A4" parameters, it is possible to specify which line of the bank's or recipient's address is filled into the respective fields in the text file. Depending on the system, these parameters must be defined correctly, because the systems fill the individual lines of the bank address under the Foreign button (on the banker's order item) into different fields of the text file.

Example: If, e.g., Diego, CA 92126, is written in line no. 3, then after setting the A1 parameter to the value "3", the following text is filled into the A1 field in the text file: San Diego, CA 92126.

Parameters for Multicash

Description of parameters:

MC_AD

If the parameter has the value "Yes", the AD field appears in the domestic order. The default value of the parameter is "No".

MC_CfaEmFirstLine

If the parameter has the value "Yes", the first line in the foreign order is displayed empty. The default value of the parameter is "Yes".

MC_Collection

The parameter determines what kind of data will be exported in the order. The default value is NO.

NO - payment,

YES - direct debit.

MC_FeeSet

Charge codes.

0 - all, 1 - SHA/OUR/BEN, 2 - BN1/OUR/BN2

MC_Field_72_3

This parameter relates to the foreign banker's order and allows field 3 on line 72 in the resulting banker's order to be filled in externally.

MC_F01_SWIFT

The parameter determines whether SWIFT or SCB is filled into the F01 field. (If the value is "YES" - SWIFT, if the value is "NO" - SCB.) The default value of the parameter is "Yes".

MC_F07_Filename

The parameter fills the file name field in the file header of the Multicash foreign order. Some banks require it (so far UCB), others do not. By default, it remains unfilled.

MC_UD_CompanyName

The company name will be added to the UD field.

MC_ZD

If the parameter has the value "Yes", a ZD line is added to the order. Some banks require it, others do not. The default value of the parameter is "No".

Creating the description on a Multicash foreign order item:

Example of a file:

HD:11|080131|2700|1|0300

RF:MCFDI2008013114184500000000100000000

KC:4005006000|000000|CZK

UD:100001|2222222222|UCET1

DI:POPIS|PRIKAZCE|1

UK:|7777777777|UCET1

AK:0

KI:POPIS|PRIJEMCE|1

EC:0

ZK:1122334455

AV:UCEL|PLATBY1

|||UCEL|PLATBY2

|||UCEL|PLATBY3

|||UCEL|PLATBY4

S1:000000001|4005006000

S3:000000000|000

Parameters for KB Best

Description of parameters:

Best_AccFees

The parameter can be used to enter the account for charges.

Best_Client

Client name. The default value is an empty string.

Best_CurrFees

Parameter for specifying the account for charges.

Best_ForceExpPay

For a foreign order. If the parameter value is "YES" and the Charges field is not filled in on the order item, a dialog window for entering the charge type is displayed. The default value of the parameter is "NO" – the SHA charge type is filled in automatically.

Best_FOREX

Forex payment.

Best_FOREX_ID

Forex ID.

Best_CheckPayment

Payment by cheque.

Best_MoreAccounts

The parameter determines whether the sequence number of the item will contain the order book. The default setting of the parameter is "NO".

Best_Refund

With this parameter, it is possible to specify whether to create a payment file (1501) or a direct debit file (1502). The default setting is "1501".

Best_Security

The key specified by the bank is also saved in the created file.

Best_StationNr

Station number assigned in the contract.

Example of a file:

HI000000000010604 0000000000

01000002001060420010604CZK000000000056700000000000000308 0100000019027378021707206100330000000000 0100000000006930676107206100330000000000

01000012001060420010604CZK000000000015120000000000000308AV zadano vse 0100000019027378021700005254540000000000Zadan popis debet 0100000000001190429100005254540000000000

01000032001060420010604CZK000000000053220000000000000308AV + debet zadano 0100000019027378021740012065230000000000 2700000000003083000540012065230000000000Zadan popis kredit

01000042001060420010604CZK000000000053220000000000000308AV + kredit zadano 0100000019027378021740012065230000000000 2700000000003083000540012065230000000000

01000052001060420010604CZK000000000053220000000000000308 0100000019027378021740012065230000000000 2700000000003083000540012065230000000000Zadan jen popis kredit

01000062001060420010604CZK000000000053220000000000000308 0100000019027378021740012065230000000000Zadan jen popis debet 2700000000003083000540012065230000000000

01000072001060420010604CZK000000000053220000000000000308 0100000019027378021740012065230000000000Zadan popis debet a kredit 2700000000003083000540012065230000000000Zadan popis kredit i debet

TI000000000010604000007000000000000337920 00000

Parameters for KM

Description of parameters:

KM_Client

Client name.

KM_ClientNr

Client number.

KM_IntervStart

Beginning of accounting files; assigned by the bank. The default setting is "0".

KM_IntervEnd

End of accounting files; assigned by the bank. The default setting is "999".

KM_Refund

Kind of data:

  • "1501" – payment,
  • "1502" – direct debit.

By default, the parameter is set to "1501".

KM_Branch

Branch name.

KM_MaxLines

Maximum number of lines of an accounting file. The default value is "1000".

KM_MaxGroups

Maximum number of groups. Set to "98" by default.

KM_MaxGroupLines

Maximum number of lines of a group including header and footer. The parameter is set to "20" by default.

KM_MaxGroupChars

Maximum number of characters of a group. Set to "992" by default.

KM_UseAV

Whether the AV constant is to be used. Default value "NO".

KM_CheckDescr

If the parameter is set to "YES", a check is performed whether the description contains the characters %,<,>,$,../,/..,',".

KM_DescrSubFields

The parameter determines how long the item description can be. E.g. Česká spořitelna can enter only 1 line in the description, while Komerční banka is able to enter a longer description - up to 4 lines. The default setting is "4".

KM_VSLocation

The parameter relates to statements for "KM" that contain foreign items. The reference number occurs in the description fields of the bank statement in line 078 or 079 in the 1st or 2nd position - in line 078 it is position 0781 or 0782, in line 079 it is position 0791 or 0792. This reference number is filled into the Reference number field on the bank statement item. "0781", "0782", "0791" and "0792" are the parameter values. By default, the parameter is empty.

Example of a file:

UHL1040601ZKUSEBNI KLIENT 1201509797100120

1 1501 100068 0100

2 00000005201 070102

1107160287 500005-2267100237 5201 1 0101000558

3 +

2 00000005201 070102

500005-2267120297 1107160287 5201 1 0901000558 2 AV:Payment for electricity for the month of January.|Invoice number 89aj456

3 +

5 +

Parameters for the Sepa .xml format

Description of parameters:

SXP_BankFormat

The parameter determines for which bank the SEPA format is used. The 4-digit bank code (BIC) or SWIFT in long or short form is entered into the parameter. So far, the use of the parameter is adapted only to Komerční banka.

SXP_EndToEndId

Byte that ensures filling in of the EndToEndId field for SEPA XML payments. The parameter can take the values:

0 - RN-description (originally E2EIdVSSSKS = No)

1 - format /VS1234567890/SS1234567890/KS0308 (originally E2EIdVSSSKS = Yes)

2 - RN.

SXP_Header

Header of the XML document.

Default value <?xml version="1.0" encoding="utf-8"?>

If no text is filled in, the header of the XML document will be empty.

SXP_CheckIban

The parameter determines whether the IBAN is to be checked during the order export. The parameter can have the value YES or NO. Set to YES by default.

SXP_PmtInfOnce

The parameter adjusts the export and the form of the resulting XML document. The parameter can have the value YES or NO. Set to NO by default. When the value is set to:

NO - one PmtInf element is created for each order item, thus creating a collection of PmtInf elements.

YES - one common element (collection) PmtInf is created for all items, and each item has its own CdtTrfTxInf element.

SXP_UsePstlAdr

The parameter can have the value YES or NO. Set to NO by default.

YES - fills in the PstlAdr element - postal address.

Parameters for Gemini

Description of parameters:

GEM_CountryText

Export of the country name: 0 - ISO 2 characters, 1 - ISO 3 characters, 2 - Czech name

GEM_Priorty

Payment priority in the Gemini system: 01 - standard, 02 - urgent. If this parameter is filled in for a foreign banker's order, this value is set.

If the parameter is not filled in, 02 is set for Unicredit and 01 for other banks. Both values mean a standard payment.

The Gemini system is used, e.g., at Raiffeisenbank. For illustration, a banker's order from K2 in eKomunikátor at Raiffeisenbank is shown below.

pic_4129

Picture: Display in eKomunikátor at Raiffeisenbank

pic_6266

Picture: Banker's order item

pic_6267

Picture: Banker's order item - Foreign button

ČNB format

If HBType=24, i.e. the format for the ČNB (Czech National Bank), is selected when exporting a banker's order with the HB - banker's order function (HB_order.pas), the bank requires a signature file of the exported file. This can be done by an external application or by using the libraries of the company I. CA (I. certification authority). To be able to sign the file, the signing libraries (AdvIcaSigner.dll, libiconv.dll, ICAUniLicVerifyCInterface, dll) must be in the main K2 folder; they are not supplied by K2 but by I.CA. The export file must also be provided with another signature, which is ensured by running the HB - signing of order I. CA script (HB_SignIca.pas) over the exported order. This script must be run by another user under another Windows login.

The paths to the license files of I.CA can be set using the Electronic signature settings function (function no. 1261). Depending on how the license files are used, a license per client or per user can be distinguished.

Book Contents

Book Index

Format for Citibank - working with templates

To the export files for Citibank:

functionality for working with templates has been added.

On the Supplier/Customer card, on the Purchase tab, in the Bank accounts section, the new fields TemplateGroupCalc and TemplateNameCalc have been added to the bank account item. The same fields have also been added to the banker's order item. TemplateGroup is a link to the spestr code list and defines a group of templates. It does not have to be filled in. TemplateName is the name of a specific template.

Principle of working with templates:

The bank keeps a list of bank connections (a "white list") to which payments can be sent. If a bank account is not on this list, it will not be possible to make the payment. Instead of the account number, the user will send only the template name, which is then matched at the bank when the file is processed. If TemplateName is filled in, it takes precedence over the account number, which will not be sent.

Examples of export files Example: Banker's order - Citibank system

1,"001","2501234567","2040000765","29112004",30000.00,"","2671500267","0100","0008","0

020040676","","KRIZ LADISLAV"

1,"002","2501234567","2040000981","29112004",50000.00,"","0420923389","0800","0008","0

002004129","","BRUNI CARLA"

1,"003","2501234567","2040000607","29112004",112368.50,"","0650445271","0100","0008","

1000004564","","NOVAK JAN"

1,"004","2501234567","2340000889","29112004",13242.00,"","0047443191","0100","0308","0

000013304","","DODAVATEL"

1,"005","2501234567","2440000201","29112004",46707.50,"","2500020103","2600","0308","0

111067504","","SPOJE "

1,"006","2501234567","2340001009","29112004",11662.00,"","9391320247","0100","0308","0

000131991","","KOMUNIKACE"

1,"007","2501234567","2340001020","29112004",3145.17,"","9391320247","0100","0308","00

00132449","","KOMUNIKACE"

1,"008","2501234567","2340001030","29112004",2380.00,"","9391320247","0100","0308","00

00132389","","KOMUNIKACE"

1,"009","2501234567","2340000988","29112004",2981.00,"","0391742561","0100","0308","00

00533804","","VYLISKY"

9,"010",272486.17

Example: Banker's order - Gemini system

000001110209036800 0800 000000000010000 00000003080000000009000035943400000030600286660000001031621568

Import and matching of bank statement

The HB - bank statement script (HB_STATEMENT.PAS) is used in IS K2 to import bank statements of all systems used. Based on the selected parameter, we determine the system used by the bank, i.e. which statement is to be imported into IS K2.

Book Contents

Book Index

Common parameters for statements

Description of parameters:

AccNum

Bank account number (if not entered in the imported file).

AllowMinusAmount

When the parameter is set to "YES", we can get into negative values when splitting items. By default, the parameter is set to "NO".

ArchiveCondition

Determines the archiving method of the input file. The default value is 0. The parameter can have the values:

0 - always,

1 - never,

2 - when there is no account loading error.

ArchiveDocType

External document type for attaching to the document (must exist in K2). If the parameter is entered, the exported file is attached to the bank statement on the External Documents and Documents tab.

AutoLoadDocuments

Function for searching documents by RN. The function finds a document for a statement item if only one appears among the documents. The order is invoices out, invoices in, advances received, advances paid, other receivables, liabilities. The search also depends on the RefNoPattern parameter. If it contains something, the RNs are searched one after another in the ReferenceNumber field, e.g.: Ref No. 100001,100002,100003 finds documents with these reference numbers. If this parameter is not entered, the search is performed directly by the value in ReferenceNumber.

AutoPairDocuments

Matches the found documents with the statement item, or splits it, as if the Split button were pressed in the form. It also works over a saved statement.

If the parameter is set, the AutoLoadDocuments parameter is also set automatically (without it, the function for automatic matching of documents would not work).

AutoPairDocumentsPercent

 

Percentage by which the statement amount can be lower than the found documents. If the difference is greater, it is not matched.

AutoPairDocumentsType

The parameter determines how the amount on the bank statement is matched to a document during automatic matching. The parameter can take the values:

0 - the document amount is matched to the document and an item of type N is created for the remaining part,

1 - matches documents with the same RN so that whole documents are always paid; the remaining amount stays as N,

2 - the amount from the bank statement is matched to the document.

AvailableAccounts

Parameter allowing selection of only some accounts from a bank statement with a large number of accounts that are in K2. Accounts are separated by a semicolon. By default, the parameter is empty.

BCN

Bank sort code. Must be filled in for Best, Compatible media, Citibank.

BookAbbr

Abbreviation of the book of bank accounts into which the statement is to be saved.

The account number and the bank code are then not checked. Some files, e.g. PayPal, may not contain the account number.

CARD_InterCompBooks

Books of internal documents. The parameters only serve to refine the search for possible internal documents for matching; the script also works without setting them.

CARD_ProviderBankAcc

Account number of the card transaction intermediary. The parameters only serve to refine the search for possible internal documents for matching; the script also works without setting them.

CARD_ProviderBankBcn

Account number of the card transaction intermediary. The parameters only serve to refine the search for possible internal documents for matching; the script also works without setting them.

ConfirmStatementSave

Confirmation of statement saving. Cancels the confirmation window before saving the statement. This window appears only in case of a statement number conflict.

CurrencyCodes

It is entered when the currency abbreviation in K2 does not correspond to the international code, e.g. EU|EUR (abbr. in K2|international code).

DecodeAccount

In some cases, the bank account numbers in the statement may be recoded, i.e. their digits are in a different order. So if IS K2 reports "account not found", it is advisable to set the parameter to "YES".

DocInfoAdvancePrv

Fields of advance payments provided which are to be displayed in documents in Info.

DocInfoAdvanceRec

Fields of advance payments received which are to be displayed in documents in Info.

DocInfoInterComp

Fields of internal documents which are to be displayed in documents in Info.

DocInfoInvoiceIn

Fields of the Invoice in which are to be displayed in documents in Info.

DocInfoInvoiceOut

Fields of the Invoice out which are to be displayed in documents in Info.

DocInfoOtherLiab

Fields of other liabilities which are to be displayed in documents in Info.

DocInfoOtherRec

Fields of other receivables which are to be displayed in documents in Info.

E2EIdVSSSKS

The parameter can be used for payments with Slovakia. The parameter can have the value Yes or No. The SEPA format does not distinguish our symbols (reference number, specific symbol, payment type code), only the "Referencia platiteľa" (payer reference). If the user wants these symbols to get into the order in the form agreed by the Slovak banks in the SBA (Slovak Banking Association), the parameter must be set to Yes.

FieldK2BankBalance

K2 field into which the account balance will be filled. It is an Ex_field of the decimal number type.

FieldK2BankBalanceOld

K2 field into which the old account balance will be filled.

FieldK2CashVouchRefNo

Field of the cash document with the reference number. The programmer name of the cash document field which is to be transferred to the Reference number field on the bank statement item when matching card payments to cash documents.

FieldK2InterCompRefNo

Field of the internal document with the reference number. The programmer name of the internal document field (most often ExternalNumber) which is to be transferred to the Reference number field on the bank statement item when matching card payments to internal documents.

FieldK2RefNoCopy

Field for copy of loaded Ref. No. before editing.

FieldK2SpecSym

String, K2 field into which the specific symbol will be filled. When this field is entered and it is found in the list of statement item fields, the specific symbol is filled into it. These may also be existing fields, e.g. description, messages for recipient, payment details, etc.

FileEncoding

Parameter for selecting the character set encoding of the input file. A more detailed description of the parameter is given in the chapter Common Parameters for Commands.

Filemask

Default statement name or mask.

FilemaskOriginal

File mask for splitting by accounts (SplitStatementFile).

FirmAdr

The path starts in the company directory. The parameter is set to "YES" by default.

GetExtendedDescr

Parameter for importing long descriptions; it transfers the description to the Foreign button of the bank statement item.

GroupedItems

The parameter can be used to specify whether to process grouped items. The default setting of the parameter is "YES".

HBPath

This parameter is related to the parameter FirmAdr. If the value "YES" is set in the parameter FirmAdr, it is enough to enter only the directory name in the parameter HBPath, e.g. "HB". The default value is "HOMEBAN". If the parameter FirmAdr were set to "NO", the full path must be entered in the parameter HBPath, e.g. "C:/K2/DEMO/HB".

HBPathAr

Subdirectory with files for the homebanking archive. The default setting of the parameter is "ARCH".

HBType

Bank statement type. The default value of the parameter is "0".

Value:

  • "1" = Multicash,
  • "2" = KB best,
  • "3" = KB compatible media, ABO format
  • "4" = Citibank type 1,
  • "5" = Citibank type 2,
  • "6" = Multicash Gemini,
  • "7" = Multicash UniCredit,
  • „8"

    =

    mBank,
  • "9" = Gemini 4.1,
  • "10" = HSBC net,
  • "11" = City Flat File,
  • "12" = Multicash ING,
  • "13" = PayPal,
  • "14" = Iso 20022, camt.053.001.05, Slovak xml, KB XML,
  • "15" = Czech National Bank (ČNB),
  • "16" = General .csv file,
  • "17" -= Citfin,
  • "18" = Citi SWIFT MT940,
  • "19" = statement of payments on a card payment terminal,
  • "20" = KB Mojebanka csv format,
  • "21" = Halcom, a format used in Serbia and Slovenia,
  • "22" = Format of Serbian banks, provisionally named Serbian 1,
  • "23" = XML format for Česká spořitelna in EUR,
  • "24" = Multicash V4 MT910 MCY format.

HeaderDate.ToItem

When the parameter is set to "YES", the date from the header is filled into the bank statement items. The default setting of the parameter is "NO".

IdFromStatement

When the parameter is set to "YES", the statement number from the text file is filled into the bank statement. If the parameter is set to "NO", the number from K2 is filled in.

IgnoredBooks

List of books separated by a semicolon which are not to be searched when importing the bank statement.

ImportItemDescr

When the parameter is set to "NO", the script does not work with item descriptions. The parameter is set to "YES" by default.

ImporTradingPartner

The default value is No.

If the value is set to Yes, the script will try to fill in the supplier or customer on the statement item.

InputBatch

Input batch which is run before the script is started.

KeepOriginalRefNo

Keeps the reference number for "invoices out" (does not trim the entered zeros).

KeepStaDescr

If the parameter is set to "YES", the script keeps the description from the statement when splitting items. The default setting of the parameter is "NO".

KeepStaRefNo

Keep the reference number from the statement when splitting items.

LoadDocsAdvancePrv

Load advance payments provided.

LoadDocsAdvanceRec

Load advance payments received.

LoadDocsInterComp

Load internal documents.

LoadDocsInvoiceIn

Load invoices in.

LoadDocsInvoiceOut

Load invoices out.

LoadDocsOtherLiab

Load documents of other liabilities.

LoadDocsOtherRec

Load documents of other receivables.

LoadUnmatchedItemsOnly

Load only unmatched items.

MakeCheckSum

Check of the sum of items. It checks whether the sum of the items equals the difference between the closing and opening balance on the bank statement. It is an optional parameter and is set to "NO" by default.

Modulo11

Check of the account by Modulo11. The default value is "YES".

OrderItemDayLimit

Specifies the number of days back from today within which unmatched bank order items are to be searched for. It may happen that a universal reference number is used for various payments which are never matched on the order.

The default value is set to 40.

RefNoPattern

Searches for RN in the text by the specified regular expression.

RefNoIgnoreCheck

Ignore the check of the reference number for a number.

RemapFields

Before saving an item from the text statement, it fills the specified field with the value of another field. It is used mainly when sending reference numbers abroad using various fields intended for a message to the recipient or sender. If the field being filled is the reference number:
- only numeric characters are read,
- leading spaces are ignored,
- if the first character after the spaces is not a digit, nothing is filled in,
- reading of the reference number ends with the first non-numeric character.

Example:

description=cfMessageForRecipient1 - fills the 1st line of the message for recipient into the description

ReferenceNo=cfMessageForRecipient1 - fills the 1st line of the message for recipient into the reference number.

SaveEmptyStatement

With the value "YES", an empty bank statement is not imported. It is set to "YES" by default.

SelectSource

If this parameter is set to "YES", the file source can be selected at the beginning of the script run.

ShortDateFormat

Short date format, e.g. yyyy-mm-dd h:nn:ss.

ShowBooksOtherLiab

Books of other liabilities (separated by a semicolon) from which documents are offered for matching. If not entered, documents from all books of the current company of the client are offered.

ShowBooksOtherRec

Books of other receivables (separated by a semicolon) from which documents are offered for matching. If not entered, documents from all books of the current company of the client are offered.

ShowBooksPurch

Books of purchase (separated by a semicolon) from which documents are offered for matching. If not entered, documents from all books of the current company of the client are offered.

ShowBooksSale

Books of sale (separated by a semicolon) from which documents are offered for matching. If not entered, documents from all books of the current company of the client are offered.

SortByApplication

If it is set to "Yes", the data are sorted as in the banking application. So far, the parameter is applicable only to Compatible media. The default value is "No".

SourceType

Parameter for entering the file type (otherwise a form for selecting whether to process a file or a document). Data source: 0 - file, 1 - document, 2 - selection of file or document. It replaces SelectSource, which is still functional.

SplitStatementFile

Splits the files according to the mask into individual accounts.

StaCurrency

Statement currency.

SXP_BankFormat

For entering the bank number or SWIFT. The import then reads the reference number and the payment type code according to the format of, so far, Komerční banka.

SXP_StatementDate

The parameter makes it possible to change the element for loading the statement creation date. It concerns only bank statement type 14 - Sepa xml format. The default value is 0. The parameter can have the values:

0 - CreDtTm (file creation date),

1 - FrDtTm (interval from),

2 - ToDtTm (interval to).

TestOnly

0 - standard behaviour,

1 - only loads the statement without saving it or loading the correct book,

2 - saves the loaded text statement into AktDM in change mode.

UserBusinessYear

The default value is "No". If the parameter is set to "Yes", the business year of the new bank statement is not searched for in K2 according to the date in the import file, but is taken from the user settings.

VSInExMess1

It is related to the parameter "ReplaceExMess1ByVS". It applies only to outgoing payments! We enter the parameter so that it is known that we have saved the reference number in the field Message for recipient (or Payment detail) on the bank order item, and this reference number will then also be returned to us in the given field on the bank statement item. The default value is "NO".

VSSkipFrontLetters

Skip non-numeric characters at the beginning of the reference number.

WarnBadAccNum

Some statements may contain items of a non-existent account. If this parameter is set to "YES", the script displays a warning message for a non-existent account. The default setting of this parameter is "YES".

Tips for users when an account is not found:

1. The message shows the same digits in a different order than the real number: Change the parameter DecodeAccount to the opposite value.

2. The message shows the same digits in the correct order: In the Bank accounts book in K2, check the account number (e.g. whether there is a typo) and also check the bank sort code. In the code list of banks, there should be only one valid (not blocked) bank with the given sort code.

3. The message shows the same digits in the correct order: Check the parameter StaCurrency and the account currency.

4. The message shows the same digits in the correct order: Check the Business year settings in the Bank accounts book. If the company distinguishes business years, the settings in the current business year must be checked.

5. The message shows an account that is not entered in K2: Some formats allow sending several statements in one file; this account probably does not belong to the current client, or you do not keep it in K2 at all.

Book Contents

Book Index

Parameters for BEST

Parameters:

BEST_PartnerToNoteFirst

When True, the description is loaded from the file first as 30 characters from position 440 (partner). When False, 30 characters from position 210 (note). If the note is empty, the partner is filled in.

The default value is True.

Book Contents

Book Index

Parameters for CSV - BANK STATEMENT

A CSV file may sometimes contain a line with field descriptions - a "header"; sometimes this line is missing. If there is a line with a "header" in the file, we enter the field name from the file in the parameters below. If there is no line with a "header" in the file, instead of the description we enter in the parameter the number of the position at which the given field is located, the numbering starting with 1. The first line with field descriptions may sometimes be very long and then it wraps. For the function, it is still taken as one line.

Description of parameters:

Control parameters:

CSV_Delimiter

Field separator.

CSV_DescrLine

Description of fields in the file. The default value is 1, i.e. there is a header line in which the individual fields are searched for by name (amount - CSV_Amount, description - CSV_Description, bank account - CSV_BankAccNumber, etc.)

If the parameter value is set to 0, it means that the header line does not exist or is not used. The field parameters, e.g. CSV_Amount, CSV_Description, CSV_BankAccNumber, must be entered as a number or a column letter.

CSV_LineLeft

Number of lines from the end which are not to be read.

CSV_LineStart

Starting line of the statement.

Parameters for field description:

CSV_AccDate

Posting date field.

CSV_AccTime

Posting time field.

CSV_Amount

Amount field.

CSV_BankAccNumber

Counterparty account field.

CSV_BankAddr1

Bank address 1 field.

CSV_BankAddr2

Bank address 2 field.

CSV_BankAddr3

Bank address 3 field.

CSV_BankAddr4

Bank address 4 field.

CSV_BankBic

Counterparty bank field.

CSV_BankCountry

Bank country field.

CSV_ConstantSymbol

Payment type code field.

CSV_Currency

Payment currency field.

CSV_Description

Description field.

CSV_Fee

Fee amount field.

CSV_FeeValueProcessing

Processing of fees in the csv format. The default value is 0. It can take the values:

0: The sign of the amount does not change

1: Negation of the amount

2: Always as expense

CSV_MsgForRecip1

Message for recipient 1 field.

CSV_MsgForRecip2

Message for recipient 2 field.

CSV_MsgForRecip3

Message for recipient 3 field.

CSV_MsgForRecip4

Message for recipient 4 field.

CSV_PaymentDetail1

Payment 1 detail field.

CSV_PaymentDetail2

Payment 2 detail field.

CSV_PaymentDetail3

Payment 3 detail field.

CSV_PaymentDetail4

Payment 4 detail field.

CSV_ReceiptAddr1

Recipient address 1 field.

CSV_ReceiptAddr2

Recipient address 2 field.

CSV_ReceiptAddr3

Recipient address 3 field.

CSV_ReceiptAddr4

Recipient address 4 field.

CSV_ReferenceNo

Reference number field.

Example of a CSV file with a header:

reference number

amount

444

3025

We set the parameters as follows:

CSV_Amount = amount

CSV_ReferenceNo = reference number

Example of a CSV file without a header:

444

3025

We set the parameters as follows:

CSV_DescrLine = 0

CSV_Amount = 2

CSV_ReferenceNo = 1

Example of a CSV file with a "header":

Date, Time, Time Zone, Name, Type, Status, Currency, Gross, Fee, Net, Reserve, From Email Address, To Email Address, Transaction ID, Counterparty Status, Address Status, Item Title, Item ID, Shipping and Handling Amount, Insurance Amount, Sales Tax, Option 1 Name, Option 1 Value, Option 2 Name, Option 2 Value, Auction Site, Buyer ID, Item URL, Closing Date, Escrow Id, Invoice Id, Reference Txn ID, Invoice Number, Custom Number, Receipt ID, Balance, Address Line 1, Address Line 2/District/Neighborhood, Town/City, State/Province/Region/County/Territory/Prefecture/Republic, Zip/Postal Code, Country, Contact Phone Number,

30.04.2016,22:52:05,GMT+02:00,Rolling Reserve,Reserve Hold,Placed,EUR,"-4,07",...,"-4,07",,,,0LA6551656484690X,,,,,,,,,,,,,,,,,,6A576693C87315920,,,,"1781,95",,,,,,,,

30.04.2016,22:51:57,GMT+02:00,Torben Kuemmel,Express Checkout Payment Received,Completed,EUR,"41,79","-1,06","40,73",,t-kuemmel@gmx.net,mike.frontzeck@brasty.de,6A576693C87315920,Non-U.S. - Verified,,,,0,,0,,,,,,,,,,,,,,,"1786,02",,,,,,,,

30.04.2016,22:49:23,GMT+02:00,Rolling Reserve,Reserve Release,Released,EUR,"11,24",...,"11,24",,,,3HY312879R1551503,,,,,,,,,,,,,,,,,,5WA068437P8852916,,,,"1745,29",,,,,,,,

30.04.2016,22:26:37,GMT+02:00,Rolling Reserve,Reserve Release,Released,EUR,"2,31",...,"2,31",,,,56A15936VT491523W,,,,,,,,,,,,,,,,,,42B8963137759014J,,,,"1734,05",,,,,,,,

30.04.2016,20:54:57,GMT+02:00,Rolling Reserve,Reserve Release,Released,EUR,"4,4",...,"4,4",,,,9WG22690GS042062J,,,,,,,,,,,,,,,,,,04K96564B1557242H,,,,"1731,74",,,,,,,,

30.04.2016,19:49:25,GMT+02:00,Rolling Reserve,Reserve Release,Released,EUR,"12,75",...,"12,75",,,,4Y753675498739008,,,,,,,,,,,,,,,,,,1HU063098L323754L,,,,"1727,34",,,,,,,,

30.04.2016,19:43:32,GMT+02:00,Rolling Reserve,Reserve Release,Released,EUR,"2,41",...,"2,41",,,,7PW50919YD956411S,,,,,,,,,,,,,,,,,,7GG21219FH8710426,,,,"1714,59",,,,,,,,

30.04.2016,19:16:25,GMT+02:00,Rolling Reserve,Reserve Hold,Placed,EUR,"-3,82",...,"-3,82",,,,9PE08580K2284460T,,,,,,,,,,,,,,,,,,26D992963T1752523,,,,"1712,18",,,,,,,,

Note: If a field name in the CSV file contains e.g. slashes, the whole name including the slashes must be entered in the parameter

e.g. the field State/Province/Region/County/Territory/Prefecture/Republic

is written in the parameter as:

CSV_ReceiptAddr4 = State/Province/Region/County/Territory/Prefecture/Republic

Parameters for Gemini

Parameters:

GEM_ChargeDesc

Description for the fee item. This value can be further used in the matching assistant. The default value is "Charge".

Parameters for Multicash

Description of parameters:

FilemaskOriginal

Parameter for entering the mask name. It is used together with the parameter "SplitStatementFile". It is empty by default.

MC_AccBank

Field for the bank code of the counteraccount. It is used when the account number is in the form "bank code/account number", e.g. "0800/000000 1234567890". In this case, the bank code is also given on line 86 in another field, which must be entered in this parameter.

MC_AccNumb

Field for the counteraccount number. It is used when the account number is in the form "bank code/account number", e.g. "0800/000000 1234567890". In this case, the account number is also given on line 86 in another field. This field must be specified by the parameter.

MC_Account

Field for the counteraccount. If it is entered, the parameters MC_AccBank and MC_AccNumb are not taken into account.

MC_AccPrt1

Extended field for the counteraccount. It is used when the counteraccount has more characters than can be entered in the field containing the account (MC_Account). The field contains the rest of the characters which did not fit into the MC_Account field.

MC_Concat86

Whether line 86 is to be joined before processing. The default value is "YES".

MC_Delim86

Subfield separator on line 86 in multicash.

MC_Descr86

The parameter specifies which field from line 86 is imported into the description in IS K2.

MC_Empty86

Empty subfield on line 86 in multicash.

MC_FieldKS

Payment type code field.

MC_FieldVS

Reference number field.

MC_FieldV1

Field of the substitute reference number. Under certain circumstances, the reference number needs to be read from fields other than the field specified in MC_FieldVS. This concerns a domestic order where the payment in K2 is identified by a reference number longer than 10 characters, and the reference number is then passed in the payment detail. For foreign payments, only the payment detail is sent to pass the reference number. The value of the parameter MC_FieldV1 most often corresponds to the first field of the payment details. It does not apply to foreign SEPA payments.

MC_FldSEPA

The parameter identifies the group of symbols (reference number, specific symbol and payment type code) on line 86. If the parameter is entered, these symbols are searched for first in this field, where they are stored in the form /VSxxx/SSyyy/KSzzz. If the reference number is not found, it is searched for in the field MC_FieldVS, and if it is not found there either, in the field MC_FieldV1. If the payment type code is not found in the field MC_FldSEPA, it is subsequently searched for in the field MC_FieldKS. For loading statements, the fields MC_FieldVS and MC_FieldKS still need to be entered, because not all items contain the SEPA description mentioned above. However, they become optional fields if the parameter MC_FldSEPA is filled in.

MC_ItemMustHave86

The default value is NO. If the parameter has the value YES, a valid statement item must also have detail 86.

MC_OpAddr1 - 4

Parameter for importing the address into the Foreign button of the statement item. In these parameters, the numbers of subfields from field :86: which are to be filled into the address fields are written.

MC_RangeVS

Range of fields where the reference number can occur, including a regular expression for obtaining the reference number (F1-F2-RegExp). It also respects the settings for individual types of line :86: (MC_Typ86).

The parameter is entered as follows: 22-24-E2E:(?:\??(?:\/VS)?|INVOICE: )(\d{1,10})

Where 22 is the starting field and 24 the ending field from which one text is composed, from which the reference number is then read using a regular expression, e.g. for the Slovak ČSOB it can be E2E:(?:\??(?:\/VS)?|INVOICE: )(\d{1,10}).

Example:

If line 86 is displayed in the file in this way:

:86:030?00Kurs:1,000000?20PWO CZECH REPUBLIC A.S.?21SCT

?22/INV/302400189 15.4.2024 E2?23E:1200157272

?24.?25.

?26.?27.?30SOLADEST600

?31DE89600501010001560154?32P.O. BOX 180

?33.//CHGS/

 

The entered parameter MC_RangeVS takes precedence over the parameters MC_FieldVS and MC_FieldV1, and the reference number is searched for according to the definition in fields 22-25, expression E2E:

The value of the parameter Range_VS is then written as follows: MC_RangeVS= 22-25-E2E:(\d{1,10})

MC_Typ86

It is entered when various types occur after the line 86 marker and different settings of the related parameters apply to each of them (e.g. the parameter value is "020;010", then the value of the parameter MC_FieldVS can be "23VS;22"). If it is the REF type, the parameter is not set.

SplitStatementFile

With the value "Yes", after the script is started, the files are automatically split according to the mask specified in the parameter "FilemaskOriginal" into individual accounts and named "(series 2 characters)_(statement number in 5 digits).(extension according to the original file)".

If the bank keeps several currencies on one account, the Multicash format makes it possible to distinguish the account also by currency. In IS K2, one account is created for each currency.

Parameters for PayPal

Properties of the PayPal format:

Parameters:

AccNum

123456789

BCN

0300

HBType

13

IDFromStatement

No

StaCurrency

CZK

Book Contents

Book Index

Specifics of the xml statement import type

A branch for Slovenská sporiteľňa was added to the ISO2022 xml statement (HBType=14), which handles the item with the description "Transakcna dan". For this item, the reference number is not filled in, because it is not an amount to be matched to a document. The reference number is filled into the message for recipient.

Matching and Ungrouping of Items

The script for importing bank statements makes it possible to match bank statement items with invoices, advance payments, other receivables and liabilities, and to ungroup items grouped in a bank order. In connection with the possibility of automatic downloading of bank account transactions via the bank API, a check of bank statement items for the External reference field was added to the HB Bank statement function (HB_Statement.pas). The value of the External reference field gets into the bank statement item when importing the bank statement with the HB_Statement.pas function or when transactions are downloaded automatically via the bank API. An item with the same External reference value is not loaded into the bank statement. In the Bank statement processing form, items with an already existing External reference number are shown with a green arrow pic_1072i. The External reference field can be added to the columns in the bank statement items.

pic_6409

Picture: The Bank statement processing form after importing a statement from the bank

After the script is started, bank orders that could correspond to the statement items are searched for, and a form with the items of the imported bank statement is displayed. In the left part of this form, we can see the items of the imported bank statement. The exclamation mark icon pic_100i in the "R" column indicates that an order exists for the given item. The sum icon pic_450iin the "R" column indicates the existence of grouped items. According to the reference number, account number and amount, a suitable order is found and the order items are offered for ungrouping. The headers of these orders can be seen in the upper right part of this form. All bank orders corresponding to the item in the bank statement are displayed here. In the right part of this form, the bank order items are displayed, i.e. specific invoices, advance payments, other receivables and liabilities. It is to these that the selected bank statement item is ungrouped by pressing the <-Split button.

pic_6410

Picture: The Bank statement processing form with a matched document of an outgoing payment

In the left part of the form, you can see that the original item has been cancelled (it is marked with the icon pic_210i ) and new items have been created (they are marked ). By checking the Hide split items field, we can hide the cancelled items.

If the statement item contains amounts that someone is paying us, the matching to invoices (and possible ungrouping of items) must be controlled manually.

If we want to keep the reference number from the statement when splitting a payment into several invoices, we check the Keep reference number from statement checkbox. The checkbox is located in the right part of the form next to the Split buttons. It can easily be controlled directly in the Bank statement processing form and corresponds to the parameter KeepStaRefNo.

The form displays bank orders created within 40 days from today. If an existing bank order is not displayed in the form, it is necessary to check whether the time from its issue to today is not longer than 40 days. If so, the parameter OrderItemDayLimit must be set to 0. The parameter specifies the number of days back from today within which unmatched items are to be searched for. The default value is set to 40. It may sometimes happen that there is no bank order for a negative bank statement item (outgoing payments). In this case, a document can be assigned directly in the lower right part.

If the bank statement item is positive, it means that it is a received payment. In this case, the script does not search for bank orders, but searches for all unpaid or partially paid invoices, advance payments, other receivables and liabilities in the statement currency. The documents in the right part of the form are divided by type. The selection of documents can be restricted to a specific company using the Select suppl./cust. button.

We move the documents we want to match with the statement item to the upper right part of the form by double-clicking or by pressing Enter on the document. If the amount of the statement item does not correspond to the amount on the document, we can adjust the amount of the selected document using the Count button.

pic_6411

Picture: Ungrouped bank statement items

Sometimes the bank reduces the payment amount for a document by a processing fee. If we want to split such an item into the invoice payment and the fee, we use the Split with fee button. The statement amount is split into the invoice payment (the whole invoice amount) and the fee (invoice amount - paid part). The type "V" expense is filled into the fee item. The user can define the fee description in the parameter FeeDescription. Via the Matching assistant, it is possible to set the cost centre, reference number or account to which the fee will be posted for the "fee".

The Do not filter currency - checkbox affects the filter of the displayed documents. Without checking it, only partially paid documents in the currency of the matched item are displayed; with it checked, all partially paid documents are displayed.

The Return back button can be used to delete the ungrouping of one currently selected item.

The Return changes button is used to delete all ungroupings made at once. We complete the actual import and ungrouping of bank statement items by pressing the OK button.

The Stop processing button terminates the script; the import does not take place.

The Skip button is relevant when the text file we are importing contains several statements. After pressing the Skip button, processing of the currently displayed statement is stopped and the next statement is loaded.

In the lower right corner, a circle is displayed which, like a traffic light, can be red or green. The colour indicates whether documents have been loaded and corresponds to the bank statement item currently being processed. Red informs the user that not all documents have been loaded yet for the bank statement item. Green indicates that all documents for the given item are already displayed.

Matching assistant

The Matching assistant button makes it possible to fill values into the bank statement item according to the specified criteria. The individual settings have their own name and own company for which the matching criteria are to be applied. If the own company is not entered, the matching rule is applied in all own companies.

pic_1703511

Picture: Matching assistant

Matching criteria are inserted with the Insert key. For matching, we can use the fields:

Based on a satisfied matching criterion, the following can then be filled into the bank statement item:

The matching assistant makes it possible to enter wildcard characters for searching into the description and symbol fields using regular expressions. The bank account is entered exactly.

Explanations of the use of wildcard characters:

Rules for comparing regular expressions:

Leading zeros in symbols are handled by the program. If the symbols ^ or $ occur in the wildcard characters, the following automatic modifications of the expression are not made:

When searching for an expression, the procedure is as follows:

  1. Numbers (symbols): For any number, unless the value of the rule equals the input value, the rule is automatically prefixed with ^0* if it does not already begin with the ^ character. At the end, $ is appended if the rule does not contain it yet and at the same time its last character is a number.
  2. Texts (description): For comparing texts, either the value of the rule equals the input value, or the rules for comparing regular expressions apply.

To test the entered expression, the Test definition button can be used. E.g. the rule will have in the Description field: popl.*

pic_1703560

Picture: Matching assistant - Test definition

During the definition test, a form opens and in the Description field we enter the value that appears in the statement: "poplatek za vedení účtu" (account maintenance fee)

The Test results part shows whether the rule corresponds to the value.

pic_1703561

Picture: Form for testing the entered expression.

Examples of the use of wildcard characters, where the expression entered in the matching assistant is set as follows:

This button makes work easier especially in companies where payroll is not processed in K2 and, after matching the bank statement, it was necessary to enter the account number manually into each bank statement item.

If it is desirable not to match some reference numbers when matching the bank statement and to exclude them from matching, these reference numbers must be entered in the script HB - settings of bank statement item matching. The entered reference numbers will not be searched for in orders. Before searching in bank orders, the statement processing will then compare not only reference number <> empty and amount < 0, but also the conditions entered in the assistant.

Automatic Document Matching Function

In the function HB - bank statement (HB_Statement.pas), the parameter AutoLoadDocuments can be set, which automatically searches for a document for the bank statement item according to the reference number (if only one appears among the documents). The order of searching in documents is as follows:

The function for automatic document matching is set by the parameter AutoPairDocuments. This activates automatic matching of documents by reference number and splitting of items. The item is processed in the same way as with the Split button. If the parameter is set, the script internally also sets the parameter AutoLoadDocuments.

When searching for documents, the parameter RefNoPattern can be used to set a pattern for finding the reference number in the source file. This concerns mainly the ISO20022 (xml) format, in which the reference numbers of foreign statements are part of the item description ("Ref No. 100001,100002,100003", "Invoices 220056, 220088, 220156, 226581").

The function performs automatic matching of documents even on a saved statement.

Configuration of Bulk Payments

To process bulk payments (e.g. card payments), a configuration must be set for the file type sent to us by the payment card operator. It is set via the Bulk paym. config. button.

pic_6413

Picture: Bank statement processing - Configuration of bulk payments

A form with the already existing configurations opens. A new configuration is created with the Insert key or the New icon.

pic_1703468

Picture: Existing configurations

We will show it on an example of card payments with an internal document, where a .csv file was sent to us by the payment card provider - see the box.

Date;Gross;VAT;Net;Transaction code

11.03.2021;323,3;-56,11;267,19;10210009

11.03.2021;2263,1;-392,77;1870,33;10210010

11.03.2021;2909,7;-504,99;2404,71;10210011

Basic data

According to the file sent, we fill in the individual fields of the configuration, first on the Basic data tab.

Book Contents

Book Index

Settings for a .csv File and a Spreadsheet

For the .csv file type, the following form is displayed:

pic_1703660

Picture: Configuration settings for the .csv file sent - Basic data

Configuration name

Configuration name.

We can enter e.g. Card payment

File type

Type of the loaded file, where we can select:

- CSV

- Spreadsheet

- XML

For our example, we enter csv.

Path to file

The path where the file is saved (from where it will be loaded).

File mask

File mask (for easier searching, * can be used).

Sheet name

It is displayed only for the Spreadsheet file type. If the sheet name is filled in, the data are loaded from this very sheet. If the sheet name is not filled in, the data are taken from the first sheet.

Search columns in header

If checked, the column name will be searched for in the 1st line of the CSV file (if data line 2 or higher is entered) and converted to a column number.

Example: K2 assumed that the CSV had a header, but it was only an address which had nothing to do with the rest of the CSV. Then, when setting the value of the column sequence number in the bulk payment configuration, a match with the 4th position could occur, and so a column other than the one entered was used.)

CSV field separator

A semicolon is used as the field separator.

Column for matching

Designation of the column by which matching is done; it is usually the reference number.

The reference number is in the 5th position (listed as Transaction code), so we enter 5.

Paid amount column

Designation of the column in which the payment amount is given. The paid amount is usually reduced by the fee.

Requested amount column

It is the gross amount for which the document is issued. If this value is filled in, it is then filled into the statement item.

The Gross amount is in the 2nd position, so we enter 2.

Fee amount column (optional)

The number of the column in which the fee amount is given is entered.

Currency column (optional)

It is possible to enter the currency in which the amounts in the file are given.

First data line of file

The line from which the data in the file start.

Do not process last n lines

It does not process the last n entered lines, which may contain only some additional information.

Deviation from loaded amount

Deviation from the amount which is taken into account during filtering so that documents within the defined range are found. It is used e.g. for Zásilkovna, where the file contains amounts both in the basic currency and in the document currency. However, the amounts need to be filled in according to the basic currency of the company. All payments in another currency are converted at the Zásilkovna exchange rate. If the payment is in a foreign currency, documents are searched for by an amount which may, however, be within a range of e.g. up to 10%.

In basic currency of company

We check it if the deviation is given in the basic currency of the company.

In percent

We check it if the deviation is given in %.

Use amount for

Option specifying how the loaded amount is to be treated. Either it is also used for filtering, or it is only filled into the document. Filtering then takes place only on the basis of the reference number or another selected field.

Invert amount

It is checked when we expect the opposite sign for the amount in K2.

Load zero amounts

If we also want to load zero amounts into K2.

Thousands separator

Character used in the file to separate thousands.

Decimal place separator

Which character is used in the file to separate decimal places in numbers.

In our example, the decimal places in the Gross amount are separated by a comma.

Fee description

Description which is to be filled into the fee item.

Fee posting

Account from the chart of accounts to which the fee is to be posted.

Splitting Bulk Payments into Several Statement Items

Intermediary bank acc.

Bank account of the intermediary. It is used when processing several statement items at once.

Intermediary bank

Bank of the intermediary. It is used when processing several statement items at once.

Tip for users

If the file sent contains the same reference number for both a positive and a negative amount, the Requested amount column must also be filled in so that the payment is matched correctly.

Book Contents

Book Index

Settings for an XML File

If we select XML as the file type, the configuration settings form changes slightly and further fields are displayed.

pic_1703662

Picture: Configuration settings for the .xml file sent

File type

If we select the xml type of the loaded file, a further field for specifying the type of the xml file is displayed.

xml file type

Type of the loaded xml file. Some xml files already have a predefined structure. We can select:

- General - used to set up reading values from any XML file which contains items of the breakdown of the bank statement amount. However, it is necessary to set the full path to the item element and then use the names of the elements from which the values are read.

- Global Payments

- GoPay

Path to xml item

Full path to the element of the item which is to be broken down in the file sent. The field must be filled in to load the correct data from the file.

Element for matching

According to the matching element, documents are searched and compared with the field entered on the Documents tab.

Authorization code

The authorization code is used if the matching element is empty or the value is not entered in the xml. It is then compared with the field entered on the Documents tab.

Book Contents

Book Index

Settings for Processing Several Statement Items at Once

For payment terminals, where each has its own reference number and each payment terminal has its own transaction on the bank statement, several statement items can be processed at once. In this case, the following fields must be filled in:

Splitting Bulk Payments into Several Statement Items

Intermediary bank acc.

Bank account of the intermediary. It is used when processing several statement items at once.

Intermediary bank

Bank of the intermediary. It is used when processing several statement items at once.

If the fields above are set, after a file is selected, the bulk payment goes through all statement items and, for those where the bank account and bank match, searches for documents from the file. One more condition must be set for this to work. The file must allow some way of identifying that a specific card payment is linked to the current item. Below is an example of a filter.

pic_1703661

Picture: Example of input filter settings for bulk payments to several statement items

If the line filter does not exist, the script refuses to use the configuration, because it would create a Cartesian product.

The bulk payment configuration can also be started from the script HB - Bulk payment configurator (HB_RefNoLoaderConfig.PAS).

Book Contents

Book Index

Documents

On the Documents tab, we check the document types in which documents for matching will be searched for.

pic_8011

Picture: Configuration settings for the .csv file sent - Documents

Invoice out field

Program name of the field on the invoice out by which matching is done.

Advance payment received field

Program name of the field on the advance payment received by which matching is done. Checking the field activates searching in advance payments received.

Other receivable field

Program name of the field on the other receivable by which matching is done. Checking the field activates searching in other receivables.

Internal document field

Program name of the field on the internal document by which matching is done (ExternalNumber). Checking the field activates searching in internal documents.

Because we want to match internal documents, we check the line Internal document field and enter ExternalNumber. This is the program name of the External number field by which we will match internal documents.

Internal document field as reference number

If checked, after the payments from the file have been matched with internal documents, the external number from the internal document is written into the reference number of the income items on the bank statement.

Cash document field

Program name of the field on the cash document by which matching is done (ExternalNumber). Checking the field activates searching in cash documents.

Book Contents

Book Index

Another field for import

In the bulk payment configuration, it is also possible to specify that the Description is to be imported from the file. This is defined on the Other fields for import tab. The description is imported from the file only for payments for which no document exists in K2. If a document exists in K2 for the payment (e.g. an internal document), the description is taken from the document in K2.

pic_8013

Picture: Bulk payment configuration, Other fields for import tab

In the Column, the position of the Description in the file is defined by a number, or by a letter or column name.

pic_8014

Picture: Definition of the column for importing the Description

We will show it on an example. Suppose the .csv file sent contains description information such that the First name is in the 6th position and the Surname in the 7th position:

Date;Gross;VAT;Net;Transaction code;First name;Surname

11.03.2021;323,3;-56,11;267,19;10210009;Petr;Novák

To import the First name and Surname into the bank statement, the value for the Description field must be entered in the column in one of the following ways:

When importing a description entered in this way, the following would be transferred: Petr Novák.

When merging fields, the hyphen "-" represents a space; when "+" is used, the fields are merged without a space.

Book Contents

Book Index

Bulk payments

On the next tab Bulk payments, the conditions for loading the statement are entered. The conditions are entered with the Insert key.

Currency

Currency of the statement items which we want to download. One bulk payment file (so far PayPal) may have a breakdown of items in various currencies. Only payments with the correct currency are thus loaded from the breakdown file.

Book

Bank account into which we want to save the matched statement of card payments sent. If nothing is entered, the matched payments are added to the current bank account.

Posting

Link to the chart of accounts for setting the posting of items.

Fee description

Description for the fee which is filled into the statement item.

Fee posting

Account for posting the fee.

pic_8015

Picture: Entry for bulk payments

If the item is to be broken down into another statement, the following happens:

The bulk payment configuration can also be started from the script HB - Bulk payment configurator (HB_RefNoLoaderConfig.PAS).

Book Contents

Book Index

Input row filter

The Input line filter tab is used in cases where the bulk payment statement contains e.g.:

- several currencies

- several payment terminals or branches, and the bank account statement contains a separate item for each terminal or branch.

Then only some records need to be filtered for this statement item, and the same bulk payment file will be loaded several times for different statement items or across statements because of different currencies.

pic_8016

Picture: Entry for the input line filter

Example 1

The bulk payment file contains several currencies:

Order;RefNo;Amount;Currency

1;52145;23,56;Kč

2;2457;14,56;EUR

Then the input line filter will look like this:

Field: M_Currency

Column: 4 or D

Example 2

The bulk payment file is for several terminals:

Order;Terminal;RefNo;Amount

1;123;987545;89,50

2;123;987546;125,90

3;123;987665;22,31

;456;159021;654,90

5;456;159056;1021,00

We enter in the input line filter:

Field: M_ReferenceNumber (if the terminal or branch number is stored in the reference number of the unmatched bank statement item)

Column: 2 or B

Several conditions can be entered at once.

In the input line filter, expressions can also be entered using regular expressions. E.g. in the specific symbol field, characters 1 - 4 contain the terminal number which occurs in the terminal_id element in the payment breakdown in the xml file. The breakdown further contains card_number, from which the first digit needs to be taken; it is then compared with the CardIssuerNumberCalc field described above or another one, depending on what you decide.

As a reminder, here are the explanations of the use of wildcard characters:

. (dot) - means an occurrence of exactly one character,

.* (dot)(asterisk) - means an occurrence of any character 0 to unlimited times,

.? (dot)(question mark) - means an occurrence of any character 0 or 1 time,

.{x} (dot){x} - means an occurrence of any character / any characters x times,

^ - means at the beginning of the searched text,

$ - means at the end of the searched text.

pic_8018

Picture: Bulk payment configuration - Input line filter

pic_8017

Picture: Entering fields in the input line filter

Field

Field on the bank statement item, e.g. the field for the specific symbol M_Ex_SS

Sloupec/Element

Column or Element from the file sent from which the value will be filtered.

RE field

Field on the bank statement item entered as a regular expression with exactly one capture group whose value will be compared, e.g. ^(\d{4})

RE column/element

Column or element from the file sent entered as a regular expression with exactly one capture group whose value will be compared, e.g. (\d{4})$

Book Contents

Book Index

Example of Bulk Payment Configuration Settings Using an XML Statement of Card Payments with Regular Expressions

The bank statement contains items of type N which we want to match to the xml file sent. The item contains a specific symbol in the Ex_SS field with the value 3558230324, whose first 4 digits specify the terminal number, and these are listed in the file sent as the last 4 digits of the terminal_id element. We converted the description PLATEBNÍ KARTY VISA (VISA payment cards) to the numeric value "4" using a registered script on saving the item, into the CardIssuerNumberCalc field, which corresponds to the first digit of the card_number element. Then, when going through the breakdown items, only those which comply with all the rules will be taken into account.

These rules apply to a specific statement. They will differ depending on the statement format, and it is necessary to find the relations so that the items are imported to the correct bank statement items. It often happens that banks do not provide a description of the format of bulk payment breakdowns, and so it is necessary to guess a little what the relations between the statement item and the breakdown are.

pic_7888

Picture: Bank statement item on the Matching of bank statement items form

The xml file sent for matching has the following structure:

pic_7889

To find payments which will be matched to the given bank statement item, the fields and elements to be matched must be defined in the Input line filter. For our specific case, we therefore enter the following:

pic_8018

Picture: Entering fields in the Input line filter

Matching of Bulk Incoming Payments

In IS K2, bulk incoming payments can be matched automatically if we have information about the partial payments in a "csv", "xls" or "ods" file. In this way, it is possible to match e.g. payments for cash on delivery sent by the carrier to our account in one amount, or a bulk payment of several invoices by a customer. Payments can be matched not only by the reference number of the invoice / advance payment, but by any field in the document header (e.g. by the customer order number).

Bulk payments can be matched in the form of the function HB - bank statement. Using the Bulk paym. config. button, we create configurations for the individual types of files with payment advices. Files with payment advices are loaded using the Load bulk paym. button.

pic_8009

Picture: List of configurations - Bulk payment configuration button

Example 1: A payment for cash on delivery amounting to CZK 15,500 has arrived to our account from the carrier. We receive the advice of the individual cash-on-delivery payments from the carrier in a CSV file in which the reference number is in the 1st column and the cash-on-delivery amount is in the 2nd column.

pic_4442

Picture: Example 1 - CSV file

pic_8019

Picture: Example 1 - Bulk payment configuration

pic_8020

pic_6414

Picture: Example 1 - Form of the function HB - bank statement after loading the bulk payment file

pic_6415

Picture: Example 1 - Form of the function HB - bank statement after matching the bulk payments

Example 2: A bulk payment amounting to CZK 1,196,818.26 has arrived to our account from a customer. We receive the advice of the individual invoices from the customer in Excel, in which the reference number is in column G and the amount is in column H. The invoice information starts on the 4th row of the Excel file.

pic_4471

Picture: Example 2 - Excel file

pic_8021

Picture: Example 2 - Bulk payment configuration

Example 3: A bulk payment has arrived to our account; in the payment advice, the individual payments do not contain the reference number but the order number. We receive the advice of the individual payments in a CSV file in which the order number is in the 1st column and the amount is in the 2nd column.

pic_8022

Picture: Example 3 - Bulk payment configuration

pic_8023

Picture: Example 3 - Bulk payment configuration - Documents tab

Bulk payments are loaded in the same way as in Example 1.

Items in the external statement remain unmatched if no document is found for them.

Items with the same reference number are also loaded.

Banks and Systems Used

ČSOB

Multicash, Compatible media

Citibank

Own CSV

Česká spořitelna

Multicash

HSBC

Multicash

HVB

Multicash

Komerční banka

Compatible media, Best

Gemini system

Own, Best, Multicash

Profibanka

Compatible media

mBank

Custom format

Parameters for CM (Compatible Media)

Description of parameters:

KM_AccountLocation

Location of the counterparty's account number in description lines 078, 079

KM_AmountCode

Field 075/6: 1 - KB, 2 - ČS

KM_DescrLocation

Location of the description in the description lines 076, 078, 079

KM_Length078079

Line subfield length 078 or 079

KM_VSLocation

Location of RN in description lines 078, 079

Examples of Import Files Example: Bank Statement - Multicash System

{1:F01BACXCZPPAXXX0000000000}{2:I940BACXCZPPAXXXN}{4:

:20:UNO CESKA R.

:25:0300/12345678

:28C:6/1

:60F:C070713CZK331925,94

:61:0707160713C134488,5FTRF20070713700006

//00147655756

:86:051?00S-TUZ-DOSLA/DOM-STNDTRNSF-I?20000000-0516086001/2400?21KS 0

000000008?22VS 0006700081?23SS 0000000000?302400?31000000 0516086

001?32HANAK s.r.o.?33HANAK s.r.o.

:61:0707160713C7194,3FTRF20070713700006

//00147655757

:86:051?00S-TUZ-DOSLA/DOM-STNDTRNSF-I?20000000-0516086001/2400?21KS 0

000000008?22VS 0002701390?23SS 0000000000?302400?31000000 0516086

001?32HANAK s.r.o.?33HANAK s.r.o.

:61:0707160716D264477,5FTRF20070716700010

//00147744615

:86:020?00S-TUZ-VYSLA/DOM-STNDTRNSF-O?20000000-1000427308/3500?21KS 0

000000008?22VS 0000270609?23SS 0000000000?24UNO ESK REPUBLIKA

SPOL.?25S R.O.?303500?31000000 1000427308?32OMEGA SECURITY CZ,

S.R.O.

:61:0707160716D197553,1FTRF20070716700015

//00147819172

:86:020?00S-TUZ-VYSLA/DOM-STNDTRNSF-O?20000019-3152790287/0100?21KS 0

000000008?22VS 0000012107?23SS 0000000000?24UNO ESK REPUBLIKA

SPOL.?25S R.O.?300100?31000019 3152790287?32BRAVO, S.R.O

...

:62F:C070716CZK11578,14

:64:C070716CZK11578,14

-}

Lines 20, 25, 28 and 60 are used for the bank statement header. Line 20 contains the company name and line 25 the bank account number of this company. Account numbers can have various formats. In this case, the account number is in the format "bank code/account number". Line 60 contains the opening balance on the bank statement.

Lines 61 and 86 are the bank statement items. In line number 86, you can see that the individual records are separated by a question mark. We must therefore enter it as the field separator using the parameter MC_Delim86.

In the parameter MC_Descr86, we enter the value "32", which specifies that the company name from field 32 in line 86 will be inserted into the description.

The parameter MC_Account will in this case be set to "20", because in line 86 the counteraccount is given in field 20.

The reference number field in line 86 is "22VS"; therefore the parameter MC_FieldVS must be set to this value. The payment type code is given in field 21KS. We therefore set the parameter MC_FieldKS to the value "21KS".

The closing balance on this statement is given in line 62.

Field 86 can be entered as one line, because all fields are separated by a question mark and it is necessary to search for the individual leading characters or field codes in them anyway.

Example:

:20:UNO CESKA R.

:25:BACXCZPP/72611003

:28C:6/1

In this case, the bank account number of the company UNO CESKA R. is in the format "SWIFT/ account number".

Example:

1CEKOCZPPAXXX7271507509}{2:O9400009070621CEKOSKBXAXXX68693775020706210029N}{4:

:20:20JUN07DAILY

:25:CEKOSKBX/SK4111000000000025641999

:28C:00016/1

Example of an account number in field 25 on a bank statement in the format "SWIFT/IBAN".

Example:

1CEKOCZPPAXXX7271507509}{2:O9400009070621CEKOSKBXAXXX68693775020706210029N}{4:

:20:20JUN07DAILY

:25:CEKOSKBX/SK4075000000000025641373

:28C:00016/1

:60F:C070619SKK16933513,59

:61:0706200620D167613,08NTRFCOS200706204650 //200706204650

HP EKO CZK 140615,--

:61:0706200620D16707,50FTRFP017626079//200706200008550

VARIABLE SYMBOL:27165

:86:123456789/0900

:61:0706200620D460741,50FTRFP017626078//200706200008549

VARIABLE SYMBOL:300750229

:86:429044372/0200

:62F:C070620SKK16288451,51

:64:C070620SKK16288451,51

-}

:20:20JUN07DAILY

:25:0300/17698513

:28C:00100/1

:60F:D070619CZK29903155,30

:61:0706200619C159,00FMSC //6620070619044367

/ 070619

:86:111?00Kooperace - vodo?20000000-123456789/0800

?21VS:1071001597?22SS:?23KS:0008

?24.?25.

?26.?27.

?28VS:1071001597?29SS:

Example of a bank statement for several accounts. Each further line no. 20 in this bank statement means a different bank account.

Example: - MULTICASH5

Example: A customer has a bank account at ČSOB and another bank account at Raiffeisenbank, for which statements are downloaded using Multicash. In each statement, the reference number is in a different place. How should the parameters be set correctly so that the reference numbers are imported?

1) File from Raiffeisenbank

:20:1611115080106392

:21:005

:25:5500/5080106392

:28:078/00001:60F:C161111CZK1662424,76

:61:161111C59,00NMSCI B8ZGPE//I-GE-CC

:86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000000

?22VS0040160493?23SS0000000000?24BANKOVNI VYPIS 005

?25POPL.TRN 7,00?26?27?28?300800?312059025033?32Sofron ZdenŘk?33

?60?61?62?63

:61:161111C63,00NMSCI B8ZGPS//I-GE-CC

:86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000000

?22VS0040160401?23SS0000000000?24BANKOVNI VYPIS 005

?25POPL.TRN 7,00?26?27?28?300800?312059025033?32Sofron ZdenŘk?33

?60?61?62?63

2) File from ČSOB

{1:F01CEKOCZPPAXXX0000000000}{2:I940009903112240N 020}{4:

:20:11NOV16DAILY

:25:0300/17648743

:28C:00210/1

:60F:C161110CZK4712509,27

:61:1611111111C8821,00FMSC //201611110058972

/ 161110

:86:111?00TBG METROSTAV s.r.o.?20000000-5080106392/5500

?21VS:0030161899?22SS:?23KS:0000

?24CERPANI?25.

?26.?27.

?28VS:0030161899?29SS:

:61:1611111111C12599,00FMSC //201611110335122

:86:111?00TERRACON A.S.?20000000-0017618763/0300

?21VS:0030161591?22SS:?23KS:0308

?2421622088 PRAZSKE BETONPUMPY?25 A DOPRA

?26.?27.

?28VS:0030161591?29SS:

:61:1611111111C43596,00FMSC //201611110058967

/ 161110

The solution in this case is to set the parameter MC_Typ86 = 020;111 (the different Multicash types after field 86 are written into the value). Then, according to the Multicash type, the other parameters MC_FieldVS, MC_FieldKS, MC_Account, MC_Descr86... must also be set; see the following picture Parameter settings for Multicash.

pic_8005

Parameter settings for Multicash

Example: KB Best System

HO 020408

510000198286170297200204040412002040300005000000000046928+000000000031448+000000000015480+000000000000000+INTERNET TEST 2

52000010000198286170297500005226705021700001000CZK000000000010000 001-04042002 1602 602001 000510000000000900000000090001000558000055992200005599222002040420020404200204042002040465 10000DI2 DI2 PLATBA NA VRUB VAŠEHO ÚČTU KLIENT TEST 3

52000020000198286170297000019027378021700008000CZK000000000000301 258-04042002 1602 000005S7X 00000000050000000009000000888809123456790000000001200204042002040420020404200204049300000000poznamka debet poznamka kredit Uhrada 03,01 do JPU PLATBA NA VRUB VAŠEHO ÚČTU 86

52000030000198286170297500005226712029700001000CZK000000000001701 258-03042002 1602 000005S5X 00000000050000000009000000888809876543190987654319200204022002040420020405200204039300000000poznamka debet poznamka kredit Uhrada 17,01 dopredna splatnost D+1 PLATBA NA VRUB VAŠEHO ÚČTU KLIENT TEST 7 80

52000040000198286170297000019027378021700008000CZK000000000001701 258-03042002 1602 000005S5Y 00000000050000000009000000888809123456790000000001200204032002040420020404200204049300000000poznamka debet poznamka kredit Uhrada 17,01 dopredna splatnost na svatek PLATBA NA VRUB VAŠEHO ÚČTU 81

52000050000198286170297500005226718025700001000CZK000000000001777 258-03042002 1602 000005RR0 000000000500000000050001008888098765431909876543192002040320020404200204042002040493 00000KLIENT TEST 9 PLATBA NA VRUB VAŠEHO ÚČTU KLIENT TEST 9

TO 020408000005000000000000015480

Example: CM System

0745000052267180257KLIENT TEST 9 26120100000485720324+00000485725525+000000000000000000000000052010001271201

0755000052267180257000000110734023712270000000010000000052012000000000105010005580000000001000000ADAMOVSKE STROJIRNY 00203271201

076 271201

Example: Citibank System

1,2509920108,”JAN NOVAK”,”CZK”,”01062004”,”15062004”,150000.00,”+”,

100000.00,”+”,60000.00,3,10000.00,2,400000.00

2,”01”,2509920108,” CZ0R2SB041560983”,”

102831”,”02062004”,25000.00,1,””,”2002970501”,”2600”,”0308”,”1259”,””,””,”P

OZDRAV”,””,””,””,””,””,””,””,””,””,””,””,””,””, ””, ””,””,””,””,,,,,,””,,””,””,””,,””

2,”01”,2509920108,” CZ0R2SB041560983”,”

102942”,”02062004”,5000.00,1,”19”,”1111111111”,”0100”,”0309”,”5229”,””,””,”

GREETING”,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,,,,,””,,””,””,””,,””

2,”02”,2509920108,”

CZ0FEEO041831702”,”156900INV”,”03062004”,30000.00,1,””,””,””,””,””,””,””,””,”

”,””,””,”USD”,”A-ACC12561895”,”ABC CO ”,”KOELNSTR

”,”HANOVER”,”BUNDESREPUBLIC DEUTSCHLAND”,”DEUTSCHE BANK

AG”,”HANOVER”,”UNTER DEN LINDEN”,”DEUTSCHLAND”,”INVOICE NO

123.56”,”ORDERED ON JUNE 20 2004”,””,””,”B”,1,120NDE1,30.00,1000.

00,””,””,””,””,,””

2,”02”,2509920108,””,”

CZ0FEEO041831702”,”140620SMITH”,6000.00,2,””,””,””,””,””,””,””,””,””,””,””,”DE

M”,”A/C 123”,”LEASING LTD.”,”113 BEVERLY HILLS. ”,”CALIFORNIA”,”U.S.

A.”,”JPMORGAN”,”LOS ANGELES”,”CALIFORNIA”,”U.S.A.”,”YOUR INVOICE

NO X-25”,”BY MR. SMITH”,”DATED JUNE 1”,”PLUS CHARGES AS

AGREED”,”OUR”,1,,20.00, 300.00,””,,””,””,””,,””

2,”13”,2509920108,””,””,”04062004”,4000.00,2,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,

””,””,””,””,””,””,””,””,””,””,””,,,,,””,,”10000-542”,”01052004”,”01062004”,30, ”2.241”

Book Contents

Book Index

Bank API

It is used for automatic downloading of bank account transactions into K2 without the need for user intervention. The result is faster acquisition of information about a payment received on the account, which speeds up the process of handling the customer order. This is important especially when processing orders from an e-shop.

It makes it possible to find out the real current balance on the bank account without having to open internet banking.

Supported banks:

Book Contents

Book Index

Settings in K2

In the books of bank accounts, there is the Bank API button, where the connection to the bank API must be set up. The settings are available only with the special right Bank accounts/ Bank API configuration. The settings form differs depending on the selected bank.

pic_8055

Picture: Books of bank accounts - Bank API

pic_1703692

Picture: List of banks which can be connected with the bank API in K2

Book Contents

Book Index

Settings for Česká spořitelna

The following text describes how to proceed when setting up the API for customers. The example is prepared for setting up the API for the bank Česká spořitelna.

1. First, it is necessary to register. Registration is done at the web address https://developers.erstegroup.com. A form for entering the data which must be filled in is displayed. After registration, an activation e-mail is sent to the entered e-mail address, which must be confirmed.

pic_5285

Picture: Registration form

2. After confirming the e-mail, we get to the home page of the portal, where we select the option Create application.

pic_5286

Picture: Home page of the portal

3. Creating the application - the data of the new application must be filled in on the form

pic_5287

Picture: New application in the bank portal

After filling in the data, we press the Create application button. The text shows that the description is missing. It is required after switching to live operation, so we must add it.

pic_5288

Picture: Created application in which the description is missing

4. Adding the application description on the Settings tab

pic_5289

Picture: Adding a description to the created application

5. Connecting the application to the bank - we select Česká spořitelna a.s. and Premium Accounts API v3

pic_5290

Picture: Form for connecting the bank

pic_1703756

Picture: We select the bank Česká spořitelna a.s., Czech Republic and Premium - Accounts API v3

6. Setting Scopes in the application detail - it is necessary to select "sibling.accounts" and Mandatory

pic_1703757

Picture: Selection of the "Scopes" range - we set Mandatory

7. OAuth2 settings

pic_1703758

Picture: Activation of OAuth2 for the given application

pic_5294

Picture: Setting the URL address for redirection after user login

8. Generate access credentials - an overview of all data is displayed

For the connection with IS K2, the following data must be entered in the bank account settings in K2:

pic_5295

Picture: Generating access credentials

pic_1703761

Picture: An overview of the access credentials is displayed

You enter the access credentials in K2 on the Česká spořitelna bank account via the Bank API button

pic_1703765

Picture: Česká spořitelna bank account, Bank API button

As the bank API provider, you select Česká spořitelna a.s.

pic_1703766

Picture: Selection of the bank API provider

Via the Settings button, you enter the access credentials generated on the website for setting up the Česká spořitelna bank API. In the API version used field, you select accounts API V3.

pic_1703764

Picture: Entering the access credentials into K2

9. Verification of the settings

pic_5301

Picture: Balance query in the book of bank statements

pic_5298

Picture: Simulated login page to internet banking

pic_5299

Picture: Approve access to internet banking

pic_5300

Picture: Information about the current account balance

10. Transition to the production environment

pic_5317

Picture: Switching to the Production tab

pic_5318

Picture: Production - setting up two-factor authentication

pic_5319

Picture: Approval by the bank

pic_5320

Picture: Generating access credentials

Book Contents

Book Index

Bank Statement Item - Additional Info

Information from the ChequeNumber field, which contains the payment card number, is also downloaded from the ČS bank API. In K2, it is saved into the ChequeNumberCalc field.

Book Contents

Book Index

Settings for FIO Bank

In the settings of the bank account book, an API key must be inserted, which must be generated in internet banking. Access to the account data is created by the owner or a person with appropriate rights to the selected account. In their internet banking, the authorized person must generate a token (a 64-character unique string); 5 minutes after it is created, data can be downloaded. To download data, it is not necessary to be logged in to internet banking; responses to requests are obtained via the https interface. The interface has various methods for obtaining structured data or setting them.

More information and instructions for setting up Fio API Banking can be found here: https://www.fio.cz/bankovni-sluzby/api-bankovnictvi

pic_1703691

Picture: Bank API settings for Fio banka

Book Contents

Book Index

Settings for Komerční banka

A prerequisite for using the Direct Account Access (ADAA) product is to have an issued certificate which is trusted by Komerční banka. Certificates must be requested from:

Komerční banka supports one of the following types of certificates:

The Direct Account Access (ADAA) service requires a certificate which must contain the Name of organization and the Comp. Reg. No. When requesting the certificate, the client must state this explicitly.

More information can be found here: https://www.kb.cz/cs/kbapi/sluzby-kb-api/primy-pristup-k-uctu

Book Contents

Book Index

Settings in K2

pic_8058

Picture: Bank account at Komerční banka - IBAN filled in

pic_8059

Picture: Komerční banka API settings

Book Contents

Book Index

Logging in to the Komerční banka Account

Logging in to the Komerční banka account needs to be done only when the function Current balance or Load movements from account is used in the bank statement for the first time, or when the authorization data expire. When the functions are run again, the user remains logged in to the account and there is no need to log in again.

pic_7139

Picture: Select personal certificate

pic_1703420

Picture: Marking key exportability when importing the certificate

pic_7140

Picture: Direct Account Access - approval of the rules

pic_7141

Picture: Logging in to the bank

PIC_7144

Picture: Selection of account to connect

pic_7142

Notifications of New Account Movements

KB has a limit on the number of queries to its API. It is therefore possible to load account movements max. once per hour. This limitation can be bypassed by receiving notifications of new account movements. In K2, the Turn on notification button was added to the bank account. If notifications are turned on, every time a transaction occurs, the bank sends a message to the K2 API that this change has occurred, and K2 can download information about the new account movements immediately after receiving this information. If this action is turned on in K2, transactions are downloaded from the account automatically.

Two buttons were added to the bank API settings in the book of bank accounts. Using the "Login to KB" button, the user can start the action of logging in to their account in order to allow downloading information from their account, so that they do not have to start it only when actually downloading information in bank statements. To be able to press this button, the user must first fill in the URL address of the K2 API.

Once the user is logged in and their access information is stored in K2, pressing the second button Turn on notification is enabled; it is used to turn the notification service on/off. The text value also indicates the current on/off status of this service. If this service is turned on, information about new account movements should be downloaded into K2 automatically. Currently, all transactions that are at most one day old are downloaded each time; older transactions must be downloaded manually.

Book Contents

Book Index

Settings for Citibank

On the bank account, via the Bank API button, the Citibank bank must be selected and the data filled in.

pic_8178

Picture: Citibank settings

You get the Citi account number, API ClientID and API ClientSecret from your bank. These are data necessary for connecting K2 and the Citibank API, or rather the specific bank account.

The Citi signing certificate (signing cert) and the Citi encryption certificate (encryption cert) are bank certificates which can be obtained in the Citi developer portal. They are usually valid for 1 year; after expiry, new certificates must be uploaded here.

The client signing certificate (signing cert) and the client encryption certificate (encryption cert) can be obtained from a certification authority supported by the bank (e.g. DigiCert, Verisign, Comodo, Thawte) or directly from the bank. The certificates must be of the OV (organization validation) or EV (extended validation) type.

The connection with the bank takes place via encrypted communication with the bank using the client certificate for SSL.

After all fields have been set, it is advisable to test the connection with the bank using the Test settings button.

All certificates are stored in the K2 database, so there is no need to keep them available on disk.

When the API for Citibank is used, a file with transactions is generated and loaded into K2 via homebanking with the parameter for automatic matching (AutoPairDocuments) set. The downloaded statement files are saved by default in the directory K2/Mandant/HomebanCiti.

Book Contents

Book Index

Settings for Raiffeisenbank

The connection with K2 is made using the Premium API (for business accounts). The website states that you need to contact your banker, who will set up everything necessary on the account. In the settings of the bank account book, on the Bank API tab, the certificate and the certificate password, which you generate in your internet banking, must be inserted. Access to the account data is created by the owner or a person with appropriate rights to the selected account

More information is available at https://www.rb.cz/podnikatele/ucty-a-platebni-styk/prime-bankovnictvi/premium-api.

pic_1703693

Picture: Using the Bank API button, we connect to the Raiffeisenbank bank API

pic_1703694

Picture: Settings for Raiffeisenbank

User functions

In the Bank statements book, there are 2 functions in the ribbon on the Function tab:

pic_5302

Picture: Functions on the bank statement

Statement creation logic – for each day, a bank statement is created (or an unconfirmed one is found). Movements for the given day are added to this statement. After the action is finished, the function for automatic matching of items is run. If the function is run in change mode, it always adds the items to the current statement being changed and leaves the statement unsaved.

Both functions are available only in the book state, provided that the connection to the bank API is set for the current book. If it is not set, the functions are hidden.

Automatic Downloading of Statements

The administrator can add a scheduled task to the Task scheduler which will automatically download account movements in the background. It is the function "Import of bank statements (API)". The only parameter of the function is the bank account which it is to handle (so different intervals can be set for different accounts, etc.).

Some movements may appear in the bank API only after midnight, i.e. the following day, e.g. some fees, interbank transfers, etc. Therefore, the first run of the scheduled task fetches the movements for the previous day. At Komerční banka, movements for the previous day appear until 6 a.m. We therefore recommend setting the first scheduled task of the day at around 6 o'clock. From the second run of the scheduled task onwards, transactions for the current day are downloaded and saved into the statement for the current day. That is, an unconfirmed, non-cancelled statement for the current day is found and the items are added to it. If the bank statement for the current day is not found, the scheduled task creates the statement. Before the movements are saved on the bank statement, the payments are matched to documents in K2 according to the settings in the function Matching (Ctrl + F3) on the bank statement, according to the user under whom the scheduled task is run. At the same time, the rules set in the matching assistant are applied.

A condition for functionality is that the task runs under a user who has the authorization to work with the given bank account, including the possibility of logging in to internet banking.

Some banks require user authorization via an internet browser for the API. In this case, the user must log in to internet banking using one of the user actions above, which generates access tokens that can also be used by the scheduled task.

If the notification function is enabled and the scheduled task finds that the authorization needs to be renewed, the user under whom the scheduled task runs is shown a notification prompting them to log in to internet banking. If the user does not do so, automated downloading of statements will not be possible.

Note: The interval for requiring repeated login to internet banking depends on the bank, or it can be set in the access management on the bank's side.

Combination of the Bank API and Homebanking

When using the bank API and downloading the bank statement by homebanking (HB_Statement.pas) at the same time, the check of the External reference field must be set in the function HB-bank statement (HB_Statement.pas) by the parameter ExternalRferenceCheck. This is to prevent duplicate downloading of items.