num-num / ubl-invoice

A modern object-oriented PHP library to create valid UBL and Peppol BIS files
MIT License
81 stars 70 forks source link

Bug when using "ContractDocumentReference". Section in wrong place when generating Invoice #42

Closed markovic131 closed 1 year ago

markovic131 commented 1 year ago

When using "setContractDocumentReference" on Invoice, it generates invalid UBL Invoice 2.1 XML.

According to the XSD, when generating the XML Invoice, the section "cac:ContractDocumentReference" should be right before "cac:AdditionalDocumentReference".

seebeen commented 1 year ago

Bratan, je l' koristiš ovaj lib za eFuckture? Nadji me negde online, da forkujemo ovo k'o ljudi i dopunimo cim treba, posto ovaj PR boga pitaj kad ce biti mergeovan

brtdv commented 1 year ago

Once again, thank you for your fix. This issue is fixed in #41 and will be released later today in v1.15 👍

seebeen commented 1 year ago

This is a life safer. Thanks!