Skip to content

Commit

Permalink
Updated preprocessed and XSLT files
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jul 3, 2019
1 parent 982d9a2 commit 7f1c1eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
<rule context="cac:AllowanceCharge[cbc:ChargeIndicator = true()]">
<assert id="UBL-SR-31" flag="warning" test="(count(cbc:AllowanceChargeReason) &lt;= 1)">[UBL-SR-31]-Document level charge reason shall occur maximum once</assert>
</rule>
<rule context="/ubl:Invoice | /ubl:CreditNote">
<rule context="/ubl:Invoice | /cn:CreditNote">
<assert id="UBL-CR-001" flag="warning" test="not(ext:UBLExtensions)">[UBL-CR-001]-A UBL invoice should not include extensions</assert>
<assert id="UBL-CR-002" flag="warning" test="not(cbc:UBLVersionID)">[UBL-CR-002]-A UBL invoice should not include the UBLVersionID</assert>
<assert id="UBL-CR-003" flag="warning" test="not(cbc:ProfileExecutionID)">[UBL-CR-003]-A UBL invoice should not include the ProfileExecutionID </assert>
Expand Down
4 changes: 2 additions & 2 deletions ubl/xslt/EN16931-UBL-validation.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -3809,8 +3809,8 @@
</xsl:template>

<!--RULE -->
<xsl:template match="/ubl:Invoice | /ubl:CreditNote" mode="M12" priority="1006">
<svrl:fired-rule context="/ubl:Invoice | /ubl:CreditNote" />
<xsl:template match="/ubl:Invoice | /cn:CreditNote" mode="M12" priority="1006">
<svrl:fired-rule context="/ubl:Invoice | /cn:CreditNote" />

<!--ASSERT -->
<xsl:choose>
Expand Down

0 comments on commit 7f1c1eb

Please sign in to comment.