-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from OpenPEPPOL/2020-Spring
2020 spring merging to Master. Ready for release
- Loading branch information
Showing
66 changed files
with
746 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
# PEPPOL BIS Upgrade | ||
|
||
This repository is used for the PEPPOL BIS Upgrade project | ||
This repository is used for the PEPPOL BIS Upgrade project... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
= Version 3.0.4 - 2020 Spring | ||
[horizontal] | ||
Release date:: 2020-05-01 | ||
|
||
== Changes to BIS document | ||
* The code example in section 6.6 (Classification) is updated from the temporary code ”MC” to the code “TST” (The UNSPSC commodity classification system) from code list UCL7143. [POACC-274] | ||
** for PEPPOL BIS Catalogue without response 3 | ||
** for PEPPOL BIS Catalogue only 3 | ||
* Following BIS generalized so that they use term TAX instead of VAT. Enables using them for other similar taxes like GST. Catalogue, Catalogue only, Order, Ordering, Order Agreement, Punch Out, Invoice Response. [POACC-265] | ||
** Text in guidelines generalized from VAT to GST | ||
** Element names and descriptions that had VAT in them generalized as TAX | ||
** Rules requesting Tax type ID as VAT removed to allow for GST. VAT now given as example. | ||
** Added new code for allowed TaxScheme Identifiers. Now allows VAT or GST. | ||
* Updated the link “Peppol Identifiers” of all the BIS DOCUMENTS in https://docs.peppol.eu/poacc/upgrade-3/ to reflect the newest version of “Policy for use of identifiers”[POACC-188] | ||
|
||
== Changes to syntax | ||
* Added cac:Package with elements cbc:ID and cbc:PackageTypeCode to support identification of packages within a transport handling unit. [POACC-301] | ||
* In the Order Syntax the sequence of Item Description (tir01-133) and Item Name (tir01-135) has been corrected so that Description is now before the Name. This is now in line with the UBL 2.1 syntax specification. [POACC-299] | ||
* Added name attribute to ItemClassificationCode and aligned Catalogue, Order, OrderAgreement, Order Respones and Shopping Cart. [POACC-277] | ||
|
||
== Changes to supporting documents | ||
* Updated test files with valid GLN numbers to pass travis validation according to the updated GLN validation rules introduced in version 3.0.3. [POACC-321] | ||
|
||
== Changes to code lists and validation artefacts | ||
* Added country code 1A for Kosovo into ISO 3166 for all BIS specifications. [POACC-324] | ||
* Updated test file poacc-upgrade-3\\rules\\snippets | ||
mlr/snippet-3.xml in order for the test file to conform to mlr syntax. [POACC-322] | ||
* Rule R026 in OrderAgreement modified so that it is fired only when TaxTotal is provided. [POACC-302] | ||
* In the Catalogue transaction the code PRODUCT_IMAGE is added to allowed DocumentTypeCodes in ItemSpecificationDocumentReference on line level. The code may be used to identify the main image of a product. [POACC-297] | ||
* Added code TRADE_ITEM_DESCRIPTION as allowed attachment type in Catalogue and PunchOut [POACC-279] | ||
* PEPPOL-T19-R011 and PEPPOL-T19-R016 updated to take unbounded cac:RequiredItemLocationQuantity into consideration. [POACC-255] | ||
* Changed character (code ) for citation marks (“) as it was in conflict with some implementations. Changes was made in Rules for transactions T16, T19 and T110. [POACC-249] | ||
* Validation of cbc:CustomizationID in all BIS specifications changed from element must contain exactly the relevant transaction identifier to element content must begin with that identifier value. [POACC-191] | ||
* Descriptions and some names of codes in UNCL7143 corrected in line with the official code list version d19a. Applies to all BIS using this code list. [POACC-258] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
= Calculation of VAT amounts | ||
= Calculation of TAX amounts | ||
|
||
[[vat-calc]] | ||
== Total VAT amount | ||
== Total TAX amount | ||
|
||
The total VAT amount can be provided without providing the VAT breakdown, but if the VAT breakdown is present, the total VAT amount is the sum of all VAT Category VAT amounts. | ||
The total TAX amount can be provided without providing the TAX breakdown, but if the TAX breakdown is present, the total TAX amount is the sum of all TAX Category TAX amounts. | ||
|
||
|
||
==== | ||
stem:["Total VAT amount" = sum("VAT category tax amount")] | ||
stem:["Total TAX amount" = sum("TAX category tax amount")] | ||
==== | ||
|
||
== VAT Breakdown | ||
== TAX Breakdown | ||
|
||
One VAT Breakdown shall be provided for each distinct combination of VAT category code and VAT rate found in either the line VAT information or the Document level allowance or charges. | ||
One TAX Breakdown shall be provided for each distinct combination of TAX category code and TAX rate found in either the line TAX information or the Document level allowance or charges. | ||
|
||
For each distinct combination of VAT category code and VAT rate the calculations are: | ||
For each distinct combination of TAX category code and TAX rate the calculations are: | ||
==== | ||
stem:["VAT category taxable amount" = sum("Line net amounts")] + | ||
stem:["TAX category taxable amount" = sum("Line net amounts")] + | ||
stem:[+ "Document level charge amount" - "Document level allowance amount"] | ||
==== | ||
|
||
==== | ||
stem:["VAT category tax amount" = "VAT category taxable amount" times ("VAT rate" div 100)] | ||
stem:["TAX category tax amount" = "TAX category taxable amount" times ("TAX rate" div 100)] | ||
==== | ||
|
||
IMPORTANT: For VAT Breakdown where the VAT Category is "Not subject to VAT" (O), the VAT category tax amount shall be zero. | ||
IMPORTANT: For TAX Breakdown where the TAX Category indicates the invoice is not subject to TAX (e.g. (O) in EU), then the TAX category tax amount shall be zero. | ||
|
||
Please note that for the VAT rate, only significant decimals should be considered, i.e any difference in trailing zeros should not result in different VAT breakdowns. | ||
Please note that for the TAX rate, only significant decimals should be considered, i.e any difference in trailing zeros should not result in different TAX breakdowns. | ||
|
||
.Example | ||
.Example where TAX is VAT. | ||
==== | ||
Line 1 has category code = S and VAT rate = *25* + | ||
Line 2 has category code = S and VAT rate = *25.00* + | ||
This should result in only one VAT Breakdown. | ||
==== | ||
|
||
.UBL Example of tax total and tax breakdown | ||
.UBL Example of tax total and tax breakdown, when TAX is VAT. | ||
[source, xml, indent=0] | ||
---- | ||
include::../../snippets/snippet-oa-vat.xml[tags=taxtotal] | ||
---- | ||
<1> The class `cac:TaxCategory` is used for tax category information | ||
<2> VAT category according to codelist {vat-codes} | ||
<3> VAT rate | ||
<2> TAX category according to codelist {vat-codes} | ||
<3> TAX rate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
|
||
= Line VAT Category | ||
= Line TAX Category | ||
|
||
VAT information on line level is provided in the class `cac:ClassifiedTaxCategory`. | ||
TAX information on line level is provided in the class `cac:ClassifiedTaxCategory`. | ||
|
||
Each line shall have the item VAT information including category code and percentage rate except when the invoice is "Not subject to VAT" (VAT category code on document level =O) then percentage shall not be given on line level. | ||
Each line shall have the item TAX information including category code and percentage rate except when the invoice as a whole is not subject to TAX, in which case the percentage shall not be given on line level. | ||
|
||
.UBL example of line VAT category | ||
.UBL example of line TAX category, when TAX is VAT | ||
[source, xml, indent=0] | ||
---- | ||
include::../snippets/snippet-common.xml[tags=vat-line] | ||
---- | ||
<1> VAT category according to codelist {vat-codes} | ||
<2> VAT percentage, must be present unless VAT category code is O.(the value "O" means "Out of scope for VAT") | ||
<3> Value must be VAT | ||
<1> TAX category according to codelist {vat-codes} | ||
<2> TAX percentage. For EN must be present unless TAX category code is O (the value "O" means "Out of scope for TAX"). | ||
<3> Value must identify the correct tax type. For example VAT, GST or sales tax. |
Oops, something went wrong.