Skip to content

Commit

Permalink
closes #351
Browse files Browse the repository at this point in the history
  • Loading branch information
oriol committed Sep 28, 2023
1 parent 4d9d068 commit 0fb512c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ubl/schematron/UBL/EN16931-UBL-syntax.sch
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<param name="UBL-SR-39" value="(count(cac:ProjectReference/cbc:ID) &lt;= 1)"/>
<param name="UBL-SR-40" value="(count(cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name) &lt;= 1)"/>
<param name="UBL-SR-42" value="(count(cac:PartyTaxScheme) &lt;= 2)"/>
<param name="UBL-SR-43" value="((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@scheme) and not(cbc:DocumentTypeCode)))"/>
<param name="UBL-SR-43" value="((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))"/>
<param name="UBL-SR-44" value="count(//cbc:PaymentID[not(preceding::cbc:PaymentID/. = .)]) &lt;= 1"/>
<param name="UBL-SR-45" value="(count(cac:PaymentMeans/cbc:PaymentDueDate) &lt;=1)"/>
<param name="UBL-SR-46" value="(count(cac:PaymentMeans/cbc:PaymentMeansCode/@name) &lt;=1)"/>
Expand Down
2 changes: 1 addition & 1 deletion ubl/schematron/abstract/EN16931-syntax.sch
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</rule>
<rule context="$Additional_supporting_documents">
<assert test="$UBL-SR-33" flag="fatal" id="UBL-SR-33">[UBL-SR-33]-Supporting document description shall occur maximum once</assert>
<assert test="$UBL-SR-43" flag="fatal" id="UBL-SR-43">[UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130)</assert>
<assert test="$UBL-SR-43" flag="fatal" id="UBL-SR-43">[UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)</assert>
</rule>
<rule context="$Amount_data_type">
<assert test="$UBL-DT-01" flag="fatal" id="UBL-DT-01">[UBL-DT-01]-Amounts shall be decimal up to two fraction digits</assert>
Expand Down

0 comments on commit 0fb512c

Please sign in to comment.