-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Hi
We're currently working on parsing peppol invoices and credit notes (peppol bis 3.0 format), and using UblSharp for this.
For invoices, everything works correctly but the for credit notes we ran into a weird issue.
Official example: https://github.com/OpenPEPPOL/peppol-bis-invoice-3/blob/master/rules/examples/base-creditnote-correction.xml
Parsing code:
var xmlStream = new MemoryStream(source);
var ubl = UblDocument.Load<CreditNoteType>(xmlStream);
Issue:
When parsing the file exactly like that, the deserialization doesn't seem correct and almost all of the data is 'null' (eg. CustomerParty.Party.PartyLegalEntity, CustomerParty.Party.PartyTaxScheme, etc, etc,..)
Weird:
When placing the BillingReference to the bottom of the XML (just above the closing CreditNote tag), the deserialization works correctly.
Someone else that noticed this? Any workarounds? Something else that isn't correctly set up maybe?