riesenia / pohoda

XML generator a parser pre Pohodu
35 stars 25 forks source link

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

Closed N4thyra closed 1 year ago

N4thyra commented 1 year 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 1 year ago

image

segy commented 1 year 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