Skip to content

Commit

Permalink
split code list 1001 into invoice type code and credit note type code…
Browse files Browse the repository at this point in the history
… solving #78
  • Loading branch information
oriol committed Apr 23, 2019
1 parent 6cef4c1 commit c8b5d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubl/schematron/codelist/EN16931-UBL-codes.sch
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="Codesmodel">
<rule context="cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode" flag="fatal">
<assert
test="((not(contains(normalize-space(.), ' ')) and contains(' 80 81 82 83 84 130 202 203 204 211 261 262 295 296 308 325 326 380 381 383 384 385 386 387 388 389 390 393 394 395 396 420 456 457 458 527 532 575 623 633 751 780 935 ', concat(' ', normalize-space(.), ' '))))"
test="(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 80 82 84 130 202 203 204 211 295 325 326 380 383 384 385 386 387 388 389 390 393 394 395 456 457 527 575 623 633 751 780 935 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 261 262 296 308 381 396 420 458 532 ', concat(' ', normalize-space(.), ' ')))))"
id="BR-CL-01"
flag="fatal">[BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.</assert>
</rule>
Expand Down

0 comments on commit c8b5d02

Please sign in to comment.