Skip to content

Commit

Permalink
Merge pull request #21 from mvb-nerdzone/ontwikkeling
Browse files Browse the repository at this point in the history
Severity levels toegevoegd in schematron BFR
  • Loading branch information
mvb-nerdzone authored Aug 29, 2023
2 parents 11056f8 + 8600b61 commit a6dd27d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
> _Inhoudelijke wijzigingen van de basisfactuur Rijk worden voorafgegaan door (BFR)._

## [v1.0.8] - 2023-08-29

### Added

- (BFR) In alle `assert` elementen de attributen `id` (ten behoeve van het melding-ID) en `flag` (ten behoeve van het severity level) toegevoegd in [Schematron BFR](./technische-documentatie/basisfactuur-rijk.sch) (v0.9.2 → v0.10.0).


## [v1.0.7] - 2023-08-18

### Added
Expand Down
8 changes: 4 additions & 4 deletions js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ var respecConfig = {
specType: "HR",
pubDomain: "ep",
shortName: "basisfactuur-rijk",
publishDate: "2023-08-18",
publishVersion: "v1.0.7",
publishDate: "2023-08-29",
publishVersion: "v1.0.8",
title: "Handreiking basisfactuur Rijk",
previousPublishVersion: "v1.0.6",
previousPublishDate: "2023-06-18",
previousPublishVersion: "v1.0.7",
previousPublishDate: "2023-08-18",
previousMaturity: "WV",
content:
{
Expand Down
12 changes: 6 additions & 6 deletions technische-documentatie/basisfactuur-rijk.sch
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Versie basisfactuur Rijk - 1.0.0 (december 2022)
Datum basisfactuur Rijk - 14 december 2022
Versie schematron - 0.9.2
Datum schematron - 18 augustus 2023
Versie schematron - 0.10.0
Datum schematron - 29 augustus 2023
-->
<ns prefix="cac" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"/>
Expand All @@ -17,21 +17,21 @@

<rule context="/doc:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact">
<!-- BR-NL-BFR-1 - BFR-fout-19 - doc:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail (verplicht) -->
<assert test="string-length(cbc:ElectronicMail) gt 0">BR-NL-BFR-1: Het veld 'doc:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail' is verplicht (Basisfactuur 2.8 - Contactpersoon e-mailadres).</assert>
<assert id="BR-NL-BFR-1" test="string-length(cbc:ElectronicMail) gt 0" flag="fatal">BR-NL-BFR-1: Het veld 'doc:Invoice/cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail' is verplicht (Basisfactuur 2.8 - Contactpersoon e-mailadres).</assert>
</rule>
<rule context="/doc:Invoice">
<!-- BR-NL-BFR-3 - BFR-fout-30 - doc:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID (verplicht) -->
<assert test="string-length(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID) gt 0">BR-NL-BFR-3: Het veld 'doc:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID' is verplicht (Basisfactuur 4.1 - IBAN).</assert>
<assert id="BR-NL-BFR-3" test="string-length(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID) gt 0" flag="fatal">BR-NL-BFR-3: Het veld 'doc:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID' is verplicht (Basisfactuur 4.1 - IBAN).</assert>
</rule>
</pattern>
<pattern id="type-restrictions">
<rule context="/doc:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID">
<!-- BR-NL-BFR-2 - BFR-fout-22 doc:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID@schemeID (waarde 0190) -->
<assert test="@schemeID = '0190'">BR-NL-BFR-2: Het attribuut 'schemeID' van veld 'doc:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID' moet altijd de waarde '0190' (OIN) hebben (huidige waarde: '<value-of select="@schemeID" />').</assert>
<assert id="BR-NL-BFR-2" test="@schemeID = '0190'" flag="fatal">BR-NL-BFR-2: Het attribuut 'schemeID' van veld 'doc:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID' moet altijd de waarde '0190' (OIN) hebben (huidige waarde: '<value-of select="@schemeID" />').</assert>
</rule>
<rule context="/doc:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount">
<!-- BR-NL-BFR-4 - BFR-fout-37 - /doc:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount@currencyID (waarde gelijk aan 'doc:Invoice/cbc:DocumentCurrencyCode') -->
<assert test="@currencyID eq //doc:Invoice/cbc:DocumentCurrencyCode">BR-NL-BFR-4: Het attribuut 'currencyID' van het element 'doc:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount' (huidige waarde: '<value-of select="@currencyID" />') moet gelijk zijn aan de waarde van 'doc:Invoice/cbc:DocumentCurrencyCode' (huidige waarde: '<value-of select="//doc:Invoice/cbc:DocumentCurrencyCode" />') (Basisfactuur 1.4 valuta).</assert>
<assert id="BR-NL-BFR-4" test="@currencyID eq //doc:Invoice/cbc:DocumentCurrencyCode" flag="fatal">BR-NL-BFR-4: Het attribuut 'currencyID' van het element 'doc:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount' (huidige waarde: '<value-of select="@currencyID" />') moet gelijk zijn aan de waarde van 'doc:Invoice/cbc:DocumentCurrencyCode' (huidige waarde: '<value-of select="//doc:Invoice/cbc:DocumentCurrencyCode" />') (Basisfactuur 1.4 valuta).</assert>
</rule>
</pattern>
</schema>

0 comments on commit a6dd27d

Please sign in to comment.