From 4b8bab0c9655c7a34442139b96eb850de86c6db9 Mon Sep 17 00:00:00 2001 From: Georg Date: Thu, 23 Nov 2023 18:24:29 +0000 Subject: [PATCH 1/2] EN schematrons updated POACC-702 --- rules/sch/CEN-EN16931-CII.sch | 17 +++++++++++++---- rules/sch/CEN-EN16931-UBL.sch | 10 +++++----- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/rules/sch/CEN-EN16931-CII.sch b/rules/sch/CEN-EN16931-CII.sch index 0a1d5725..1e2df5af 100644 --- a/rules/sch/CEN-EN16931-CII.sch +++ b/rules/sch/CEN-EN16931-CII.sch @@ -24,6 +24,9 @@ [BR-66]-Each Specified Trade Allowance Charge (BG-20)(BG-21) shall contain a Charge Indicator. + + [BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier. + [BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122). @@ -116,7 +119,6 @@ [BR-27]-The Item net price (BT-146) shall NOT be negative. [BR-28]-The Item gross price (BT-148) shall NOT be negative. [BR-64]-The Item standard identifier (BT-157) shall have a Scheme identifier. - [BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier. [BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151). [BR-CO-18]-An Invoice shall at least have one VAT breakdown group (BG-23). [BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. @@ -583,6 +585,7 @@ [CII-SR-218] - PurchaseSpecifiedTradeAccountingAccount should not be present [CII-SR-219] - SalesSpecifiedTradeAccountingAccount should not be present [CII-SR-220] - SpecifiedTradeSettlementFinancialCard should not be present + [CII-SR-454] - Only one ApplicableTradeTax should be present [CII-SR-442] - Reference should not be present @@ -673,6 +676,10 @@ [CII-SR-307] - Description should not be present [CII-SR-448] - UltimateCustomerOrderReferencedDocument should not be present [CII-SR-450] - Only one buyer identifier should be present (either the ID or the Global ID) + [CII-SR-455] - DefinedTradeContact of SellerTradeParty shall exist maximum once + [CII-SR-456] - DefinedTradeContact of BuyerTradeParty shall exist maximum once + [CII-SR-457] - IssuerAssignedID with TypeCode 50 should exist maximum once + [CII-SR-458] - IssuerAssignedID with TypeCode 130 should exist maximum once [CII-SR-308] - RelatedSupplyChainConsignment should not be present @@ -795,6 +802,8 @@ [CII-SR-435] - SpecifiedTradeSettlementFinancialCard should not be present [CII-SR-436] - SpecifiedAdvancePayment should not be present [CII-SR-437] - UltimatePayeeTradeParty should not be present + [CII-SR-452] - Only one SpecifiedTradePaymentTerms should be present + [CII-SR-453] - Only one SpecifiedTradePaymentTerms Description should be present [CII-SR-411] - InformationAmount should not be present @@ -942,13 +951,13 @@ [BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001. - [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 - [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 - [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 [BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2475. diff --git a/rules/sch/CEN-EN16931-UBL.sch b/rules/sch/CEN-EN16931-UBL.sch index 66597ff6..1e949404 100644 --- a/rules/sch/CEN-EN16931-UBL.sch +++ b/rules/sch/CEN-EN16931-UBL.sch @@ -360,7 +360,7 @@ - + [UBL-SR-51]-An address can only have one third line. @@ -368,7 +368,7 @@ [UBL-SR-33]-Supporting document description shall occur maximum once - [UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130) + [UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50) [UBL-DT-01]-Amounts shall be decimal up to two fraction digits @@ -1149,13 +1149,13 @@ [BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001. - [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 - [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 - [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 + [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 [BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2005. From 44cad744df2d860a56af40db7cfa4aa0b8d780ea Mon Sep 17 00:00:00 2001 From: Georg Date: Thu, 23 Nov 2023 18:28:47 +0000 Subject: [PATCH 2/2] Update v3.0.16.adoc POACC-702 --- guide/release-notes/v3.0.16.adoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/guide/release-notes/v3.0.16.adoc b/guide/release-notes/v3.0.16.adoc index a932c2c9..0b947963 100644 --- a/guide/release-notes/v3.0.16.adoc +++ b/guide/release-notes/v3.0.16.adoc @@ -16,5 +16,20 @@ Release date:: 2023-11-01 * Added invoice type codes 326 "Partial invoice" and 384 "Corrected invoice" as synonyms to code 380. -== Changes to Country-Specific Rules +== EN 16931 schematrons updated +* Adopted version 1.3.11 of EN 16931 validation artefacts (# numbers refer to EN GitHub issues). +** Cardinality of DesignatedProductClassification in CII might stop the check BR-65 #355 +** CII Missing check on DefinedTradeContact cardinality #354 +** CII BT-17 and BT-18 checks to be improved #353 +** UBL-SR-43 using attribute scheme instead of schemeID #351 +** CII - missing cardinality check for ApplicableTradeTax (BG-30) #349 +** Error in Validation of Rule BR-E-08 #348 +** UBL-SR-51 does not check cac:DeliveryLocation #347 +** Typo in rule-text UBL-CR-282, UBL-CR-247 and UBL-CR-183 (UBL) #346 +** Typo in rule-text UBL-CR-583, UBL-CR-577 and UBL-CR-572 (UBL) #345 +** BR-17 rule checks too hard? #344 +** CII - missing cardinality check for SpecifiedTradePaymentTerms #343 +** add missing currency codes #356 +** Add EAS Code 0218 list #359 +