The document import fails with an error stating that the entered and calculated amounts differ:
Zadaná hodnota [300.0] vlastnosti [sumCelkem] se liší od vypočtené hodnoty [0.0]
The same error also appears with other fields — sumOsv, sumZklZakl, or sumCelkem — and with all document types, i.e., invoices, orders, and bank transactions. The cause is always the same: ABRA Flexi calculates amounts from the document's items. If the document has no items, it comes out as zero, which doesn't match the entered amount.
Document without items
For a document without items, you need to tell Flexi not to calculate the amounts from the items but to take them from the header instead:
<bezPolozek>true</bezPolozek>
⚠️ bezPolozek alone is not enough if you only send sumCelkem. Flexi cannot derive the breakdown into base and tax from the total amount, so it will calculate zero and the error will appear again. Therefore, always provide the base amounts.
What works and what doesn't:
Entry | Result |
| Error — the entered value differs from the calculated one. |
| Error — the base and tax cannot be derived from the total amount. |
| Works. Flexi calculates both the VAT and the total amount. |
| Works (exempt supply). |
| Works, provided the amounts are consistent with each other. Otherwise, an error occurs. |
Document with items
If the document has items, do not enter amounts in the header at all — Flexi will calculate them itself. In this case, an error means that the sum of the items does not match the entered value; check the quantity, unit price, price type (typCenyDphK), and VAT rate (typSzbDphK) of the items. This is discussed in more detail in the article Importing invoice item amounts.
ℹ️ Bank transactions are usually created without items. If you break down fields such as sumOsv, sumZklZakl, and similar for them, the same rule applies — without bezPolozek, the import will not go through.
