Skip to content

Commit 328eb91

Browse files
committed
Added codelist uncl1001-cn and its proper values according to jira POACC-155
1 parent 341b273 commit 328eb91

File tree

3 files changed

+2390
-9
lines changed

3 files changed

+2390
-9
lines changed

rules/sch/PEPPOL-EN16931-CII.sch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,17 @@ This schematron uses business terms defined the CEN/EN16931-1 and is reproduced
159159
<rule context="ram:URIID[@schemeID = '0088'] | ram:ID[@schemeID = '0088'] | ram:GlobalID[@schemeID = '0088']">
160160
<assert id="PEPPOL-COMMON-R040"
161161
test="matches(normalize-space(), '^[0-9]+$') and u:gln(normalize-space())"
162-
flag="warning">Invalid GLN number provided.</assert>
162+
flag="warning">GLN must have a valid format according to GS1 rules.</assert>
163163
</rule>
164164
<rule context="ram:URIID[@schemeID = '0192'] | ram:ID[@schemeID = '0192'] | ram:GlobalID[@schemeID = '0192']">
165165
<assert id="PEPPOL-COMMON-R041"
166166
test="matches(normalize-space(), '^[0-9]{9}$') and u:mod11(normalize-space())"
167-
flag="fatal">Invalid Norwegian organization number provided.</assert>
167+
flag="fatal">Norwegian organization number must be stated in the correct format.</assert>
168168
</rule>
169169
<rule context="ram:URIID[@schemeID = '0184'] | ram:ID[@schemeID = '0184'] | ram:GlobalID[@schemeID = '0184']">
170170
<assert id="PEPPOL-COMMON-R042"
171171
test="(string-length(text()) = 10) and (substring(text(), 1, 2) = 'DK') and (string-length(translate(substring(text(), 3, 8), '1234567890', '')) = 0)"
172-
flag="fatal">Invalid Danish organization number (CVR) provided.</assert>
172+
flag="fatal">Danish organization number (CVR) must be stated in the correct format.</assert>
173173
</rule>
174174
</pattern>
175175
<!-- National rules -->
@@ -361,7 +361,7 @@ This schematron uses business terms defined the CEN/EN16931-1 and is reproduced
361361
<rule context="ram:AttachmentBinaryObject[@mimeCode]">
362362
<assert id="PEPPOL-EN16931-CL001" test="
363363
some $code in $MIMECODE
364-
satisfies @mimeCode = $code" flag="fatal">Invalid mime code.</assert>
364+
satisfies @mimeCode = $code" flag="fatal">Mime code must be according to subset of IANA code list.</assert>
365365
</rule>
366366
<rule context="ram:SpecifiedTradeAllowanceCharge[normalize-space(ram:ChargeIndicator/udt:Indicator) = 'false']/ram:ReasonCode">
367367
<assert id="PEPPOL-EN16931-CL002" test="

rules/sch/PEPPOL-EN16931-UBL.sch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,17 @@ This schematron uses business terms defined the CEN/EN16931-1 and is reproduced
191191
<rule context="cbc:EndpointID[@schemeID = '0088'] | cac:PartyIdentification/cbc:ID[@schemeID = '0088'] | cbc:CompanyID[@schemeID = '0088']">
192192
<assert id="PEPPOL-COMMON-R040"
193193
test="matches(normalize-space(), '^[0-9]+$') and u:gln(normalize-space())"
194-
flag="warning">Invalid GLN number provided.</assert>
194+
flag="warning">GLN must have a valid format according to GS1 rules.</assert>
195195
</rule>
196196
<rule context="cbc:EndpointID[@schemeID = '0192'] | cac:PartyIdentification/cbc:ID[@schemeID = '0192'] | cbc:CompanyID[@schemeID = '0192']">
197197
<assert id="PEPPOL-COMMON-R041"
198198
test="matches(normalize-space(), '^[0-9]{9}$') and u:mod11(normalize-space())"
199-
flag="fatal">Invalid Norwegian organization number provided.</assert>
199+
flag="fatal">Norwegian organization number must be stated in the correct format.</assert>
200200
</rule>
201201
<rule context="cbc:EndpointID[@schemeID = '0184'] | cac:PartyIdentification/cbc:ID[@schemeID = '0184'] | cbc:CompanyID[@schemeID = '0184']">
202202
<assert id="PEPPOL-COMMON-R042"
203203
test="(string-length(text()) = 10) and (substring(text(), 1, 2) = 'DK') and (string-length(translate(substring(text(), 3, 8), '1234567890', '')) = 0)"
204-
flag="fatal">Invalid Danish organization number (CVR) provided.</assert>
204+
flag="fatal">Danish organization number (CVR) must be stated in the correct format.</assert>
205205
</rule>
206206

207207
</pattern>
@@ -388,7 +388,7 @@ This schematron uses business terms defined the CEN/EN16931-1 and is reproduced
388388
<rule context="cbc:EmbeddedDocumentBinaryObject[@mimeCode]">
389389
<assert id="PEPPOL-EN16931-CL001" test="
390390
some $code in $MIMECODE
391-
satisfies @mimeCode = $code" flag="fatal">Invalid mime code.</assert>
391+
satisfies @mimeCode = $code" flag="fatal">Mime code must be according to subset of IANA code list.</assert>
392392
</rule>
393393
<rule context="cac:AllowanceCharge[cbc:ChargeIndicator = 'false']/cbc:AllowanceChargeReasonCode">
394394
<assert id="PEPPOL-EN16931-CL002" test="

stylesheet/stylesheet-ubl.xslt

Lines changed: 2382 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)