Skip to main content

Domestic currency price corrections - API

How to set up an invoice price correction via the API?

Written by Petr Pech

This function allows you to correct the prices of a received invoice or cash receipt in the domestic currency. It is available in the faktura-prijata and pokladni-pohyb records.

ℹ️ In the desktop application, you can find the same function on the document detail under the Services button as Price Correction in Domestic Currency. It is not available on paid documents.

Input Parameters

pozadovaneCeny: Prices used to calculate the rounding difference:

  • zklZakl, dphZakl and celkZakl (Base, VAT and Including VAT): for the base rate

  • zklSniz, dphSniz and celkSniz (Base, VAT and Including VAT): for the reduced rate

  • zklSniz2, dphSniz2 and celkSniz2 (Base, VAT and Including VAT): for the 2nd reduced rate

  • osv: for the amount exempt from tax

Usage Example

<winstrom version="1.0">
<faktura-prijata>
<id>code:PF0014/2022</id>
<koriguj>
<pozadovaneCeny>
<zklZakl>491.2</zklZakl>
<dphZakl>103.39</dphZakl>
<celkZakl>594.59</celkZakl>
</pozadovaneCeny>
</koriguj>
</faktura-prijata>
</winstrom>

The Result Will Be a Rounding Item on the Document

<winstrom version="1.0">
<faktura-prijata>
<kod>PF0014/2022</kod>
<polozkyFaktury>
<faktura-prijata-polozka>
<mnozMj>1.0</mnozMj>
<typSzbDphK>typSzbDph.dphZakl</typSzbDphK>
<cenaMj>491.4</cenaMj>
<sumZkl>491.4</sumZkl>
<sumDph>103.19</sumDph>
<sumCelkem>594.59</sumCelkem>
<sumCelkemMen>0.0</sumCelkemMen>
</faktura-prijata-polozka>
<faktura-prijata-polozka>
<nazev>Zaokrouhleno</nazev>
<typPolozkyK>typPolozky.korekceTuz</typPolozkyK>
<sumZkl>-0.20</sumZkl>
<sumDph>0.20</sumDph>
</faktura-prijata-polozka>
</polozkyFaktury>
</faktura-prijata>
</winstrom>

Related Articles

Did this answer your question?