phax / ph-ubl

Java library for reading and writing UBL 2.0, 2.1, 2.2, 2.3 and 2.4 documents
Apache License 2.0
110 stars 40 forks source link

If the Invoice did not have AccountingCustomerParty It will not continue to produce the invoice #41

Closed ssdf34 closed 3 years ago

ssdf34 commented 3 years ago

Hi, when I try to issue the invoice without aInvoice.setAccountingCustomerParty (aCustomer); . The invoice did not continue produce the invoice example Invoice production only reached here and then it stop (</cac:Party></cac:AccountingSupplierParty><cac:TaxTotal );

phax commented 3 years ago

No, it is not possible, because the XML Schema of UBL requires it:

Otherwise the Invoice would be invalid. hth
ssdf34 commented 3 years ago

Thank you very much for your quick reply.