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

Missing rule in UBL for checking for the mandatory CompanyID (VAT-id) in PartyTaxScheme #407

Open
MartinForsberg-Ecru opened this issue Nov 22, 2024 · 0 comments

Comments

@MartinForsberg-Ecru
Copy link

MartinForsberg-Ecru commented Nov 22, 2024

There is a missing rule for the UBL syntax binding that makes it possible to provide a PartyTaxScheme without a CompanyID.

This goes unnoticed:

	<cac:PartyTaxScheme>
<!--		<cbc:CompanyID>SE123456789001</cbc:CompanyID> -->
		<cac:TaxScheme>
			<cbc:ID>VAT</cbc:ID>
		</cac:TaxScheme>
	</cac:PartyTaxScheme>	

A rule along the following lines would solve the issue:

<rule context="cac:PartyTaxScheme">
	<assert test="exists(cac:TaxScheme/cbc:ID) and exists(cbc:CompanyID)" flag="fatal" id="UBL-SR-nnn">[UBL-SR-nnn]- CompanyID (VAT Identifier) must be stated when providing the PartyTaxScheme/TaxScheme/ID.</assert>
</rule>
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