-
Notifications
You must be signed in to change notification settings - Fork 55
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
Redundant/broken rule in release v.1.3.9 #335
Comments
Hi, Thanks for the fix! I'm wondering why rule context has cac:RegistrationAddress and cac:DeliveryAddress as those are not part of EN16931 model? (https://test-docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/) <rule context="//cac:PostalAddress | //cac:RegistrationAddress | cac:DeliveryAddress">
<assert id="UBL-SR-51" flag="fatal" test="not(cac:AddressLine) or count(cac:AddressLine) = 1">...</assert>
</rule> Also it seems that DeliveryLocation is not covered with the updated rule. <cac:Delivery>
<cbc:ActualDeliveryDate>2014-01-01</cbc:ActualDeliveryDate>
<cac:DeliveryLocation>
<cbc:ID schemeID="0088">1238764941386</cbc:ID>
<cac:Address>
<cbc:StreetName>StreetName</cbc:StreetName>
<cbc:CityName>CityName</cbc:CityName>
<cbc:PostalZone>1234</cbc:PostalZone>
<cac:AddressLine>
<cbc:Line>AddressLine/Line</cbc:Line>
</cac:AddressLine>
<cac:AddressLine>
<cbc:Line>AddressLine/Line</cbc:Line>
</cac:AddressLine>
<cac:AddressLine>
<cbc:Line>AddressLine/Line</cbc:Line>
</cac:AddressLine>
<cac:AddressLine>
<cbc:Line>AddressLine/Line</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode listID="ISO3166-1:Alpha2">NO</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
</cac:Delivery> With Best Regards, |
Sorry @juskoljo, yes please add another issue. |
Thanks @oriol, new issue is now submitted! |
hi, so the above xml example is correct, but not valid because of UBL-SR-51. Am i wrong? |
Hi,
I think it does not make sense to have rule UBL-SR-51 as XSD already disallows multiple address line cbc:Line elements?
According to UBL-CommonAggregateComponents-2.1.xsd element cac:AddressLine/cbc:Line may occur 1..1 times.
However, it seems that it is possible to have than one cac:AddressLine, which should be against the rules at least in PeppolBIS 3.0 (cardinality 0..1)?
https://docs.peppol.eu/poacc/billing/3.0/2022-Q4/syntax/ubl-invoice/cac-AccountingSupplierParty/cac-Party/cac-PostalAddress/
Example below:
With Best Regards,
Jussi
The text was updated successfully, but these errors were encountered: