← User guide

Bank Statement Import — GPC

Imports GPC electronic bank statements (the ABO statement format of Czech and Slovak banks), with balances, counterparty accounts and VS/KS/SS.

Version19.0.2.0.1
EditionCommunity and Enterprise
LicenceAGPL-3
Requiresaccount_statement_import_file, account_gpc_base, account_cz_bankfile_base

What it is for

GPC is the fixed-width electronic statement that most Czech and Slovak banks offer for download alongside their other formats — Fio banka, KB, ČS, ČSOB and others. It carries what a Czech or Slovak accountant matches payments on: the counterparty's account and bank code and the variable, constant and specific symbols.

This module adds GPC to the OCA statement import wizard (account_statement_import_file) on Community. On Enterprise, account_statement_import_gpc_ee (delivered separately) adds it to Odoo's own statement import instead — see below.

What is read

A GPC file is a sequence of 130-character records:

Record Content Becomes
074 statement header: account, old and new balance with their signs, statement number, date one bank statement named GPC <account>/<number>, with its opening and closing balance
075 transaction: own account, counterparty account and bank code, document number, amount in hellers, accounting code, VS, KS, SS, counterparty name, currency, date one statement line
076, 078, 079 additional message lines appended to the label of the preceding line

Any other record is ignored — banks add their own.

The sign of the amount comes from the accounting code: 1 debit, 2 credit, 4 reversal of a debit (money comes back), 5 reversal of a credit (money leaves).

On each statement line:

A file covering several days (one 074 per day) gives one statement per day. A 074 block with no transactions is skipped.

The file is decoded as Windows-1250, or Latin-1 if that fails. The currency is read from the transactions; CZK, EUR, USD, GBP, PLN, HUF, CHF, DKK, SEK and NOK are recognised.

Setting it up

Importing a statement

Accounting → Accounting → Import Statement, or Import Statement (OCA) on the bank journal's card in the Accounting dashboard. Choose the file and press Import and View.

Importing the same file again is safe: each line carries an import key made from the account, the date, the document number and the signed amount, and lines already imported are skipped. A file overlapping an earlier one brings in only the new lines.

Enterprise

account_statement_import_gpc_ee (delivered separately) adds GPC to Enterprise's statement import, next to CAMT, OFX, QIF and CSV: use Import File on the bank journal's card in the Accounting dashboard. The file is recognised by its first record (074 or 075); everything described above applies the same way.

Enterprise checks the account of the file against the journal it is imported into; the module makes that check compare prefix and number too, so a journal stored as an IBAN or as prefix-number/bank code accepts its GPC files. A file covering several accounts is refused on Enterprise, which imports into the journal it was started from: download one file per account.

Limitations