Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BT-128 - Multiple DocumentReference elements are not identified as errors #327

Closed
phax opened this issue Oct 4, 2022 · 0 comments
Closed

Comments

@phax
Copy link
Collaborator

phax commented Oct 4, 2022

According to the EN, BT-128 has a cardinality of 0..1.

The UBL mapping for /Invoice/cac:InvoiceLine/cac:DocumentReference is however 0..n (in the original version) and 0..1 in the Amendment. So this was clearly an inconsistency in the EN. The CII mapping was already correct in the original version,

Now that rule should be enforced in UBL, by adding a rule that ensures that no more then one cac:InvoiceLine/cac:DocumentReference elements are contained.

See the following example for a bad case: 253796_2012054952_DocRef.xml.txt

@phax phax added the Format UBL label Oct 4, 2022
oriol added a commit that referenced this issue Oct 4, 2022
@oriol oriol closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants