Skip to content

Commit

Permalink
POACC-547
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForsberg-Ecru committed Aug 28, 2024
1 parent a152bf6 commit 113dc60
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions guide/release-notes/main.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ IMPORTANT: Changes in code lists are also reflected by changes in the validation

:leveloffset: +1

include::v3.0.18.adoc[]

include::v3.0.17.adoc[]

include::v3.0.16.adoc[]
Expand Down
13 changes: 13 additions & 0 deletions guide/release-notes/v3.0.18.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Version 3.0.17
[horizontal]
Release date:: May 2024

== Changes to BIS document

None

== Changes to code lists and validation artefacts

* The rule (PEPPOL-EN16931-R002), which ensures that the Invoice Note (BT-22) appears no more than once, will not apply if both the buyer and seller are German organizations.

== EN 16931 schematrons updated
7 changes: 6 additions & 1 deletion rules/sch/PEPPOL-EN16931-UBL.sch
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Last update: 2024 May release 3.0.17.
else
'XX'"/>
<!-- -->
<let name="supplierCountryIsDE"
value="(upper-case(normalize-space(/*/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode)) = 'DE')"/>
<let name="customerCountryIsDE"
value="(upper-case(normalize-space(/*/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode)) = 'DE')"/>

<let name="documentCurrencyCode" value="/*/cbc:DocumentCurrencyCode"/>
<!-- Functions -->
<function xmlns="http://www.w3.org/1999/XSL/Transform" name="u:gln" as="xs:boolean">
Expand Down Expand Up @@ -252,7 +257,7 @@ Last update: 2024 May release 3.0.17.
<rule context="ubl-creditnote:CreditNote | ubl-invoice:Invoice">
<assert id="PEPPOL-EN16931-R001" test="cbc:ProfileID" flag="fatal">Business process MUST be provided.</assert>
<assert id="PEPPOL-EN16931-R007" test="$profile != 'Unknown'" flag="fatal">Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:billing:NN:1.0' where NN indicates the process number.</assert>
<assert id="PEPPOL-EN16931-R002" test="count(cbc:Note) &lt;= 1" flag="fatal">No more than one note is allowed on document level.</assert>
<assert id="PEPPOL-EN16931-R002" test="count(cbc:Note) &lt;= 1 or ($supplierCountryIsDE and $customerCountryIsDE)" flag="fatal">No more than one note is allowed on document level, unless both the buyer and seller are German organizations.</assert>
<assert id="PEPPOL-EN16931-R003" test="cbc:BuyerReference or cac:OrderReference/cbc:ID" flag="fatal">A buyer reference or purchase order reference MUST be provided.</assert>
<assert id="PEPPOL-EN16931-R004" test="starts-with(normalize-space(cbc:CustomizationID/text()), 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0')" flag="fatal">Specification identifier MUST have the value 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0'.</assert>
<assert id="PEPPOL-EN16931-R053" test="count(cac:TaxTotal[cac:TaxSubtotal]) = 1" flag="fatal">Only one tax total with tax subtotals MUST be provided.</assert>
Expand Down
2 changes: 1 addition & 1 deletion structure/syntax/ubl-creditnote.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<Value type="EXAMPLE">381</Value>
</Element>

<Element cardinality="0..1">
<Element cardinality="0..n">
<Term>cbc:Note</Term>
<Name>Invoice note</Name>
<Description>A textual note that gives unstructured information that is relevant to the Invoice as a whole.Such as the reason for any correction or
Expand Down
2 changes: 1 addition & 1 deletion structure/syntax/ubl-invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<Value type="EXAMPLE">380</Value>
</Element>

<Element cardinality="0..1">
<Element cardinality="0..n">
<Term>cbc:Note</Term>
<Name>Invoice note</Name>
<Description>A textual note that gives unstructured information that is relevant to the Invoice as a whole.Such as the reason for any correction or
Expand Down

0 comments on commit 113dc60

Please sign in to comment.