Home › Guide › Trial balance vs journal
Guide

Trial balance (ZOiS) in JPK_KR_PD: reconciliation with the journal

PewnyJPK.pl team·Last updated: 5 October 2026
A spirit level with a blue vial resting on two equal stacks of documents
Illustration generated by AI.
The trial balance (zestawienie obrotów i sald, ZOiS) in JPK_KR_PD must result from the journal entries (Article 18(1) of the Polish Accounting Act). For every leaf account, the sum of debit and credit entries must equal the trial balance turnover to the grosz. A trial balance–journal discrepancy is the most common and most serious error in the file.

What the trial balance contains

For each account the trial balance shows: the opening balance (debit/credit), turnover for the period (debit/credit), cumulative turnover since the books were opened and closing balances. Accounts are also marked with tags (S_12) used to build the balance sheet and the profit and loss account.

Why it must reconcile with the journal

The turnover in the trial balance is not a number "typed in by hand". It results from the accounting entries. Article 18(1) of the Accounting Act requires the trial balance turnover to agree with the journal turnover. If the sum of entries on an account does not match its turnover in the trial balance, the books are not internally consistent.

Leaf and synthetic accounts

Global totals are calculated on leaf accounts (the lowest analytical level), because synthetic accounts aggregate their analytical accounts and would double the amounts. At the same time a synthetic account must be the sum of its analytical accounts: turnover by side, and the opening balance and balances net (debit−credit). Incorrect aggregation of the hierarchy is a frequent defect of accounting system generators.

Most common discrepancies

How to check it

For each leaf account, the debit and credit entries are added up and compared with the trial balance turnover; for synthetic accounts you check whether they are the sum of their analytical accounts. With hundreds of accounts nobody will do this by hand, which is why substantive validation does it automatically, to the grosz, and points to the specific account with the discrepancy.

A discrepancy step by step

The easiest way to understand how the reconciliation works is a simple example from our test file. A company issues an invoice for PLN 123.45. The journal gets one entry with two posting lines: account 100 on the debit side with 123.45 (Z_4), and account 700 on the credit side with 100.00 (Z_7). The difference of PLN 23.45 is VAT, which should go to a separate liabilities account, but that line is missing from the export.

Such a file passes the XSD schema without comment, because all fields are filled in correctly. Substantive validation, however, immediately reports several things at once: the entry does not balance (total debit ≠ total credit, check W55), and the account turnover in the trial balance diverges from the sum of entries (W34 and W35). Note that each of these checks looks at the same problem from a different angle, which makes it easier to locate the source. The report points to the specific account, so you do not search by hand through files of hundreds of megabytes.

Which checks make up the reconciliation

CheckWhat it verifies
W22Total opening balance debits equal total credits
W23Total debit turnover for the period (S_6) equals total credit turnover (S_7)
W24, W25Trial balance turnover equals control totals C_4 and C_5
W26, W27Cumulative turnover and closing balances balance
W28Account arithmetic: opening balance plus turnover gives the closing balance
W31Cumulative turnover is not lower than the period turnover; for a full year they are equal
W34, W35Per leaf account: trial balance turnover equals the sum of journal entries
W67A parent account equals the sum of its child accounts

The tolerance in the per-account reconciliation is one grosz by default, because accounting systems round differently, but we do not let larger discrepancies through. Technical accounts whose entries are deliberately omitted from the export can be excluded from the check with a list of exceptions.

Account hierarchy: the balances trap

A synthetic account aggregates its analytical accounts. If the chart of accounts has account 403-1 with sub-accounts 403-1-1 and 403-1-2, the turnover of the parent account must be the sum of the turnover of the sub-accounts, separately on the debit and credit side. The opening balance and balances are more interesting: in the trial balance they are shown one-sided, so two analytical accounts with opposite sides do not add up by side. One has a debit balance of 100, the other a credit balance of 30, and the parent account should show a debit balance of 70. Comparing by side produced false alarms in our validator, which is why for balances and the opening balance we calculate the net value (debit minus credit). This is exactly the kind of error that is easy to make in your own manual check in a spreadsheet.

Where discrepancies come from

What to do before the first file

If the accounting system allows it, generate the trial balance and the journal for eleven months of 2026 and check them in a spreadsheet: add up the entries per account and compare them with the turnover. You do it once, and you know whether the system can build a consistent file at all. If it cannot, it is better to find out in December than in July. The whole preparation schedule is described in the guide to the 2027 season.

We reconcile the trial balance with the journal to the grosz

Per leaf account, with hierarchy aggregation and the discrepancies pointed out. From PLN 1,500 net, report in English within 8 business hours.

Order file validation

FAQ

Why must the trial balance agree with the journal?

Because trial balance turnover results from the entries in the journal (Article 18(1) of the Polish Accounting Act). If the sum of entries on an account does not match its turnover in the trial balance, even by a few grosz, the books are not internally consistent and the file is defective.

How do I check the reconciliation of the trial balance with the journal?

For each leaf account, add up the debit and credit postings from the postings section and compare them with the turnover in the trial balance. Synthetic accounts must be the sum of their analytical accounts. Substantive validation performs this check to the grosz.

Free PDF + newsletter

JPK_KR_PD checklist by email

20 points the Ministry of Finance gateway does not check, with explanations and a calendar for the 2027 season. We send it once you confirm your sign-up, followed by new guide articles and changes to JPK_KR_PD. Unsubscribe with one click from any email.