riesenia / pohoda

XML generator a parser pre Pohodu
34 stars 30 forks source link

Missing option <inv:storno>cancelDocument</inv:storno> #39

Closed N4thyra closed 2 years ago

N4thyra commented 2 years ago

Hi,

I'm working on a project where I need to include cancelled invoices as well.

Could you add the storno option below to the list of allowed options? I've just hardcoded it in the source code, but if I ever need to upgrade your library, all the changes will be gone.

<inv:storno>cancelDocument</inv:storno>

it should go right after

<inv:invoiceType>issuedInvoice</inv:invoiceType>

N4thyra commented 2 years ago

image

segy commented 2 years ago

Zdravim

nie uplne rozumiem poziadavke - podla https://www.stormware.sk/xml/schema/version_2/invoice.xsd je toto element iba pre export (Příznak „Storno/Stornujícího“ dokladu (pouze pro export).). A teda pokojne urob PR, ale v pripade komplexnejsej zmeny poprosim vratane testu.

Vdaka