Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POACC-547 #154

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading