Skip to content

Commit

Permalink
Merge pull request #132 from OpenPEPPOL/POACC-548
Browse files Browse the repository at this point in the history
Add invoice type codes
  • Loading branch information
jerouris authored Oct 4, 2023
2 parents a75ba81 + ac64544 commit 1608e4d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
12 changes: 12 additions & 0 deletions guide/profile/codes/invoice-specific.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ include::../../syntax/codelists/inv-type.adoc[]
| 380
| Invoice

|326
|Partial invoice
|Document/message specifying details of an incomplete invoice.
| 380
| Invoice

|331
|Commercial invoice which includes a packing list
|Commercial transaction (invoice) will include a packing list.
Expand All @@ -81,6 +87,12 @@ include::../../syntax/codelists/inv-type.adoc[]
| 380
| Invoice

|384
|Corrected invoice
|Commercial invoice that includes revised information differing from an earlier submission of the same invoice.
| 380
| Invoice

|386
|Prepayment invoice
|An invoice to pay amounts for goods and services in advance; these amounts will be subtracted from the final invoice.
Expand Down
2 changes: 2 additions & 0 deletions guide/release-notes/v3.0.16.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ Release date:: 2023-11-01

* The structure of the Peppol Schematron rule set has been improved for better quality. A function that was previously located in the Greek rules section is now correctly positioned alongside other functions.

* Added invoice type codes 326 "Partial invoice" and 384 "Corrected invoice" as synonyms to code 380.

== Changes to Country-Specific Rules

2 changes: 1 addition & 1 deletion rules/sch/PEPPOL-EN16931-CII.sch
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Last update: 2022 May release 3.0.13.
</rule>
<rule context="ram:ExchangedDocument/ram:TypeCode">
<assert id="PEPPOL-EN16931-P0100" test="
$profile != '01' or (some $code in tokenize('71 102 218 219 331 382 553 817 870 875 876 877 380 383 386 388 393 82 80 84 395 575 623 780 381 396 81 83 532', '\s')
$profile != '01' or (some $code in tokenize('71 102 218 219 326 331 382 553 817 870 875 876 877 380 383 384 386 388 393 82 80 84 395 575 623 780 381 396 81 83 532', '\s')
satisfies normalize-space(text()) = $code)" flag="fatal">Invoice type code MUST be set according to the profile.</assert>
</rule>
<!-- PEPPOL-EN16931-P0101 is part of PEPPOL-EN16931-P0100. -->
Expand Down
2 changes: 1 addition & 1 deletion rules/sch/PEPPOL-EN16931-UBL.sch
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ Last update: 2023 May release 3.0.15.
</rule>
<rule context="cbc:InvoiceTypeCode">
<assert id="PEPPOL-EN16931-P0100" test="
$profile != '01' or (some $code in tokenize('71 80 82 84 102 218 219 331 380 382 383 386 388 393 395 553 575 623 780 817 870 875 876 877', '\s')
$profile != '01' or (some $code in tokenize('71 80 82 84 102 218 219 326 331 380 382 383 384 386 388 393 395 553 575 623 780 817 870 875 876 877', '\s')
satisfies normalize-space(text()) = $code)" flag="fatal">Invoice type code MUST be set according to the profile.</assert>
</rule>
<rule context="cbc:CreditNoteTypeCode">
Expand Down
14 changes: 13 additions & 1 deletion structure/codelist/UNCL1001-inv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
<Name>Payment request for completed units</Name>
<Description> A request for payment for completed units.</Description>
</Code>

<Code>
<Id>326</Id>
<Name>Partial invoice</Name>
<Description>Document/message specifying details of an incomplete invoice.</Description>
</Code>

<Code>
<Id>331</Id>
Expand Down Expand Up @@ -85,7 +91,13 @@
relevant party.
</Description>
</Code>


<Code>
<Id>384</Id>
<Name>Corrected invoice</Name>
<Description>Commercial invoice that includes revised information differing from an earlier submission of the same invoice.</Description>
</Code>

<Code>
<Id>386</Id>
<Name>Prepayment invoice</Name>
Expand Down

0 comments on commit 1608e4d

Please sign in to comment.