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

UBL: One more validation rule is needed for full BT-18 compliance #194

Closed
SLennartsson opened this issue Nov 28, 2019 · 2 comments
Closed
Milestone

Comments

@SLennartsson
Copy link

BT-18 (cardinality 0..1) includes an invoiced object identifier and possibly a scheme identifier, but no more.
In the current UBL binding it is possible to additionally include DocumentDescription without any validation rule signaling the excess information. Such a rule is needed.
(Note – this RFC is linked to #170 and #171, but slightly different from them)

@SLennartsson
Copy link
Author

@oriol
Copy link
Collaborator

oriol commented Jan 29, 2020

Add rule [UBL-CR-673]-A UBL invoice should not include an AdditonalDocumentReference simultaneously referring an Invoice Object Identifier and an Document Description

With not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cbc:DocumentDescription)

@oriol oriol added this to the v1.3.1 milestone Jan 29, 2020
oriol added a commit that referenced this issue Feb 14, 2020
@oriol oriol closed this as completed Feb 14, 2020
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