Displaying a discount on the invoice
There is no dedicated discount field in the invoice request. A discount is represented as a separate line item with a negative amount:
- Add a new
<tetel>element and put the name or title of the discount in<megnevezes>. - Set the net unit price (
<nettoEgysegar>) to a negative value; the quantity (<mennyiseg>) stays positive. This makes the net, VAT and gross values of the line negative as well. - Use the same VAT rate (
<afakulcs>) as the item the discount applies to. - If the discount belongs to a specific item, place the discount line directly after that item so it is clear on the invoice which product or service it belongs to.
Example discount item (a 2 000 HUF net discount on a 27% VAT item):
<tetel>
<megnevezes>Kedvezmény: Minta termék</megnevezes>
<mennyiseg>1.0</mennyiseg>
<mennyisegiEgyseg>db</mennyisegiEgyseg>
<nettoEgysegar>-2000</nettoEgysegar>
<afakulcs>27</afakulcs>
<nettoErtek>-2000.0</nettoErtek>
<afaErtek>-540.0</afaErtek>
<bruttoErtek>-2540.0</bruttoErtek>
</tetel>
No percentage or invoice-total discount
There is no percentage-based or invoice-total discount function in Számlázz.hu. Calculate the discount amount in your own system and send it as a negative line item as shown above.
The usual item amount checks apply to negative lines too: <nettoErtek> = <nettoEgysegar> × <mennyiseg>, <afaErtek> = <nettoErtek> × <afakulcs> / 100, <bruttoErtek> = <nettoErtek> + <afaErtek>. See Basics / Error handling & error codes (codes 259–264).
Related knowledge base article: Hogyan tudok kedvezményt adni a számlán? (page in Hungarian).