From 9160a1eab02caae0df1828151bbd22488d048c12 Mon Sep 17 00:00:00 2001 From: oriol Date: Tue, 17 May 2022 11:33:09 +0200 Subject: [PATCH] corrects the slack in BR-CO-17 --- cii/schematron/CII/EN16931-CII-model.sch | 2 +- .../preprocessed/EN16931-CII-validation-preprocessed.sch | 7 ++++++- cii/xslt/EN16931-CII-validation.xslt | 9 +++++++-- .../preprocessed/EN16931-UBL-validation-preprocessed.sch | 5 +++++ ubl/xslt/EN16931-UBL-validation.xslt | 5 +++++ 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/cii/schematron/CII/EN16931-CII-model.sch b/cii/schematron/CII/EN16931-CII-model.sch index 25a3451b..d777f652 100644 --- a/cii/schematron/CII/EN16931-CII-model.sch +++ b/cii/schematron/CII/EN16931-CII-model.sch @@ -100,7 +100,7 @@ ((xs:decimal(ram:DuePayableAmount) = xs:decimal(ram:GrandTotalAmount) + xs:decimal(ram:RoundingAmount)) and not (xs:decimal(ram:TotalPrepaidAmount))) or ((xs:decimal(ram:DuePayableAmount) = xs:decimal(ram:GrandTotalAmount) - xs:decimal(ram:TotalPrepaidAmount)) and not (xs:decimal(ram:RoundingAmount))) or ((xs:decimal(ram:DuePayableAmount) = xs:decimal(ram:GrandTotalAmount)) and not (xs:decimal(ram:TotalPrepaidAmount)) and not (xs:decimal(ram:RoundingAmount)))"/> - + diff --git a/cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch b/cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch index 1c0a238f..6837fcaa 100644 --- a/cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch +++ b/cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch @@ -1,4 +1,9 @@ + @@ -330,7 +335,7 @@ [BR-47]-Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118). [BR-48]-Each VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT. [BR-CO-03]-Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive. - [BR-CO-17]-VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals. + [BR-CO-17]-VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals. [BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2. [BR-DEC-20]-The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2. diff --git a/cii/xslt/EN16931-CII-validation.xslt b/cii/xslt/EN16931-CII-validation.xslt index f783eff2..580c7c25 100644 --- a/cii/xslt/EN16931-CII-validation.xslt +++ b/cii/xslt/EN16931-CII-validation.xslt @@ -1,4 +1,9 @@ + @@ -3535,9 +3540,9 @@ - + - + BR-CO-17 fatal diff --git a/ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch b/ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch index f9b5effd..cfeb3efc 100644 --- a/ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch +++ b/ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch @@ -1,4 +1,9 @@ + diff --git a/ubl/xslt/EN16931-UBL-validation.xslt b/ubl/xslt/EN16931-UBL-validation.xslt index b6b0971a..e89c952d 100644 --- a/ubl/xslt/EN16931-UBL-validation.xslt +++ b/ubl/xslt/EN16931-UBL-validation.xslt @@ -1,4 +1,9 @@ +