ConnectingEurope / eInvoicing-EN16931

Validation artefacts for the European eInvoicing standard EN 16931
Other
138 stars 54 forks source link

Problems with validating UBL-SR-06 #248

Closed lasjan closed 3 years ago

lasjan commented 4 years ago

There seems to be at least two problems with rule UBL-SR-06.

  1. Provided Context is incorrect. cac:InvoiceDocumentReference does not exist in cac:Invoice nor in cac:CreditNote.
  2. This rule stands in contradiction with EN16931, which clearly allows having multiple preceeding invoice references.
SLennartsson commented 3 years ago

You seem to have missed out the fact that cac:BillingReference forms part of the context for cac:InvoiceDocumentReference.

In EN16931-1:

In UBL:

oriol commented 3 years ago

The comment from @SLennartsson clarifies there is no issue.