From 868a3d66a6c2d4f05c88ea6c27467b7cf294a892 Mon Sep 17 00:00:00 2001 From: euphyra-dev Date: Sun, 18 Oct 2026 12:57:44 +0200 Subject: [PATCH 1/3] feat: EN16931 1.3.17 by default; 1.3.16 still selectable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vendor the official ConnectingEurope validation-1.3.17 XSLT unmodified (CII 0757f079…, UBL fc4e6cfa…) next to 1.3.16 and make 1.3.17 the default `version`. A workflow that sets `version: '1.3.16'` keeps the previous rules. 1.3.17 renames BR-AF-* to BR-IP-* and BR-AG-* to BR-IG-* (upstream #519) and removes CII-SR-471 (#514). A `fail-on` id that the selected XSLT does not contain could never fire; it is now a configuration error (exit 2) that names the replacement, e.g. "BR-AF-05 (renamed BR-IP-05 in 1.3.17)". Official examples refreshed from 1.3.17 (only CII_example3.xml changed upstream); the CII_example3 mutant is re-derived from it with the same one-line change. All ten mutants still fail with exactly the expected ids, on 1.3.17 and on 1.3.16. New report hashes: official 5ab42d1f…, mutants 35cb6995…. vendor/upstream.json pins validation-1.3.17. --- LICENSE | 2 +- NOTICE | 16 +- README.md | 69 +- SECURITY.md | 4 +- action.yml | 8 +- docs/RELEASE_AND_RULESET.md | 2 +- examples/validate-invoices.yml | 8 +- src/validate.py | 94 +- supply-chain/tree.sha256 | 8 +- testdata/MUTANTS.md | 9 +- testdata/mutants/CII_example3.xml | 6 - testdata/mutants/README.md | 3 +- testdata/official/CII_example3.xml | 6 - testdata/official/README.md | 8 +- testdata/official/SHA256SUMS | 2 +- tests/test_cross_os_report.py | 17 +- tests/test_dtd_gate.py | 16 +- tests/test_upstream.py | 2 +- tests/test_validate.py | 60 +- vendor/en16931-1.3.17/LICENSE.txt | 194 + vendor/en16931-1.3.17/XSLT.SHA256SUMS | 2 + .../xslt/EN16931-CII-validation.xslt | 13071 +++++++++++++ .../xslt/EN16931-UBL-validation.xslt | 15583 ++++++++++++++++ vendor/upstream.json | 12 +- 24 files changed, 29092 insertions(+), 110 deletions(-) create mode 100644 vendor/en16931-1.3.17/LICENSE.txt create mode 100644 vendor/en16931-1.3.17/XSLT.SHA256SUMS create mode 100644 vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt create mode 100644 vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt diff --git a/LICENSE b/LICENSE index c465225..0f55374 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ This Action is licensed under the European Union Public Licence (EUPL) version 1.2. -Vendored EN16931 XSLT and official example invoices are ConnectingEurope eInvoicing-EN16931 release validation-1.3.16, also under EUPL 1.2. See NOTICE. +Vendored EN16931 XSLT (releases validation-1.3.17 and validation-1.3.16) and official example invoices (validation-1.3.17) are ConnectingEurope eInvoicing-EN16931 artefacts, also under EUPL 1.2. See NOTICE. The full licence text follows. diff --git a/NOTICE b/NOTICE index a14575f..ebc612e 100644 --- a/NOTICE +++ b/NOTICE @@ -6,23 +6,31 @@ NOTICE See LICENSE and LICENSE-EUPL-1.2.txt. 2. Vendored XSLT (unmodified copies) + © ConnectingEurope / European Commission, Licence: EUPL 1.2 + + vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt + vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt + Release: eInvoicing-EN16931 validation-1.3.17 (12 October 2026 UTC) + Source: https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17 + Licence text: vendor/en16931-1.3.17/LICENSE.txt + SHA256: vendor/en16931-1.3.17/XSLT.SHA256SUMS + vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt - © ConnectingEurope / European Commission Release: eInvoicing-EN16931 validation-1.3.16 (13 April 2026 UTC) - Licence: EUPL 1.2 Source: https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.16 Licence text: vendor/en16931-1.3.16/LICENSE.txt SHA256: vendor/en16931-1.3.16/XSLT.SHA256SUMS 3. Official examples (unmodified copies) testdata/official/*.xml - Same release, same licence. SHA256: testdata/official/SHA256SUMS + Release validation-1.3.17, same licence. SHA256: testdata/official/SHA256SUMS 4. Mutants (modified copies — EUPL article 5) testdata/mutants/*.xml Each file is a one-line semantic modification of an official example, - dated 16 August 2026, used only to prove the runner reports + dated 16 August 2026 (CII_example3.xml re-derived from the 1.3.17 + example on 18 October 2026), used only to prove the runner reports svrl:failed-assert. See testdata/MUTANTS.md. This Action reports what the official XSLT emits. It does not certify diff --git a/README.md b/README.md index 3d28044..18369b7 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,12 @@ [![Self-test EN16931 action](https://github.com/facturxapi/validate-einvoice/actions/workflows/selftest.yml/badge.svg)](https://github.com/facturxapi/validate-einvoice/actions/workflows/selftest.yml) [![EN16931 upstream drift](https://github.com/facturxapi/validate-einvoice/actions/workflows/upstream-drift.yml/badge.svg)](https://github.com/facturxapi/validate-einvoice/actions/workflows/upstream-drift.yml) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Validate%20EN16931-blue?logo=github)](https://github.com/marketplace/actions/validate-en16931-e-invoice) -GitHub Action that runs the official ConnectingEurope EN16931 1.3.16 +GitHub Action that runs the official ConnectingEurope EN16931 1.3.17 XSLT artefacts (CII and UBL) on XML invoices and reports every `svrl:failed-assert`. -A green job means: the vendored 1.3.16 stylesheets produced zero +A green job means: the vendored 1.3.17 stylesheets (or 1.3.16, if you +set `version`) produced zero `svrl:failed-assert` on the files you passed. The Action does not call a remote API, does not read PDF attachments, and does not certify a document. @@ -17,9 +18,18 @@ document. | Ref | What it is | |---|---| -| `@v1` | **Mutable** major tag (Marketplace channel). It moves to each new `v1.x.y`; it points at `v1.1.2` (`a805a904`, checked 2026-10-12). | -| `@v1.1.2` | Release tag, never moved once published. | -| `@a805a904f9fa1a7d51db5a4160e863748cc3733d` | Full commit SHA of `v1.1.2`: the frozen tree. | +| `@v1` | **Mutable** major tag (Marketplace channel). It moves to each new `v1.x.y`; it points at `v1.2.0` (EN16931 1.3.17 by default). | +| `@v1.2.0` | Release tag, never moved once published. Default rules 1.3.17; `version: '1.3.16'` still selects 1.3.16. | +| `@v1.1.2` | Last release whose default is 1.3.16 (`a805a904f9fa1a7d51db5a4160e863748cc3733d`). | +| Full commit SHA of a release | The frozen tree. Each release's notes give it. | + +`v1.2.0` changes the default rules, so a workflow on `@v1` can see new +or renamed rule ids. In 1.3.17 the IGIC / IPSI rules are renamed +`BR-AF-*` → `BR-IP-*` and `BR-AG-*` → `BR-IG-*`, and `CII-SR-471` is +removed. A `fail-on` list that names an id the selected XSLT does not +contain is now a configuration error (exit 2) that gives the new name, +instead of a filter that could never fire. To keep 1.3.16, set +`version: '1.3.16'` or pin `v1.1.2`. Every release from `v1.1.1` on pins third-party Actions by commit SHA, installs Python dependencies with `--require-hashes`, and refuses @@ -34,10 +44,10 @@ invoices with a DOCTYPE or external entities before Saxon runs. files: invoices/**/*.xml ``` -**Downstream consumer**, frozen on the `v1.1.2` commit: +**Downstream consumer**, frozen on a release commit (SHA from the release notes): ```yaml -- uses: facturxapi/validate-einvoice@a805a904f9fa1a7d51db5a4160e863748cc3733d # v1.1.2 +- uses: facturxapi/validate-einvoice@ # v1.2.0 with: files: invoices/**/*.xml ``` @@ -54,8 +64,8 @@ Copy-paste workflow: [`examples/validate-invoices.yml`](examples/validate-invoic ## Which FacturX repo should I use? -- [validate-einvoice](https://github.com/facturxapi/validate-einvoice) — GitHub Action that runs the official ConnectingEurope EN16931 1.3.16 XSLT artefacts (CII/UBL). -- [en16931-oracles](https://github.com/facturxapi/en16931-oracles) — Replayable fixtures, receipts and mutants for that same 1.3.16 pin, plus a BR-FR pack for the French Flux2 rules (France_RFE `v1.4.0.02` / `v1.4.0.03`). +- [validate-einvoice](https://github.com/facturxapi/validate-einvoice) — GitHub Action that runs the official ConnectingEurope EN16931 1.3.17 XSLT artefacts (CII/UBL). +- [en16931-oracles](https://github.com/facturxapi/en16931-oracles) — Replayable fixtures, receipts and mutants for that same 1.3.17 pin, plus a BR-FR pack for the French Flux2 rules (France_RFE `v1.4.0.02` / `v1.4.0.03`). - [awesome-einvoicing](https://github.com/facturxapi/awesome-einvoicing) — Sourced map of specs, validators, libraries and corpora. Inclusion is not a ranking. ## Public self-test (24 Aug 2026) @@ -83,11 +93,17 @@ When this repository is checked out as the workflow repo (or vendored): ```yaml # Frozen — full commit SHA of a release -- uses: facturxapi/validate-einvoice@a805a904f9fa1a7d51db5a4160e863748cc3733d # v1.1.2 +- uses: facturxapi/validate-einvoice@ # v1.2.0 with: files: invoices/**/*.xml fail-on: failed-assert +# Previous rules — EN16931 1.3.16 on the current release +- uses: facturxapi/validate-einvoice@v1 + with: + files: invoices/**/*.xml + version: '1.3.16' + # Mutable — @v1 major tag (follows the latest v1.x.y) - uses: facturxapi/validate-einvoice@v1 with: @@ -113,8 +129,8 @@ When this repository is checked out as the workflow repo (or vendored): |---|---|---|---| | `files` | yes | — | Glob(s) of XML invoices, relative to the workspace. Separate several globs with a newline or a comma. Zero matches fail the job (exit 2). | | `syntax` | no | `auto` | `auto` reads the document-element namespace. `cii` / `ubl` force one syntax and fail if the document does not match. | -| `fail-on` | no | `failed-assert` | `failed-assert`: any `svrl:failed-assert` fails the job. `never`: report only. Comma-separated ids: fail only if one of those ids fires. | -| `version` | no | `1.3.16` | Only the vendored 1.3.16 artefacts are shipped. Any other value is a configuration error. | +| `fail-on` | no | `failed-assert` | `failed-assert`: any `svrl:failed-assert` fails the job. `never`: report only. Comma-separated ids: fail only if one of those ids fires; an id the selected XSLT does not contain is a configuration error (exit 2). | +| `version` | no | `1.3.17` | `1.3.17` or `1.3.16`, the two vendored releases. Any other value is a configuration error. | ## Outputs @@ -138,15 +154,18 @@ and a markdown table on the job summary. Invoice bytes are never logged. The oracle is the pair of official XSLT files, hashed on every run. A different stylesheet is a different oracle; pins are not auto-updated. -| Syntax | Vendored file | SHA256 | -|---|---|---| -| CII | `vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt` | `0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53` | -| UBL | `vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt` | `39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd` | - -Source of those octets: ConnectingEurope -`eInvoicing-EN16931` tag `validation-1.3.16` -(`en16931-cii-1.3.16.zip` / `en16931-ubl-1.3.16.zip`, inner path -`xslt/EN16931-*-validation.xslt`). Machine-readable pins: +| Version | Syntax | Vendored file | SHA256 | +|---|---|---|---| +| 1.3.17 (default) | CII | `vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt` | `0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0` | +| 1.3.17 (default) | UBL | `vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt` | `fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c` | +| 1.3.16 | CII | `vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt` | `0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53` | +| 1.3.16 | UBL | `vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt` | `39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd` | + +Source of those octets: ConnectingEurope `eInvoicing-EN16931` tags +[`validation-1.3.17`](https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17) +and `validation-1.3.16` (`en16931-cii-.zip` / +`en16931-ubl-.zip`, inner path `xslt/EN16931-*-validation.xslt`). +Machine-readable pins of the latest release: [`vendor/upstream.json`](vendor/upstream.json). The weekly workflow [`.github/workflows/upstream-drift.yml`](.github/workflows/upstream-drift.yml) @@ -187,13 +206,13 @@ unit tests, and run the identity gate. Any difference is a failure. - Not Factur-X / ZUGFeRD packaging, not PDF/A-3, not veraPDF. - Not a certification and not a product benchmark. - Not an official ConnectingEurope Action. It only runs the official - ConnectingEurope EN16931 1.3.16 XSLT artefacts. + ConnectingEurope EN16931 XSLT artefacts (1.3.17, 1.3.16). ## Licence -EUPL 1.2 for this Action. The vendored XSLT and the official examples -are ConnectingEurope EN16931 `validation-1.3.16`, also EUPL 1.2, -unmodified. Mutants are modified copies (see `NOTICE`). +EUPL 1.2 for this Action. The vendored XSLT (`validation-1.3.17` and +`validation-1.3.16`) and the official examples (`validation-1.3.17`) are +ConnectingEurope EN16931 artefacts, also EUPL 1.2, unmodified. Mutants are modified copies (see `NOTICE`). ## See also diff --git a/SECURITY.md b/SECURITY.md index 07e1769..76ab42e 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,8 +4,8 @@ | Release line | Supported | Hardening controls below | |---|---|---| -| `v1` major tag (**mutable**, points at `v1.1.2`) | yes | **yes** | -| `v1.1.1`, `v1.1.2` | yes | **yes** | +| `v1` major tag (**mutable**, points at `v1.2.0`) | yes | **yes** | +| `v1.1.1`, `v1.1.2`, `v1.2.0` | yes | **yes** | | `v1.0.0`, `v1.1.0` | no — move to `v1` or the latest `v1.x.y` | **no** | | `main` | development only | checked on every push | diff --git a/action.yml b/action.yml index 75e6864..8633ef8 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,6 @@ name: 'Validate EN16931 e-invoice' description: >- - Run the official ConnectingEurope EN16931 1.3.16 XSLT on Factur-X / + Run the official ConnectingEurope EN16931 1.3.17 XSLT on Factur-X / ZUGFeRD CII XML and UBL XML; fail on svrl:failed-assert. author: 'euphyra-dev' @@ -28,9 +28,11 @@ inputs: required: false default: 'failed-assert' version: - description: 'EN16931 XSLT version. Only the vendored 1.3.16 artefacts are shipped.' + description: >- + EN16931 XSLT version: 1.3.17 (default) or 1.3.16. Only these vendored, + unmodified ConnectingEurope artefacts are shipped. required: false - default: '1.3.16' + default: '1.3.17' outputs: verdict: diff --git a/docs/RELEASE_AND_RULESET.md b/docs/RELEASE_AND_RULESET.md index 29cd31f..58d4289 100644 --- a/docs/RELEASE_AND_RULESET.md +++ b/docs/RELEASE_AND_RULESET.md @@ -6,7 +6,7 @@ This document describes the **expected** GitHub settings for `facturxapi/validat | Artifact | Policy | |---|---| -| Marketplace major tag `v1` | **Mutable** convenience channel, moved to each new `v1.x.y`. It points at `a805a904` (`v1.1.2`, checked 2026-10-12). | +| Marketplace major tag `v1` | **Mutable** convenience channel, moved to each new `v1.x.y`. It points at `v1.2.0` (EN16931 1.3.17 by default). | | Patch tags `v1.x.y` | Immutable once published; never force-move. Release notes name the tagged commit SHA. | | `main` | Integration branch; must pass all CI gates before tag cut. | diff --git a/examples/validate-invoices.yml b/examples/validate-invoices.yml index bcc3561..d77b434 100644 --- a/examples/validate-invoices.yml +++ b/examples/validate-invoices.yml @@ -1,8 +1,8 @@ # Example workflow for this repository (same-repo checkout). # # Downstream consumers: pin `facturxapi/validate-einvoice@<40-char-sha>` from the -# release notes (v1.1.2: a805a904f9fa1a7d51db5a4160e863748cc3733d). The moving -# `@v1` tag is a mutable convenience channel that follows the latest v1.x.y. +# release notes. The moving `@v1` tag is a mutable convenience channel that +# follows the latest v1.x.y. Set `version: '1.3.16'` to keep the previous rules. name: Validate EN16931 invoices @@ -25,14 +25,14 @@ jobs: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - name: Run official EN16931 1.3.16 XSLT + - name: Run official EN16931 1.3.17 XSLT id: en16931 uses: ./ with: files: testdata/official/*.xml syntax: auto fail-on: failed-assert - version: '1.3.16' + version: '1.3.17' - name: Show verdict if: always() diff --git a/src/validate.py b/src/validate.py index 636453c..39b72a7 100644 --- a/src/validate.py +++ b/src/validate.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Validate EN16931 CII/UBL invoices with the official 1.3.16 XSLT. +"""Validate EN16931 CII/UBL invoices with the official ConnectingEurope XSLT. Engine: SaxonC-HE 13.0 (saxonche==13.0.0). Never logs invoice bytes. @@ -25,7 +25,7 @@ from pathlib import Path from typing import Any, Iterator -SUPPORTED_VERSION = "1.3.16" +DEFAULT_VERSION = "1.3.17" ENGINE_NAME = "SaxonC-HE 13.0" ENGINE_PKG_PIN = "saxonche==13.0.0" ENGINE_PKG_PREFIX = "13.0" @@ -39,10 +39,41 @@ UBL_INVOICE_NS = "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" UBL_CREDIT_NS = "urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" -CII_XSLT_REL = "vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt" -UBL_XSLT_REL = "vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt" -CII_XSLT_SHA256 = "0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53" -UBL_XSLT_SHA256 = "39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd" +# Vendored ConnectingEurope releases, unmodified: (path, SHA256) per syntax. +# The default follows the latest release; older ones stay selectable so a +# workflow that pins `version:` keeps the rules it was written against. +VENDORED_XSLT: dict[str, dict[str, tuple[str, str]]] = { + "1.3.17": { + "CII": ( + "vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt", + "0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0", + ), + "UBL": ( + "vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt", + "fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c", + ), + }, + "1.3.16": { + "CII": ( + "vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt", + "0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53", + ), + "UBL": ( + "vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt", + "39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd", + ), + }, +} + +# 1.3.17 renamed the IGIC / IPSI rule families (upstream issue #519) and +# removed CII-SR-471 (#514). A `fail-on` id that no longer exists would +# never fire, so it is refused with the new name instead. +RENAMED_IN_1_3_17 = { + **{f"BR-AF-{n:02d}": f"BR-IP-{n:02d}" for n in range(1, 11)}, + **{f"BR-AG-{n:02d}": f"BR-IG-{n:02d}" for n in range(1, 11)}, +} +REMOVED_IN_1_3_17 = {"CII-SR-471"} +XSLT_RULE_ID_RE = re.compile(r'([^<]+)') FAILED_BLOCK_RE = re.compile( r"]*)>(.*?)", @@ -450,16 +481,12 @@ def require_engine_pkg() -> str: def load_xslt(root: Path, version: str) -> dict[str, dict[str, str | Path]]: - if version != SUPPORTED_VERSION: - raise ConfigError( - f"version {version} is not vendored; only {SUPPORTED_VERSION} is available" - ) - mapping = { - "CII": (root / CII_XSLT_REL, CII_XSLT_SHA256, CII_XSLT_REL), - "UBL": (root / UBL_XSLT_REL, UBL_XSLT_SHA256, UBL_XSLT_REL), - } + if version not in VENDORED_XSLT: + available = ", ".join(VENDORED_XSLT) + raise ConfigError(f"version {version} is not vendored; available: {available}") resolved: dict[str, dict[str, str | Path]] = {} - for syntax, (path, expected, logical) in mapping.items(): + for syntax, (logical, expected) in VENDORED_XSLT[version].items(): + path = root / logical if not path.is_file(): raise ConfigError(f"vendored XSLT missing: {logical}") digest = sha256_file(path) @@ -472,6 +499,34 @@ def load_xslt(root: Path, version: str) -> dict[str, dict[str, str | Path]]: return resolved +def xslt_rule_ids(xslt: dict[str, dict[str, str | Path]]) -> set[str]: + ids: set[str] = set() + for info in xslt.values(): + text = Path(info["path"]).read_text(encoding="utf-8") + ids.update(XSLT_RULE_ID_RE.findall(text)) + return ids + + +def check_fail_on_ids(fail_on: dict[str, Any], known: set[str], version: str) -> None: + if fail_on["mode"] != "ids": + return + unknown = [rule for rule in fail_on["ids"] if rule not in known] + if not unknown: + return + notes = [] + for rule in unknown: + if rule in RENAMED_IN_1_3_17 and RENAMED_IN_1_3_17[rule] in known: + notes.append(f"{rule} (renamed {RENAMED_IN_1_3_17[rule]} in 1.3.17)") + elif rule in REMOVED_IN_1_3_17: + notes.append(f"{rule} (removed in 1.3.17)") + else: + notes.append(rule) + raise ConfigError( + f"fail-on id(s) not in the EN16931 {version} XSLT, so they could never fire: " + + ", ".join(notes) + ) + + class SaxonEngine: def __init__(self) -> None: require_engine_pkg() @@ -610,7 +665,7 @@ def annotation_line(rel_path: str, item: dict[str, str]) -> str: def markdown_summary(report: dict[str, Any]) -> str: lines = [ - "## EN16931 1.3.16 validation", + f"## EN16931 {report['version']} validation", "", f"- Engine: `{report['engine']}` (`{report['engine_pkg']}`)", f"- XSLT version: `{report['version']}`", @@ -704,6 +759,7 @@ def validate_files( ) -> dict[str, Any]: fail_on = parse_fail_on(fail_on_raw) xslt = load_xslt(root, version) + check_fail_on_ids(fail_on, xslt_rule_ids(xslt), version) engine = SaxonEngine() rows: list[dict[str, Any]] = [] annotations: list[str] = [] @@ -802,7 +858,7 @@ def print_console(result: dict[str, Any]) -> None: def parse_args(argv: list[str] | None) -> argparse.Namespace: parser = argparse.ArgumentParser( - description="Validate EN16931 CII/UBL XML with official XSLT 1.3.16." + description="Validate EN16931 CII/UBL XML with the official ConnectingEurope XSLT." ) parser.add_argument( "--files", @@ -824,7 +880,7 @@ def parse_args(argv: list[str] | None) -> argparse.Namespace: parser.add_argument( "--version", default=None, - help=f"XSLT version (only {SUPPORTED_VERSION} is vendored).", + help=f"XSLT version: {', '.join(VENDORED_XSLT)} (default {DEFAULT_VERSION}).", ) parser.add_argument( "--report", @@ -848,7 +904,7 @@ def resolve_inputs(args: argparse.Namespace) -> dict[str, Any]: raise ConfigError("files input is required") syntax = args.syntax or os.environ.get("INPUT_SYNTAX") or "auto" fail_on = args.fail_on or os.environ.get("INPUT_FAIL_ON") or "failed-assert" - version = args.version or os.environ.get("INPUT_VERSION") or SUPPORTED_VERSION + version = args.version or os.environ.get("INPUT_VERSION") or DEFAULT_VERSION return { "files": files, "syntax": syntax.strip(), diff --git a/supply-chain/tree.sha256 b/supply-chain/tree.sha256 index 96da1ac..25bb7f7 100644 --- a/supply-chain/tree.sha256 +++ b/supply-chain/tree.sha256 @@ -1,10 +1,10 @@ 2b822e8f93016f265f6bca96a70c862ecedf16c49de7e07ece70554653bcec2f .github/workflows/selftest.yml 4fc0db0a2924b8d652e3b6c470afa221826ebf70ce5619694da135eda7bf2043 .github/workflows/supply-chain.yml 2579e8013e09725f5e2fe8bbe52e7a2affda62c574cad7a227757a41f9885c76 .github/workflows/upstream-drift.yml -154ca73f945b6a18ce91808b6d61aca3ab161eaf667d6e9586b103a65d1f2374 SECURITY.md -25dbf69002914e448dcac555f735367f27de7397ed3cc5bed8af532e8d3a1f7f action.yml -38fbdc442d7e40d11790644da9dc30d2112bca061f5ec05668b51da8995519cd docs/RELEASE_AND_RULESET.md -1c45ad87ea5a497124298f5bebccfd0b8c65862abba1d2d49eaec0fcf53bcbb5 examples/validate-invoices.yml +fc1787bfc30d6515629905aec97d6c9640ffe3289fcf91033b9e897e743abbe3 SECURITY.md +4e7b5766a1af101271e6c9314483d6b6273d5eeb689aef9a73543fe7049efe82 action.yml +73bf8243dfdb3986e0ad3869ef6cb94a1d128525a612e5b07b53649e5c28e6a4 docs/RELEASE_AND_RULESET.md +485d61c9c79a0a6ee76edeac9f720b1023ae14e060462bf687e5d02e5ed08b37 examples/validate-invoices.yml edb6cbad1392b557221ec706c3348aa62cc8e9a95b6eff9e8852c4df209acb24 requirements.lock 541d1b0f2bc68aedb17c6adae7188117643cefe0e719c4b113ece67df4b7e035 requirements.txt c473a9139b9beb7686fa5bfd6212e6e074ea45024bfe61472d0aaf529f38586e scripts/check_supply_chain.py diff --git a/testdata/MUTANTS.md b/testdata/MUTANTS.md index 61814fa..77d62b0 100644 --- a/testdata/MUTANTS.md +++ b/testdata/MUTANTS.md @@ -1,10 +1,11 @@ -# Mutants — expected `svrl:failed-assert` ids (EN16931 1.3.16) +# Mutants — expected `svrl:failed-assert` ids (EN16931 1.3.17) Ten modified copies of the official ConnectingEurope examples. Each file has **one semantic change**. The originals in `official/` are untouched. Engine of record: SaxonC-HE 13.0 (`saxonche==13.0.0`) with the vendored -XSLT 1.3.16. Ids are the SVRL `id` attributes, in document order. +XSLT 1.3.17. Ids are the SVRL `id` attributes, in document order. The +same ids fire with 1.3.16; none of the mutated rules was renamed in 1.3.17. | File | Class | Expected ids | |---|---|---| @@ -25,4 +26,6 @@ A runner that reports **zero** failed-assert on any of these files, or a different id list, has failed the mutant gate. These XML files are **modified** (16 August 2026) relative to the -official examples. See `NOTICE` (EUPL article 5). +official examples. `CII_example3.xml` was re-derived from the 1.3.17 +example on 18 October 2026 (same one-line change, `CalculatedAmount` +225 → 226). See `NOTICE` (EUPL article 5). diff --git a/testdata/mutants/CII_example3.xml b/testdata/mutants/CII_example3.xml index aeea483..aaa5d7b 100644 --- a/testdata/mutants/CII_example3.xml +++ b/testdata/mutants/CII_example3.xml @@ -101,12 +101,6 @@ DK1212341234123412 - - 30 - - DK1212341234123412 - - 226 VAT diff --git a/testdata/mutants/README.md b/testdata/mutants/README.md index 41a2212..26b5205 100644 --- a/testdata/mutants/README.md +++ b/testdata/mutants/README.md @@ -1,7 +1,8 @@ # Mutants Modified copies of the official examples in `../official/`. One semantic -change per file, 16 August 2026. Expected `svrl:failed-assert` ids are +change per file, 16 August 2026 (`CII_example3.xml` re-derived from the +1.3.17 example on 18 October 2026). Expected `svrl:failed-assert` ids are listed in `../MUTANTS.md`. The official files were not overwritten. diff --git a/testdata/official/CII_example3.xml b/testdata/official/CII_example3.xml index a7e4707..bef09a1 100644 --- a/testdata/official/CII_example3.xml +++ b/testdata/official/CII_example3.xml @@ -101,12 +101,6 @@ DK1212341234123412 - - 30 - - DK1212341234123412 - - 225 VAT diff --git a/testdata/official/README.md b/testdata/official/README.md index 631405b..e25a21e 100644 --- a/testdata/official/README.md +++ b/testdata/official/README.md @@ -1,9 +1,11 @@ -# Official EN16931 1.3.16 examples +# Official EN16931 1.3.17 examples Ten unmodified examples from ConnectingEurope eInvoicing-EN16931 release -`validation-1.3.16` (13 April 2026 UTC), licensed EUPL 1.2. +`validation-1.3.17` (12 October 2026 UTC), licensed EUPL 1.2. Against +1.3.16, only `CII_example3.xml` changed upstream (one +`SpecifiedTradeSettlementPaymentMeans` block removed). -Source: https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.16 +Source: https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17 `CII_example2.xml` (duplicate of `CII_business_example_01.xml`) is not included. No other examples are included. diff --git a/testdata/official/SHA256SUMS b/testdata/official/SHA256SUMS index 02df422..3deb773 100644 --- a/testdata/official/SHA256SUMS +++ b/testdata/official/SHA256SUMS @@ -3,7 +3,7 @@ 53a636ac10592aa6fdc280190a366955380a64883519a4d58926b96802eb7163 CII_business_example_02.xml 68222346e14dfff673ae32b349f4efef054bd8e55f10370d0fcba1ec55262d56 CII_business_example_Z.xml 0c12e3ca9aab58299e6271b89d061274694c62159510ca2d848f13d287ee4f99 CII_example1.xml -eda939773fa9556acb411555ef2e73df8d1eabe1d2c9ba99445a00abf889db6d CII_example3.xml +5c2e9de624dc72fcc7249cb82924fd443aa140b04b30da2a8549775d39caa377 CII_example3.xml 473b2f9bd47b807804db7f8729eecbdd4b404c6232aca31262897bd5371d802b CII_example5.xml 399acf31a9c7ce4722b1362fe429f8326a132a0a9c01e5792e4f6bc266c982bb XRechnung-O.xml fad73604fc1ff6ac4c762687bdf394d1f4fe14b5b8830d607abf1c1cdfc68758 huf_example_cii.xml diff --git a/tests/test_cross_os_report.py b/tests/test_cross_os_report.py index ea8095d..1e02f67 100644 --- a/tests/test_cross_os_report.py +++ b/tests/test_cross_os_report.py @@ -20,8 +20,8 @@ import validate # noqa: E402 -LINUX_OFFICIAL_REPORT = "eaa0dc88dc46f88edca7808556f27faf2843d7e454f272a944a8e289a04cd717" -LINUX_MUTANT_REPORT = "5ee08caf8a868a5d1a2333cb3d912507bb312a619e5f7daae02eaa6d94f9d85b" +LINUX_OFFICIAL_REPORT = "5ab42d1f115a524f9ce524f65b8755bfab9cdc750d30d1b35548264716b3b95e" +LINUX_MUTANT_REPORT = "35cb6995e323611b8e774be6b4e59e885bb8ea7b10a330a5d59b8c550c6ab803" def sha256_bytes(data: bytes) -> str: @@ -38,8 +38,7 @@ def testdata_xml() -> list[Path]: def file_row(kind: str, name: str, file_sha: str, ids: list[str]) -> dict: syntax = "UBL" if name.startswith("ubl-") else "CII" - xslt = validate.UBL_XSLT_REL if syntax == "UBL" else validate.CII_XSLT_REL - xslt_sha = validate.UBL_XSLT_SHA256 if syntax == "UBL" else validate.CII_XSLT_SHA256 + xslt, xslt_sha = validate.VENDORED_XSLT[validate.DEFAULT_VERSION][syntax] return { "failed_assert_count": len(ids), "failed_assert_ids": list(ids), @@ -68,7 +67,7 @@ def reconstruct_report(kind: str, expected: dict[str, list[str]], *, crlf: bool) "files": rows, "syntax": "auto", "verdict": "fail" if any(row["verdict"] == "fail" for row in rows) else "pass", - "version": validate.SUPPORTED_VERSION, + "version": validate.DEFAULT_VERSION, } text = validate.canonical_json(payload) return text, validate.sha256_text(text) @@ -224,7 +223,7 @@ def test_gate_script_passes_on_identical_os_cells(self) -> None: "files": [file_row("official", name, "a" * 64, []) for name in names], "syntax": "auto", "verdict": "pass", - "version": validate.SUPPORTED_VERSION, + "version": validate.DEFAULT_VERSION, } ) expected = json.loads((ROOT / "testdata" / "expected-ids.json").read_text(encoding="utf-8")) @@ -238,7 +237,7 @@ def test_gate_script_passes_on_identical_os_cells(self) -> None: "files": mutant_files, "syntax": "auto", "verdict": "fail", - "version": validate.SUPPORTED_VERSION, + "version": validate.DEFAULT_VERSION, } ) digest_lines = [] @@ -276,7 +275,7 @@ def test_gate_script_fails_on_windows_byte_mismatch(self) -> None: "files": [file_row("official", name, "a" * 64, []) for name in names], "syntax": "auto", "verdict": "pass", - "version": validate.SUPPORTED_VERSION, + "version": validate.DEFAULT_VERSION, } ) expected = json.loads((ROOT / "testdata" / "expected-ids.json").read_text(encoding="utf-8")) @@ -289,7 +288,7 @@ def test_gate_script_fails_on_windows_byte_mismatch(self) -> None: "files": [file_row("mutants", name, "b" * 64, expected[name]) for name in sorted(expected)], "syntax": "auto", "verdict": "fail", - "version": validate.SUPPORTED_VERSION, + "version": validate.DEFAULT_VERSION, } ) digest_lines = [f"{row['sha256']} {row['path']}" for row in json.loads(official)["files"]] diff --git a/tests/test_dtd_gate.py b/tests/test_dtd_gate.py index 15e18e2..d7d88e8 100644 --- a/tests/test_dtd_gate.py +++ b/tests/test_dtd_gate.py @@ -394,7 +394,7 @@ def test_official_file_same_sha_before_after_gate_and_report(self) -> None: [path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, cwd=ROOT, ) @@ -420,7 +420,7 @@ def test_crlf_user_invoice_hashed_as_crlf(self) -> None: [path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, cwd=Path(tmp), ) @@ -446,7 +446,7 @@ def test_validate_files_refuses_doctype_before_saxon(self) -> None: [path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, ) self.assertEqual(hits, []) @@ -455,7 +455,7 @@ def test_b_does_not_break_stylesheet_file_and_source_file(self) -> None: path = ROOT / "testdata" / "official" / "CII_example3.xml" engine = validate.SaxonEngine() try: - xslt = ROOT / validate.CII_XSLT_REL + xslt = ROOT / validate.VENDORED_XSLT[validate.DEFAULT_VERSION]["CII"][0] svrl = engine.transform(path, xslt) finally: engine.close() @@ -708,7 +708,7 @@ def recording_snapshot(data: bytes): [xml_path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, cwd=base, ) @@ -752,7 +752,7 @@ def refuse_then_replace(path: Path, data: bytes | None = None) -> bytes: [xml_path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, ) finally: @@ -797,7 +797,7 @@ def wrapped(data: bytes, **kwargs): [path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, cwd=ROOT, ) @@ -848,7 +848,7 @@ def wrapped(data: bytes, **kwargs): [path], syntax="auto", fail_on_raw="failed-assert", - version="1.3.16", + version=validate.DEFAULT_VERSION, root=ROOT, cwd=ROOT, ) diff --git a/tests/test_upstream.py b/tests/test_upstream.py index 9a19f2c..8d8e749 100644 --- a/tests/test_upstream.py +++ b/tests/test_upstream.py @@ -92,7 +92,7 @@ def test_skips_prerelease(self) -> None: self.assertEqual(latest["tag"], "validation-1.3.16") def test_compare_detects_new_tag(self) -> None: - latest = {"tag": "validation-1.3.17", "html_url": ""} + latest = {"tag": "validation-99.0.0", "html_url": ""} measured = { "cii": {"zip_sha256": "aa", "xslt_sha256": pins()["assets"]["cii"]["xslt_sha256"]}, "ubl": {"zip_sha256": "bb", "xslt_sha256": pins()["assets"]["ubl"]["xslt_sha256"]}, diff --git a/tests/test_validate.py b/tests/test_validate.py index f106672..8e72e49 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -3,6 +3,7 @@ from __future__ import annotations +import json import os import sys import tempfile @@ -106,9 +107,24 @@ def test_display_path_stays_relative(self) -> None: class XsltPinTests(unittest.TestCase): def test_vendored_sha256(self) -> None: - mapping = validate.load_xslt(ROOT, "1.3.16") - self.assertEqual(mapping["CII"]["sha256"], validate.CII_XSLT_SHA256) - self.assertEqual(mapping["UBL"]["sha256"], validate.UBL_XSLT_SHA256) + for version, pins in validate.VENDORED_XSLT.items(): + mapping = validate.load_xslt(ROOT, version) + for syntax, (logical, sha) in pins.items(): + self.assertEqual(mapping[syntax]["sha256"], sha, version) + self.assertEqual(mapping[syntax]["logical"], logical) + + def test_default_is_latest_vendored(self) -> None: + self.assertEqual(validate.DEFAULT_VERSION, "1.3.17") + self.assertIn("1.3.16", validate.VENDORED_XSLT) + + def test_upstream_pin_matches_default(self) -> None: + pins = json.loads((ROOT / "vendor" / "upstream.json").read_text(encoding="utf-8")) + self.assertEqual(pins["pinned_version"], validate.DEFAULT_VERSION) + for syntax, key in (("CII", "cii"), ("UBL", "ubl")): + self.assertEqual( + pins["assets"][key]["xslt_sha256"], + validate.VENDORED_XSLT[validate.DEFAULT_VERSION][syntax][1], + ) def test_unknown_version(self) -> None: with self.assertRaises(validate.ConfigError): @@ -173,5 +189,43 @@ def flush(self) -> None: self.assertTrue(any("sum" in chunk for chunk in sink.chunks)) +class FailOnIdCheckTests(unittest.TestCase): + def ids(self, version: str) -> set[str]: + return validate.xslt_rule_ids(validate.load_xslt(ROOT, version)) + + def test_renamed_id_is_refused_with_new_name(self) -> None: + fail_on = validate.parse_fail_on("BR-AF-05,BR-02") + with self.assertRaisesRegex(validate.ConfigError, r"BR-AF-05 \(renamed BR-IP-05 in 1\.3\.17\)"): + validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") + + def test_removed_id_is_refused(self) -> None: + fail_on = validate.parse_fail_on("CII-SR-471") + with self.assertRaisesRegex(validate.ConfigError, r"CII-SR-471 \(removed in 1\.3\.17\)"): + validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") + + def test_typo_is_refused(self) -> None: + fail_on = validate.parse_fail_on("BR-CO-1O") + with self.assertRaisesRegex(validate.ConfigError, "BR-CO-1O"): + validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") + + def test_known_ids_pass_per_version(self) -> None: + validate.check_fail_on_ids(validate.parse_fail_on("BR-IG-05,BR-IP-10"), self.ids("1.3.17"), "1.3.17") + validate.check_fail_on_ids(validate.parse_fail_on("BR-AF-05,CII-SR-471"), self.ids("1.3.16"), "1.3.16") + + def test_modes_without_ids_are_not_checked(self) -> None: + for raw in ("failed-assert", "never"): + validate.check_fail_on_ids(validate.parse_fail_on(raw), set(), "1.3.17") + + def test_rename_table_matches_vendored_xslt(self) -> None: + old, new = self.ids("1.3.16"), self.ids("1.3.17") + for before, after in validate.RENAMED_IN_1_3_17.items(): + self.assertIn(before, old) + self.assertNotIn(before, new) + self.assertIn(after, new) + for removed in validate.REMOVED_IN_1_3_17: + self.assertIn(removed, old) + self.assertNotIn(removed, new) + + if __name__ == "__main__": unittest.main() diff --git a/vendor/en16931-1.3.17/LICENSE.txt b/vendor/en16931-1.3.17/LICENSE.txt new file mode 100644 index 0000000..6881212 --- /dev/null +++ b/vendor/en16931-1.3.17/LICENSE.txt @@ -0,0 +1,194 @@ +==== + Licensed under European Union Public Licence (EUPL) version 1.2. +==== + +EUROPEAN UNION PUBLIC LICENCE v. 1.2 +EUPL © the European Union 2007, 2016 + +This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined below) which is provided under the +terms of this Licence. Any use of the Work, other than as authorised under this Licence is prohibited (to the extent such +use is covered by a right of the copyright holder of the Work). +The Work is provided under the terms of this Licence when the Licensor (as defined below) has placed the following +notice immediately following the copyright notice for the Work: + Licensed under the EUPL +or has expressed by any other means his willingness to license under the EUPL. + +1.Definitions +In this Licence, the following terms have the following meaning: +— ‘The Licence’:this Licence. +— ‘The Original Work’:the work or software distributed or communicated by the Licensor under this Licence, available +as Source Code and also as Executable Code as the case may be. +— ‘Derivative Works’:the works or software that could be created by the Licensee, based upon the Original Work or +modifications thereof. This Licence does not define the extent of modification or dependence on the Original Work +required in order to classify a work as a Derivative Work; this extent is determined by copyright law applicable in +the country mentioned in Article 15. +— ‘The Work’:the Original Work or its Derivative Works. +— ‘The Source Code’:the human-readable form of the Work which is the most convenient for people to study and +modify. +— ‘The Executable Code’:any code which has generally been compiled and which is meant to be interpreted by +a computer as a program. +— ‘The Licensor’:the natural or legal person that distributes or communicates the Work under the Licence. +— ‘Contributor(s)’:any natural or legal person who modifies the Work under the Licence, or otherwise contributes to +the creation of a Derivative Work. +— ‘The Licensee’ or ‘You’:any natural or legal person who makes any usage of the Work under the terms of the +Licence. +— ‘Distribution’ or ‘Communication’:any act of selling, giving, lending, renting, distributing, communicating, +transmitting, or otherwise making available, online or offline, copies of the Work or providing access to its essential +functionalities at the disposal of any other natural or legal person. + +2.Scope of the rights granted by the Licence +The Licensor hereby grants You a worldwide, royalty-free, non-exclusive, sublicensable licence to do the following, for +the duration of copyright vested in the Original Work: +— use the Work in any circumstance and for all usage, +— reproduce the Work, +— modify the Work, and make Derivative Works based upon the Work, +— communicate to the public, including the right to make available or display the Work or copies thereof to the public +and perform publicly, as the case may be, the Work, +— distribute the Work or copies thereof, +— lend and rent the Work or copies thereof, +— sublicense rights in the Work or copies thereof. +Those rights can be exercised on any media, supports and formats, whether now known or later invented, as far as the +applicable law permits so. +In the countries where moral rights apply, the Licensor waives his right to exercise his moral right to the extent allowed +by law in order to make effective the licence of the economic rights here above listed. +The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to any patents held by the Licensor, to the +extent necessary to make use of the rights granted on the Work under this Licence. + +3.Communication of the Source Code +The Licensor may provide the Work either in its Source Code form, or as Executable Code. If the Work is provided as +Executable Code, the Licensor provides in addition a machine-readable copy of the Source Code of the Work along with +each copy of the Work that the Licensor distributes or indicates, in a notice following the copyright notice attached to +the Work, a repository where the Source Code is easily and freely accessible for as long as the Licensor continues to +distribute or communicate the Work. + +4.Limitations on copyright +Nothing in this Licence is intended to deprive the Licensee of the benefits from any exception or limitation to the +exclusive rights of the rights owners in the Work, of the exhaustion of those rights or of other applicable limitations +thereto. + +5.Obligations of the Licensee +The grant of the rights mentioned above is subject to some restrictions and obligations imposed on the Licensee. Those +obligations are the following: + +Attribution right: The Licensee shall keep intact all copyright, patent or trademarks notices and all notices that refer to +the Licence and to the disclaimer of warranties. The Licensee must include a copy of such notices and a copy of the +Licence with every copy of the Work he/she distributes or communicates. The Licensee must cause any Derivative Work +to carry prominent notices stating that the Work has been modified and the date of modification. + +Copyleft clause: If the Licensee distributes or communicates copies of the Original Works or Derivative Works, this +Distribution or Communication will be done under the terms of this Licence or of a later version of this Licence unless +the Original Work is expressly distributed only under this version of the Licence — for example by communicating +‘EUPL v. 1.2 only’. The Licensee (becoming Licensor) cannot offer or impose any additional terms or conditions on the +Work or Derivative Work that alter or restrict the terms of the Licence. + +Compatibility clause: If the Licensee Distributes or Communicates Derivative Works or copies thereof based upon both +the Work and another work licensed under a Compatible Licence, this Distribution or Communication can be done +under the terms of this Compatible Licence. For the sake of this clause, ‘Compatible Licence’ refers to the licences listed +in the appendix attached to this Licence. Should the Licensee's obligations under the Compatible Licence conflict with +his/her obligations under this Licence, the obligations of the Compatible Licence shall prevail. + +Provision of Source Code: When distributing or communicating copies of the Work, the Licensee will provide +a machine-readable copy of the Source Code or indicate a repository where this Source will be easily and freely available +for as long as the Licensee continues to distribute or communicate the Work. +Legal Protection: This Licence does not grant permission to use the trade names, trademarks, service marks, or names +of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and +reproducing the content of the copyright notice. + +6.Chain of Authorship +The original Licensor warrants that the copyright in the Original Work granted hereunder is owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each Contributor warrants that the copyright in the modifications he/she brings to the Work are owned by him/her or +licensed to him/her and that he/she has the power and authority to grant the Licence. +Each time You accept the Licence, the original Licensor and subsequent Contributors grant You a licence to their contributions +to the Work, under the terms of this Licence. + +7.Disclaimer of Warranty +The Work is a work in progress, which is continuously improved by numerous Contributors. It is not a finished work +and may therefore contain defects or ‘bugs’ inherent to this type of development. +For the above reason, the Work is provided under the Licence on an ‘as is’ basis and without warranties of any kind +concerning the Work, including without limitation merchantability, fitness for a particular purpose, absence of defects or +errors, accuracy, non-infringement of intellectual property rights other than copyright as stated in Article 6 of this +Licence. +This disclaimer of warranty is an essential part of the Licence and a condition for the grant of any rights to the Work. + +8.Disclaimer of Liability +Except in the cases of wilful misconduct or damages directly caused to natural persons, the Licensor will in no event be +liable for any direct or indirect, material or moral, damages of any kind, arising out of the Licence or of the use of the +Work, including without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, loss +of data or any commercial damage, even if the Licensor has been advised of the possibility of such damage. However, +the Licensor will be liable under statutory product liability laws as far such laws apply to the Work. + +9.Additional agreements +While distributing the Work, You may choose to conclude an additional agreement, defining obligations or services +consistent with this Licence. However, if accepting obligations, You may act only on your own behalf and on your sole +responsibility, not on behalf of the original Licensor or any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against such Contributor by +the fact You have accepted any warranty or additional liability. + +10.Acceptance of the Licence +The provisions of this Licence can be accepted by clicking on an icon ‘I agree’ placed under the bottom of a window +displaying the text of this Licence or by affirming consent in any other similar way, in accordance with the rules of +applicable law. Clicking on that icon indicates your clear and irrevocable acceptance of this Licence and all of its terms +and conditions. +Similarly, you irrevocably accept this Licence and all of its terms and conditions by exercising any rights granted to You +by Article 2 of this Licence, such as the use of the Work, the creation by You of a Derivative Work or the Distribution +or Communication by You of the Work or copies thereof. + +11.Information to the public +In case of any Distribution or Communication of the Work by means of electronic communication by You (for example, +by offering to download the Work from a remote location) the distribution channel or media (for example, a website) +must at least provide to the public the information requested by the applicable law regarding the Licensor, the Licence +and the way it may be accessible, concluded, stored and reproduced by the Licensee. + +12.Termination of the Licence +The Licence and the rights granted hereunder will terminate automatically upon any breach by the Licensee of the terms +of the Licence. +Such a termination will not terminate the licences of any person who has received the Work from the Licensee under +the Licence, provided such persons remain in full compliance with the Licence. + +13.Miscellaneous +Without prejudice of Article 9 above, the Licence represents the complete agreement between the Parties as to the +Work. +If any provision of the Licence is invalid or unenforceable under applicable law, this will not affect the validity or +enforceability of the Licence as a whole. Such provision will be construed or reformed so as necessary to make it valid +and enforceable. +The European Commission may publish other linguistic versions or new versions of this Licence or updated versions of +the Appendix, so far this is required and reasonable, without reducing the scope of the rights granted by the Licence. +New versions of the Licence will be published with a unique version number. +All linguistic versions of this Licence, approved by the European Commission, have identical value. Parties can take +advantage of the linguistic version of their choice. + +14.Jurisdiction +Without prejudice to specific agreement between parties, +— any litigation resulting from the interpretation of this License, arising between the European Union institutions, +bodies, offices or agencies, as a Licensor, and any Licensee, will be subject to the jurisdiction of the Court of Justice +of the European Union, as laid down in article 272 of the Treaty on the Functioning of the European Union, +— any litigation arising between other parties and resulting from the interpretation of this License, will be subject to +the exclusive jurisdiction of the competent court where the Licensor resides or conducts its primary business. + +15.Applicable Law +Without prejudice to specific agreement between parties, +— this Licence shall be governed by the law of the European Union Member State where the Licensor has his seat, +resides or has his registered office, +— this licence shall be governed by Belgian law if the Licensor has no seat, residence or registered office inside +a European Union Member State. + + + Appendix + +‘Compatible Licences’ according to Article 5 EUPL are: +— GNU General Public License (GPL) v. 2, v. 3 +— GNU Affero General Public License (AGPL) v. 3 +— Open Software License (OSL) v. 2.1, v. 3.0 +— Eclipse Public License (EPL) v. 1.0 +— CeCILL v. 2.0, v. 2.1 +— Mozilla Public Licence (MPL) v. 2 +— GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3 +— Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for works other than software +— European Union Public Licence (EUPL) v. 1.1, v. 1.2 +— Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong Reciprocity (LiLiQ-R+) + +The European Commission may update this Appendix to later versions of the above licences without producing +a new version of the EUPL, as long as they provide the rights granted in Article 2 of this Licence and protect the +covered Source Code from exclusive appropriation. +All other changes or additions to this Appendix require the production of a new EUPL version. diff --git a/vendor/en16931-1.3.17/XSLT.SHA256SUMS b/vendor/en16931-1.3.17/XSLT.SHA256SUMS new file mode 100644 index 0000000..1fbba61 --- /dev/null +++ b/vendor/en16931-1.3.17/XSLT.SHA256SUMS @@ -0,0 +1,2 @@ +0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0 xslt/EN16931-CII-validation.xslt +fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c xslt/EN16931-UBL-validation.xslt diff --git a/vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt b/vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt new file mode 100644 index 0000000..19296d8 --- /dev/null +++ b/vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt @@ -0,0 +1,13071 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + + +   +   +   + + + + + + + + + + + + + EN16931-CII-Model + EN16931-CII-Model + + + + + + + EN16931-CII-Syntax + EN16931-CII-Syntax + + + + + + + EN16931-Codes + EN16931-Codes + + + + + + +EN16931 model bound to CII + + + + + + + + + + + + + + BR-65 + fatal + + + + [BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier. + + + + + + + + + + + + + + + + BR-52 + fatal + + + + [BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122). + + + + + + + + + + + + + + + + BR-51 + fatal + + + + [BR-51]-In accordance with card payments security standards an invoice should never include a full card primary account number (BT-97). At the moment PCI Security Standards Council has defined that the first 6 digits and last 4 digits are the maximum number of digits to be shown. + + + + + + + + + + + + + + + + BR-50 + fatal + + + + [BR-50]-A Payment account identifier (BT-84) shall be present if Credit transfer (BG-16) information is provided in the Invoice. + + + + + + + + + + BR-61 + fatal + + + + [BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present. + + + + + + + + + + + + + + + + BR-57 + fatal + + + + [BR-57]-Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80). + + + + + + + + + + + + + + + + BR-31 + fatal + + + + [BR-31]-Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92). + + + + + + + + + + BR-32 + fatal + + + + [BR-32]-Each Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95). + + + + + + + + + + BR-33 + fatal + + + + [BR-33]-Each Document level allowance (BG-20) shall have a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98). + + + + + + + + + + BR-CO-05 + fatal + + + + [BR-CO-05]-Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance. + + + + + + + + + + BR-CO-21 + fatal + + + + [BR-CO-21]-Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both. + + + + + + + + + + BR-DEC-01 + fatal + + + + [BR-DEC-01]-The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2. + + + + + + + + + + BR-DEC-02 + fatal + + + + [BR-DEC-02]-The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2. + + + + + + + + + + + + + + + + BR-36 + fatal + + + + [BR-36]-Each Document level charge (BG-21) shall have a Document level charge amount (BT-99). + + + + + + + + + + BR-37 + fatal + + + + [BR-37]-Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102). + + + + + + + + + + BR-38 + fatal + + + + [BR-38]-Each Document level charge (BG-21) shall have a Document level charge reason (BT-104) or a Document level charge reason code (BT-105). + + + + + + + + + + BR-CO-06 + fatal + + + + [BR-CO-06]-Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge. + + + + + + + + + + BR-CO-22 + fatal + + + + [BR-CO-22]-Each Document level charge (BG-21) shall contain a Document level charge reason (BT-104) or a Document level charge reason code (BT-105), or both. + + + + + + + + + + BR-DEC-05 + fatal + + + + [BR-DEC-05]-The allowed maximum number of decimals for the Document level charge amount (BT-99) is 2. + + + + + + + + + + BR-DEC-06 + fatal + + + + [BR-DEC-06]-The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2. + + + + + + + + + + + + + + + + BR-12 + fatal + + + + [BR-12]-An Invoice shall have the Sum of Invoice line net amount (BT-106). + + + + + + + + + + BR-13 + fatal + + + + [BR-13]-An Invoice shall have the Invoice total amount without VAT (BT-109). + + + + + + + + + + BR-14 + fatal + + + + [BR-14]-An Invoice shall have the Invoice total amount with VAT (BT-112). + + + + + + + + + + BR-15 + fatal + + + + [BR-15]-An Invoice shall have the Amount due for payment (BT-115). + + + + + + + + + + BR-53 + fatal + + + + [BR-53]-If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided. + + + + + + + + + + BR-CO-10 + fatal + + + + [BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131). + + + + + + + + + + BR-CO-11 + fatal + + + + [BR-CO-11]-Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92). + + + + + + + + + + BR-CO-12 + fatal + + + + [BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99). + + + + + + + + + + BR-CO-13 + fatal + + + + [BR-CO-13]-Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108). + + + + + + + + + + BR-CO-16 + fatal + + + + [BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114). + + + + + + + + + + BR-DEC-09 + fatal + + + + [BR-DEC-09]-The allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) is 2. + + + + + + + + + + BR-DEC-10 + fatal + + + + [BR-DEC-10]-The allowed maximum number of decimals for the Sum of allowanced on document level (BT-107) is 2. + + + + + + + + + + BR-DEC-11 + fatal + + + + [BR-DEC-11]-The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2. + + + + + + + + + + BR-DEC-12 + fatal + + + + [BR-DEC-12]-The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2. + + + + + + + + + + BR-DEC-14 + fatal + + + + [BR-DEC-14]-The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2. + + + + + + + + + + BR-DEC-13 + fatal + + + + [BR-DEC-13]-The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2. + + + + + + + + + + BR-DEC-15 + fatal + + + + [BR-DEC-15]-The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2. + + + + + + + + + + BR-DEC-16 + fatal + + + + [BR-DEC-16]-The allowed maximum number of decimals for the Paid amount (BT-113) is 2. + + + + + + + + + + BR-DEC-17 + fatal + + + + [BR-DEC-17]-The allowed maximum number of decimals for the Rounding amount (BT-114) is 2. + + + + + + + + + + BR-DEC-18 + fatal + + + + [BR-DEC-18]-The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2. + + + + + + + + + + + + + + + + BR-01 + fatal + + + + [BR-01]-An Invoice shall have a Specification identifier (BT-24). + + + + + + + + + + BR-02 + fatal + + + + [BR-02]-An Invoice shall have an Invoice number (BT-1). + + + + + + + + + + BR-03 + fatal + + + + [BR-03]-An Invoice shall have an Invoice issue date (BT-2). + + + + + + + + + + BR-04 + fatal + + + + [BR-04]-An Invoice shall have an Invoice type code (BT-3). + + + + + + + + + + BR-05 + fatal + + + + [BR-05]-An Invoice shall have an Invoice currency code (BT-5). + + + + + + + + + + BR-06 + fatal + + + + [BR-06]-An Invoice shall contain the Seller name (BT-27). + + + + + + + + + + BR-07 + fatal + + + + [BR-07]-An Invoice shall contain the Buyer name (BT-44). + + + + + + + + + + BR-08 + fatal + + + + [BR-08]-An Invoice shall contain the Seller postal address (BG-5). + + + + + + + + + + BR-09 + fatal + + + + [BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40). + + + + + + + + + + BR-10 + fatal + + + + [BR-10]-An Invoice shall contain the Buyer postal address (BG-8). + + + + + + + + + + BR-11 + fatal + + + + [BR-11]-The Buyer postal address shall contain a Buyer country code (BT-55). + + + + + + + + + + BR-16 + fatal + + + + [BR-16]-An Invoice shall have at least one Invoice line (BG-25). + + + + + + + + + + BR-62 + fatal + + + + [BR-62]-The Seller electronic address (BT-34) shall have a Scheme identifier. + + + + + + + + + + BR-63 + fatal + + + + [BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier. + + + + + + + + + + BR-CO-15 + fatal + + + + [BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110). + + + + + + + + + + BR-S-01 + fatal + + + + [BR-S-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Standard rated" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "Standard rated". + + + + + + + + + + BR-Z-01 + fatal + + + + [BR-Z-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Zero rated" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Zero rated". + + + + + + + + + + BR-E-01 + fatal + + + + [BR-E-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Exempt from VAT" shall contain exactly one VAT breakdown (BG-23) with the VAT category code (BT-118) equal to "Exempt from VAT". + + + + + + + + + + BR-AE-01 + fatal + + + + [BR-AE-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Reverse charge" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "VAT reverse charge". + + + + + + + + + + BR-IC-01 + fatal + + + + [BR-IC-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Intra-community supply" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Intra-community supply". + + + + + + + + + + BR-G-01 + fatal + + + + [BR-G-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Export outside the EU" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Export outside the EU". + + + + + + + + + + BR-O-01 + fatal + + + + [BR-O-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Not subject to VAT" shall contain exactly one VAT breakdown group (BG-23) with the VAT category code (BT-118) equal to "Not subject to VAT". + + + + + + + + + + BR-IP-01 + fatal + + + + [BR-IP-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "IGIC" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "IGIC". + + + + + + + + + + BR-IG-01 + fatal + + + + [BR-IG-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "IPSI" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "IPSI". + + + + + + + + + + BR-B-01 + fatal + + + + [BR-B-01]-An Invoice where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment” shall be a domestic Italian invoice. + + + + + + + + + + BR-B-02 + fatal + + + + [BR-B-02]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment" shall not contain an invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is “Standard rated”. + + + + + + + + + + + + + + + + BR-21 + fatal + + + + [BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126). + + + + + + + + + + BR-22 + fatal + + + + [BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129). + + + + + + + + + + BR-23 + fatal + + + + [BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130). + + + + + + + + + + BR-24 + fatal + + + + [BR-24]-Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131). + + + + + + + + + + BR-25 + fatal + + + + [BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153). + + + + + + + + + + BR-26 + fatal + + + + [BR-26]-Each Invoice line (BG-25) shall contain the Item net price (BT-146). + + + + + + + + + + BR-27 + fatal + + + + [BR-27]-The Item net price (BT-146) shall NOT be negative. + + + + + + + + + + BR-28 + fatal + + + + [BR-28]-The Item gross price (BT-148) shall NOT be negative. + + + + + + + + + + BR-64 + fatal + + + + [BR-64]-The Item standard identifier (BT-157) shall have a Scheme identifier. + + + + + + + + + + BR-CO-04 + fatal + + + + [BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151). + + + + + + + + + + BR-CO-18 + fatal + + + + [BR-CO-18]-An Invoice shall at least have one VAT breakdown group (BG-23). + + + + + + + + + + BR-DEC-23 + fatal + + + + [BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. + + + + + + + + + + + + + + + + BR-41 + fatal + + + + [BR-41]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136). + + + + + + + + + + BR-42 + fatal + + + + [BR-42]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140). + + + + + + + + + + BR-CO-07 + fatal + + + + [BR-CO-07]-Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason. + + + + + + + + + + BR-CO-23 + fatal + + + + [BR-CO-23]-Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both. + + + + + + + + + + BR-DEC-24 + fatal + + + + [BR-DEC-24]-The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2. + + + + + + + + + + BR-DEC-25 + fatal + + + + [BR-DEC-25]-The allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2. + + + + + + + + + + + + + + + + BR-43 + fatal + + + + [BR-43]-Each Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141). + + + + + + + + + + BR-44 + fatal + + + + [BR-44]-Each Invoice line charge (BG-28) shall have an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145). + + + + + + + + + + BR-CO-08 + fatal + + + + [BR-CO-08]-Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason. + + + + + + + + + + BR-CO-24 + fatal + + + + [BR-CO-24]-Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both. + + + + + + + + + + BR-DEC-27 + fatal + + + + [BR-DEC-27]-The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2. + + + + + + + + + + BR-DEC-28 + fatal + + + + [BR-DEC-28]-The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2. + + + + + + + + + + + + + + + + BR-30 + fatal + + + + [BR-30]-If both Invoice line period start date (BT-134) and Invoice line period end date (BT-135) are given then the Invoice line period end date (BT-135) shall be later or equal to the Invoice line period start date (BT-134). + + + + + + + + + + BR-CO-20 + fatal + + + + [BR-CO-20]-If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both. + + + + + + + + + + + + + + + + BR-29 + fatal + + + + [BR-29]-If both Invoicing period start date (BT-73) and Invoicing period end date (BT-74) are given then the Invoicing period end date (BT-74) shall be later or equal to the Invoicing period start date (BT-73). + + + + + + + + + + BR-CO-19 + fatal + + + + [BR-CO-19]-If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both. + + + + + + + + + + + + + + + + BR-54 + fatal + + + + [BR-54]-Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161). + + + + + + + + + + + + + + + + BR-17 + fatal + + + + [BR-17]-The Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4). + + + + + + + + + + + + + + + + BR-49 + fatal + + + + [BR-49]-A Payment instruction (BG-16) shall specify the Payment means type code (BT-81). + + + + + + + + + + + + + + + + BR-55 + fatal + + + + [BR-55]-Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25). + + + + + + + + + + + + + + + + BR-CO-26 + fatal + + + + [BR-CO-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present. + + + + + + + + + + + + + + + + BR-18 + fatal + + + + [BR-18]-The Seller tax representative name (BT-62) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11). + + + + + + + + + + BR-19 + fatal + + + + [BR-19]-The Seller tax representative postal address (BG-12) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11). + + + + + + + + + + BR-20 + fatal + + + + [BR-20]-The Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69), if the Seller (BG-4) has a Seller tax representative party (BG-11). + + + + + + + + + + BR-56 + fatal + + + + [BR-56]-Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63). + + + + + + + + + + + + + + + + BR-CO-14 + fatal + + + + [BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117). + + + + + + + + + + + + + + + + BR-CO-09 + fatal + + + + [BR-CO-09]-The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’. + + + + + + + + + + + + + + + + BR-AE-08 + fatal + + + + [BR-AE-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Reverse charge". + + + + + + + + + + BR-AE-09 + fatal + + + + [BR-AE-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" shall be 0 (zero). + + + + + + + + + + BR-AE-10 + fatal + + + + [BR-AE-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Reverse charge" shall have a VAT exemption reason code (BT-121), meaning "Reverse charge" or the VAT exemption reason text (BT-120) "Reverse charge" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-AE-03 + fatal + + + + [BR-AE-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-AE-06 + fatal + + + + [BR-AE-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-AE-04 + fatal + + + + [BR-AE-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-AE-07 + fatal + + + + [BR-AE-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-AE-02 + fatal + + + + [BR-AE-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-AE-05 + fatal + + + + [BR-AE-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IP-08 + fatal + + + + [BR-IP-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IGIC", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IGIC" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-IP-09 + fatal + + + + [BR-IP-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IGIC" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-IP-10 + fatal + + + + [BR-IP-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "IGIC" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-IP-02 + fatal + + + + [BR-IP-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-05 + fatal + + + + [BR-IP-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" the invoiced item VAT rate (BT-152) shall be greater than 0 (zero). + + + + + + + + + + + + + + + + BR-IP-03 + fatal + + + + [BR-IP-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-06 + fatal + + + + [BR-IP-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IP-04 + fatal + + + + [BR-IP-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-07 + fatal + + + + [BR-IP-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IG-08 + fatal + + + + [BR-IG-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IPSI", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IPSI" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-IG-09 + fatal + + + + [BR-IG-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IPSI" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-IG-10 + fatal + + + + [BR-IG-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "IPSI" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-IG-02 + fatal + + + + [BR-IG-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IG-05 + fatal + + + + [BR-IG-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" the Invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IG-03 + fatal + + + + [BR-IG-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IG-06 + fatal + + + + [BR-IG-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IG-04 + fatal + + + + [BR-IG-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IG-07 + fatal + + + + [BR-IG-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-E-08 + fatal + + + + [BR-E-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Exempt from VAT" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Exempt from VAT". + + + + + + + + + + BR-E-09 + fatal + + + + [BR-E-09]-The VAT category tax amount (BT-117) In a VAT breakdown (BG-23) where the VAT category code (BT-118) equals "Exempt from VAT" shall equal 0 (zero). + + + + + + + + + + BR-E-10 + fatal + + + + [BR-E-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Exempt from VAT" shall have a VAT exemption reason code (BT-121) or a VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-E-03 + fatal + + + + [BR-E-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-E-06 + fatal + + + + [BR-E-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT", the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-E-04 + fatal + + + + [BR-E-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-E-07 + fatal + + + + [BR-E-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT", the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-E-02 + fatal + + + + [BR-E-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-E-05 + fatal + + + + [BR-E-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT", the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-08 + fatal + + + + [BR-G-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Export outside the EU". + + + + + + + + + + BR-G-09 + fatal + + + + [BR-G-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" shall be 0 (zero). + + + + + + + + + + BR-G-10 + fatal + + + + [BR-G-10]-A VAT Breakdown (BG-23) with the VAT Category code (BT-118) "Export outside the EU" shall have a VAT exemption reason code (BT-121), meaning "Export outside the EU" or the VAT exemption reason text (BT-120) "Export outside the EU" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-G-03 + fatal + + + + [BR-G-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-06 + fatal + + + + [BR-G-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-04 + fatal + + + + [BR-G-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-07 + fatal + + + + [BR-G-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-02 + fatal + + + + [BR-G-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-05 + fatal + + + + [BR-G-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-08 + fatal + + + + [BR-IC-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Intra-community supply". + + + + + + + + + + BR-IC-09 + fatal + + + + [BR-IC-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" shall be 0 (zero). + + + + + + + + + + BR-IC-10 + fatal + + + + [BR-IC-10]-A VAT Breakdown (BG-23) with the VAT Category code (BT-118) "Intra-community supply" shall have a VAT exemption reason code (BT-121), meaning "Intra-community supply" or the VAT exemption reason text (BT-120) "Intra-community supply" (or the equivalent standard text in another language). + + + + + + + + + + BR-IC-11 + fatal + + + + [BR-IC-11]-In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank. + + + + + + + + + + BR-IC-12 + fatal + + + + [BR-IC-12]-In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be blank. + + + + + + + + + + + + + + + + BR-IC-03 + fatal + + + + [BR-IC-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-06 + fatal + + + + [BR-IC-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-04 + fatal + + + + [BR-IC-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-07 + fatal + + + + [BR-IC-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-02 + fatal + + + + [BR-IC-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-05 + fatal + + + + [BR-IC-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intracommunity supply" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-O-08 + fatal + + + + [BR-O-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is " Not subject to VAT" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Not subject to VAT". + + + + + + + + + + BR-O-09 + fatal + + + + [BR-O-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" shall be 0 (zero). + + + + + + + + + + BR-O-10 + fatal + + + + [BR-O-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) " Not subject to VAT" shall have a VAT exemption reason code (BT-121), meaning " Not subject to VAT" or a VAT exemption reason text (BT-120) " Not subject to VAT" (or the equivalent standard text in another language). + + + + + + + + + + BR-O-11 + fatal + + + + [BR-O-11]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain other VAT breakdown groups (BG-23). + + + + + + + + + + BR-O-12 + fatal + + + + [BR-O-12]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is not "Not subject to VAT". + + + + + + + + + + BR-O-13 + fatal + + + + [BR-O-13]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level allowances (BG-20) where Document level allowance VAT category code (BT-95) is not "Not subject to VAT". + + + + + + + + + + BR-O-14 + fatal + + + + [BR-O-14]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level charges (BG-21) where Document level charge VAT category code (BT-102) is not "Not subject to VAT". + + + + + + + + + + + + + + + + BR-O-03 + fatal + + + + [BR-O-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-06 + fatal + + + + [BR-O-06]-A Document level allowance (BG-20) where VAT category code (BT-95) is "Not subject to VAT" shall not contain a Document level allowance VAT rate (BT-96). + + + + + + + + + + + + + + + + BR-O-04 + fatal + + + + [BR-O-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-07 + fatal + + + + [BR-O-07]-A Document level charge (BG-21) where the VAT category code (BT-102) is "Not subject to VAT" shall not contain a Document level charge VAT rate (BT-103). + + + + + + + + + + + + + + + + BR-O-02 + fatal + + + + [BR-O-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-05 + fatal + + + + [BR-O-05]-An Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT" shall not contain an Invoiced item VAT rate (BT-152). + + + + + + + + + + + + + + + + BR-S-08 + fatal + + + + [BR-S-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "Standard rated", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "Standard rated" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-S-09 + fatal + + + + [BR-S-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Standard rated" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-S-10 + fatal + + + + [BR-S-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-S-02 + fatal + + + + [BR-S-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-S-05 + fatal + + + + [BR-S-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" the Invoiced item VAT rate (BT-152) shall be greater than zero. + + + + + + + + + + + + + + + + BR-S-03 + fatal + + + + [BR-S-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-S-06 + fatal + + + + [BR-S-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate (BT-96) shall be greater than zero. + + + + + + + + + + + + + + + + BR-S-04 + fatal + + + + [BR-S-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-S-07 + fatal + + + + [BR-S-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" the Document level charge VAT rate (BT-103) shall be greater than zero. + + + + + + + + + + + + + + + + BR-Z-08 + fatal + + + + [BR-Z-08]-In a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amount (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Zero rated". + + + + + + + + + + BR-Z-09 + fatal + + + + [BR-Z-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" shall equal 0 (zero). + + + + + + + + + + BR-Z-10 + fatal + + + + [BR-Z-10]-A VAT Breakdown (BG-23) with VAT Category code (BT-118) "Zero rated" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-Z-03 + fatal + + + + [BR-Z-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-06 + fatal + + + + [BR-Z-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-Z-04 + fatal + + + + [BR-Z-04]-An Invoice that contains a Document level charge where the Document level charge VAT category code (BT-102) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-07 + fatal + + + + [BR-Z-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Zero rated" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-Z-02 + fatal + + + + [BR-Z-02]-An Invoice that contains an Invoice line where the Invoiced item VAT category code (BT-151) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-05 + fatal + + + + [BR-Z-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Zero rated" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-45 + fatal + + + + [BR-45]-Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116). + + + + + + + + + + BR-46 + fatal + + + + [BR-46]-Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117). + + + + + + + + + + BR-47 + fatal + + + + [BR-47]-Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118). + + + + + + + + + + BR-48 + fatal + + + + [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 + fatal + + + + [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 + fatal + + + + [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 + fatal + + + + [BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2. + + + + + + + + + + BR-DEC-20 + fatal + + + + [BR-DEC-20]-The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2. + + + + + + + + + + + + + + + + + + + + + + + CII-SR-464 + warning + + + + [CII-SR-464] - PayerSpecifiedDebtorFincancialInstitution should not be used. + + + + + + + + + + + + + + + + CII-SR-001 + warning + + + + [CII-SR-001] - SpecifiedTransactionID should not be present + + + + + + + + + + CII-SR-002 + warning + + + + [CII-SR-002] - TestIndicator should not be present + + + + + + + + + + CII-SR-003 + warning + + + + [CII-SR-003] - BusinessProcessSpecifiedDocumentContextParameter should exist maximum once + + + + + + + + + + CII-SR-006 + warning + + + + [CII-SR-006] - BIMSpecifiedDocumentContextParameter should not be present + + + + + + + + + + CII-SR-007 + warning + + + + [CII-SR-007] - ScenarioSpecifiedDocumentContextParameter should not be present + + + + + + + + + + CII-SR-008 + warning + + + + [CII-SR-008] - ApplicationSpecifiedDocumentContextParameter should not be present + + + + + + + + + + CII-SR-009 + fatal + + + + [CII-SR-009] - GuidelineSpecifiedDocumentContextParameter must exist exactly once + + + + + + + + + + CII-SR-010 + fatal + + + + [CII-SR-010] - ID must exist exactly once + + + + + + + + + + CII-SR-011 + warning + + + + [CII-SR-011] - SubsetSpecifiedDocumentContextParameter should not be present + + + + + + + + + + CII-SR-012 + warning + + + + [CII-SR-012] - MessageStandardSpecifiedDocumentContextParameter should not be present + + + + + + + + + + + + + + + + CII-SR-013 + warning + + + + [CII-SR-013] - Name should not be present + + + + + + + + + + CII-SR-014 + fatal + + + + [CII-SR-014] - TypeCode must exist exactly once + + + + + + + + + + CII-SR-015 + warning + + + + [CII-SR-015] - DateTime should not be present + + + + + + + + + + CII-SR-016 + warning + + + + [CII-SR-016] - CopyIndicator should not be present + + + + + + + + + + CII-SR-017 + warning + + + + [CII-SR-017] - Purpose should not be present + + + + + + + + + + CII-SR-018 + warning + + + + [CII-SR-018] - ControlRequirementIndicator should not be present + + + + + + + + + + CII-SR-019 + warning + + + + [CII-SR-019] - LanguageID should not be present + + + + + + + + + + CII-SR-020 + warning + + + + [CII-SR-020] - PurposeCode should not be present + + + + + + + + + + CII-SR-021 + warning + + + + [CII-SR-021] - RevisionDateTime should not be present + + + + + + + + + + CII-SR-022 + warning + + + + [CII-SR-022] - VersionID should not be present + + + + + + + + + + CII-SR-023 + warning + + + + [CII-SR-023] - GlobalID should not be present + + + + + + + + + + CII-SR-024 + warning + + + + [CII-SR-024] - RevisionID should not be present + + + + + + + + + + CII-SR-025 + warning + + + + [CII-SR-025] - PreviousRevisionID should not be present + + + + + + + + + + CII-SR-026 + warning + + + + [CII-SR-026] - CategoryCode should not be present + + + + + + + + + + CII-SR-027 + warning + + + + [CII-SR-027] - Subject should not be present + + + + + + + + + + CII-SR-028 + warning + + + + [CII-SR-028] - ContentCode should not be present + + + + + + + + + + CII-SR-032 + warning + + + + [CII-SR-032] - ID should not be present + + + + + + + + + + CII-SR-033 + warning + + + + [CII-SR-033] - EffectiveSpecifiedPeriod should not be present + + + + + + + + + + CII-SR-034 + warning + + + + [CII-SR-034] - IssuerTradeParty should not be present + + + + + + + + + + + + + + + + CII-SR-030 + warning + + + + [CII-SR-030] - Content should exist maximum once + + + + + + + + + + + + + + + + CII-SR-035 + warning + + + + [CII-SR-035] - DescriptionCode should not be present + + + + + + + + + + CII-SR-036 + warning + + + + [CII-SR-036] - ParentLineID should not be present + + + + + + + + + + CII-SR-037 + warning + + + + [CII-SR-037] - LineStatusCode should not be present + + + + + + + + + + CII-SR-038 + warning + + + + [CII-SR-038] - LineStatusReasonCode should not be present + + + + + + + + + + CII-SR-221 + warning + + + + [CII-SR-221] - IncludedSubordinateTradeLineItem should not be present + + + + + + + + + + + + + + + + CII-SR-039 + warning + + + + [CII-SR-039] - IncludedNote should exist maximum once + + + + + + + + + + CII-SR-040 + warning + + + + [CII-SR-040] - Content should exist maximum once + + + + + + + + + + CII-SR-041 + warning + + + + [CII-SR-041] - SubjectCode should not be present + + + + + + + + + + CII-SR-042 + warning + + + + [CII-SR-042] - ID should not be present + + + + + + + + + + CII-SR-043 + warning + + + + [CII-SR-043] - CategoryCode should not be present + + + + + + + + + + CII-SR-044 + warning + + + + [CII-SR-044] - Subject should not be present + + + + + + + + + + + + + + + + CII-SR-045 + warning + + + + [CII-SR-045] - ID should not be present + + + + + + + + + + CII-SR-046 + fatal + + + + [CII-SR-046] - schemeID must be present if GlobalID is present + + + + + + + + + + CII-SR-048 + warning + + + + [CII-SR-048] - ManufacturerAssignedID should not be present + + + + + + + + + + CII-SR-049 + warning + + + + [CII-SR-049] - TradeName should not be present + + + + + + + + + + CII-SR-050 + warning + + + + [CII-SR-050] - TypeCode should not be present + + + + + + + + + + CII-SR-051 + warning + + + + [CII-SR-051] - NetWeightMeasure should not be present + + + + + + + + + + CII-SR-052 + warning + + + + [CII-SR-052] - GrossWeightMeasure should not be present + + + + + + + + + + CII-SR-053 + warning + + + + [CII-SR-053] - ProductGroupID should not be present + + + + + + + + + + CII-SR-054 + warning + + + + [CII-SR-054] - EndItemTypeCode should not be present + + + + + + + + + + CII-SR-055 + warning + + + + [CII-SR-055] - EndItemName should not be present + + + + + + + + + + CII-SR-056 + warning + + + + [CII-SR-056] - AreaDensityMeasure should not be present + + + + + + + + + + CII-SR-057 + warning + + + + [CII-SR-057] - UseDescription should not be present + + + + + + + + + + CII-SR-058 + warning + + + + [CII-SR-058] - BrandName should not be present + + + + + + + + + + CII-SR-059 + warning + + + + [CII-SR-059] - SubBrandName should not be present + + + + + + + + + + CII-SR-060 + warning + + + + [CII-SR-060] - DrainedNetWeightMeasure should not be present + + + + + + + + + + CII-SR-061 + warning + + + + [CII-SR-061] - VariableMeasureIndicator should not be present + + + + + + + + + + CII-SR-062 + warning + + + + [CII-SR-062] - ColourCode should not be present + + + + + + + + + + CII-SR-063 + warning + + + + [CII-SR-063] - ColourDescription should not be present + + + + + + + + + + CII-SR-064 + warning + + + + [CII-SR-064] - Designation should not be present + + + + + + + + + + CII-SR-065 + warning + + + + [CII-SR-065] - FormattedCancellationAnnouncedLaunchDateTime should not be present + + + + + + + + + + CII-SR-066 + warning + + + + [CII-SR-066] - FormattedLatestProductDataChangeDateTime should not be present + + + + + + + + + + CII-SR-067 + warning + + + + [CII-SR-067] - ID should not be present + + + + + + + + + + CII-SR-068 + warning + + + + [CII-SR-068] - TypeCode should not be present + + + + + + + + + + CII-SR-070 + warning + + + + [CII-SR-070] - ValueMeasure should not be present + + + + + + + + + + CII-SR-071 + warning + + + + [CII-SR-071] - MeasurementMethodCode should not be present + + + + + + + + + + CII-SR-073 + warning + + + + [CII-SR-073] - ValueCode should not be present + + + + + + + + + + CII-SR-074 + warning + + + + [CII-SR-074] - ValueDateTime should not be present + + + + + + + + + + CII-SR-075 + warning + + + + [CII-SR-075] - ValueIndicator should not be present + + + + + + + + + + CII-SR-076 + warning + + + + [CII-SR-076] - ContentTypeCode should not be present + + + + + + + + + + CII-SR-077 + warning + + + + [CII-SR-077] - ValueSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-078 + warning + + + + [CII-SR-078] - ApplicableProductCharacteristicCondition should not be present + + + + + + + + + + CII-SR-079 + warning + + + + [CII-SR-079] - ApplicableReferencedStandard should not be present + + + + + + + + + + CII-SR-080 + warning + + + + [CII-SR-080] - ApplicableMaterialGoodsCharacteristic should not be present + + + + + + + + + + CII-SR-081 + warning + + + + [CII-SR-081] - SystemID should not be present + + + + + + + + + + CII-SR-082 + warning + + + + [CII-SR-082] - SystemName should not be present + + + + + + + + + + CII-SR-083 + warning + + + + [CII-SR-083] - ClassName should not be present + + + + + + + + + + CII-SR-084 + warning + + + + [CII-SR-084] - SubClassCode should not be present + + + + + + + + + + CII-SR-085 + warning + + + + [CII-SR-085] - ClassProductCharacteristic should not be present + + + + + + + + + + CII-SR-086 + warning + + + + [CII-SR-086] - ApplicableReferencedStandard should not be present + + + + + + + + + + CII-SR-087 + warning + + + + [CII-SR-087] - IndividualTradeProductInstance should not be present + + + + + + + + + + CII-SR-088 + warning + + + + [CII-SR-088] - CertificationEvidenceReferenceReferencedDocument should not be present + + + + + + + + + + CII-SR-089 + warning + + + + [CII-SR-089] - InspectionReferenceReferencedDocument should not be present + + + + + + + + + + CII-SR-090 + fatal + + + + [CII-SR-090] - ID should exist maximum once. + + + + + + + + + + CII-SR-091 + warning + + + + [CII-SR-091] - Name should not be present + + + + + + + + + + CII-SR-092 + warning + + + + [CII-SR-092] - SubordinateTradeCountrySubDivision should not be present + + + + + + + + + + CII-SR-093 + warning + + + + [CII-SR-093] - LinearSpatialDimension should not be present + + + + + + + + + + CII-SR-094 + warning + + + + [CII-SR-094] - MinimumLinearSpatialDimension should not be present + + + + + + + + + + CII-SR-095 + warning + + + + [CII-SR-095] - MaximumLinearSpatialDimension should not be present + + + + + + + + + + CII-SR-096 + warning + + + + [CII-SR-096] - ManufacturerTradeParty should not be present + + + + + + + + + + CII-SR-097 + warning + + + + [CII-SR-097] - PresentationSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-098 + warning + + + + [CII-SR-098] - MSDSReferenceReferencedDocument should not be present + + + + + + + + + + CII-SR-099 + warning + + + + [CII-SR-099] - AdditionalReferenceReferencedDocument should not be present + + + + + + + + + + CII-SR-100 + warning + + + + [CII-SR-100] - LegalRightsOwnerTradeParty should not be present + + + + + + + + + + CII-SR-101 + warning + + + + [CII-SR-101] -BrandOwnerTradeParty should not be present + + + + + + + + + + CII-SR-102 + warning + + + + [CII-SR-102] -IncludedReferencedProduct should not be present + + + + + + + + + + CII-SR-103 + warning + + + + [CII-SR-103] - InformationNoteshould not be present + + + + + + + + + + + + + + + + CII-SR-069 + fatal + + + + [CII-SR-069] - Description should exist maximum once. + + + + + + + + + + CII-SR-072 + fatal + + + + [CII-SR-072] - Value should exist maximum once. + + + + + + + + + + + + + + + + CII-SR-104 + warning + + + + [CII-SR-104] - BuyerReference should not be present + + + + + + + + + + CII-SR-105 + warning + + + + [CII-SR-105] - BuyerRequisitionerTradeParty should not be present + + + + + + + + + + CII-SR-106 + warning + + + + [CII-SR-106] - ApplicableTradeDeliveryTerms should not be present + + + + + + + + + + CII-SR-107 + warning + + + + [CII-SR-107] - SellerOrderReferencedDocument should not be present + + + + + + + + + + CII-SR-108 + warning + + + + [CII-SR-108] - IssuerAssignedID should not be present + + + + + + + + + + CII-SR-109 + warning + + + + [CII-SR-109] - QuotationReferencedDocument should not be present + + + + + + + + + + CII-SR-110 + warning + + + + [CII-SR-110] - ContractReferencedDocument should not be present + + + + + + + + + + CII-SR-111 + warning + + + + [CII-SR-111] - DemandForecastReferencedDocument should not be present + + + + + + + + + + CII-SR-112 + warning + + + + [CII-SR-112] - PromotionalDealReferencedDocument should not be present + + + + + + + + + + CII-SR-113 + warning + + + + [CII-SR-113] - AdditionalReferencedDocument should not be present + + + + + + + + + + CII-SR-114 + warning + + + + [CII-SR-114] - TypeCode should not be present + + + + + + + + + + CII-SR-115 + warning + + + + [CII-SR-115] - MinimumQuantity should not be present + + + + + + + + + + CII-SR-116 + warning + + + + [CII-SR-116] - MaximumQuantity should not be present + + + + + + + + + + CII-SR-117 + warning + + + + [CII-SR-117] - ChangeReason should not be present + + + + + + + + + + CII-SR-118 + warning + + + + [CII-SR-118] - OrderUnitConversionFactorNumeric should not be present + + + + + + + + + + CII-SR-439 + fatal + + + + [CII-SR-439] - ChargeAmount should exist maximum once + + + + + + + + + + CII-SR-119 + warning + + + + [CII-SR-119] - Only allowances on price a price should be present + + + + + + + + + + CII-SR-120 + warning + + + + [CII-SR-120] - ID should not be present + + + + + + + + + + CII-SR-121 + warning + + + + [CII-SR-121] - SequenceNumeric should not be present + + + + + + + + + + CII-SR-122 + warning + + + + [CII-SR-122] - CalculationPercent should not be present + + + + + + + + + + CII-SR-123 + warning + + + + [CII-SR-123] - BasisAmount should not be present + + + + + + + + + + CII-SR-124 + warning + + + + [CII-SR-124] - BasisQuantity should not be present + + + + + + + + + + CII-SR-125 + warning + + + + [CII-SR-125] - PrepaidIndicator should not be present + + + + + + + + + + CII-SR-126 + warning + + + + [CII-SR-126] - UnitBasisAmount should not be present + + + + + + + + + + CII-SR-127 + warning + + + + [CII-SR-127] - ReasonCode should not be present + + + + + + + + + + CII-SR-128 + warning + + + + [CII-SR-128] - Reason should not be present + + + + + + + + + + CII-SR-129 + warning + + + + [CII-SR-129] - TypeCode should not be present + + + + + + + + + + CII-SR-130 + warning + + + + [CII-SR-130] - CategoryTradeTax should not be present + + + + + + + + + + CII-SR-131 + warning + + + + [CII-SR-131] - ActualTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-445 + warning + + + + [CII-SR-445] - IncludedTradeTax should not be present + + + + + + + + + + CII-SR-132 + warning + + + + [CII-SR-132] - ValiditySpecifiedPeriod should not be present + + + + + + + + + + CII-SR-133 + warning + + + + [CII-SR-133] - DeliveryTradeLocation should not be present + + + + + + + + + + CII-SR-134 + warning + + + + [CII-SR-134] - TradeComparisonReferencePrice should not be present + + + + + + + + + + CII-SR-135 + warning + + + + [CII-SR-135] - AssociatedReferencedDocument should not be present + + + + + + + + + + CII-SR-136 + warning + + + + [CII-SR-136] - TypeCode should not be present + + + + + + + + + + CII-SR-138 + warning + + + + [CII-SR-138] - MinimumQuantity should not be present + + + + + + + + + + CII-SR-139 + warning + + + + [CII-SR-139] - MaximumQuantity should not be present + + + + + + + + + + CII-SR-140 + warning + + + + [CII-SR-140] - ChangeReason should not be present + + + + + + + + + + CII-SR-141 + warning + + + + [CII-SR-141] - OrderUnitConversionFactorNumeric should not be present + + + + + + + + + + CII-SR-142 + warning + + + + [CII-SR-142] - AppliedTradeAllowanceCharge should not be present + + + + + + + + + + CII-SR-446 + warning + + + + [CII-SR-446] - IncludedTradeTax should not be present + + + + + + + + + + CII-SR-143 + warning + + + + [CII-SR-143] - ValiditySpecifiedPeriod should not be present + + + + + + + + + + CII-SR-144 + warning + + + + [CII-SR-144] - DeliveryTradeLocation should not be present + + + + + + + + + + CII-SR-145 + warning + + + + [CII-SR-145] - TradeComparisonReferencePrice should not be present + + + + + + + + + + CII-SR-146 + warning + + + + [CII-SR-146] - AssociatedReferencedDocument should not be present + + + + + + + + + + CII-SR-441 + fatal + + + + [CII-SR-441] - ChargeAmount should exist maximum once + + + + + + + + + + CII-SR-147 + warning + + + + [CII-SR-147] - RequisitionerReferencedDocument should not be present + + + + + + + + + + CII-SR-148 + warning + + + + [CII-SR-148] - ItemSellerTradeParty should not be present + + + + + + + + + + CII-SR-149 + warning + + + + [CII-SR-149] - ItemBuyerTradeParty should not be present + + + + + + + + + + CII-SR-150 + warning + + + + [CII-SR-150] - IncludedSpecifiedMarketplace should not be present + + + + + + + + + + CII-SR-447 + warning + + + + [CII-SR-447] - UltimateCustomerOrderReferencedDocument should not be present + + + + + + + + + + + + + + + + CII-SR-463 + fatal + + + + [CII-SR-463]-Each Specified Trade Allowance Charge (BG-20)(BG-21) shall contain a Charge Indicator. + + + + + + + + + + CII-SR-472 + fatal + + + + [CII-SR-472] - CategoryTradeTax shall occur at most once in a Specified Trade Allowance Charge. + + + + + + + + + + CII-SR-473 + fatal + + + + [CII-SR-473] - ActualAmount should exist maximum once + + + + + + + + + + + + + + + + CII-SR-440 + fatal + + + + [CII-SR-440] - ActualAmount should exist maximum once + + + + + + + + + + + + + + + + CII-SR-475 + warning + + + + [CII-SR-475] - Only one AdditionalReferencedDocument Name BT-123 is allowed with TypeCode 916. + + + + + + + + + + CII-SR-476 + warning + + + + [CII-SR-476] - Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916. + + + + + + + + + + + + + + + + CII-SR-151 + warning + + + + [CII-SR-151] - RequestedQuantity should not be present + + + + + + + + + + CII-SR-152 + warning + + + + [CII-SR-152] - ReceivedQuantity should not be present + + + + + + + + + + CII-SR-153 + warning + + + + [CII-SR-153] - ChargeFreeQuantity should not be present + + + + + + + + + + CII-SR-154 + warning + + + + [CII-SR-154] - PackageQuantity should not be present + + + + + + + + + + CII-SR-155 + warning + + + + [CII-SR-155] - ProductUnitQuantity should not be present + + + + + + + + + + CII-SR-156 + warning + + + + [CII-SR-156] - PerPackageUnitQuantity should not be present + + + + + + + + + + CII-SR-157 + warning + + + + [CII-SR-157] - NetWeightMeasure should not be present + + + + + + + + + + CII-SR-158 + warning + + + + [CII-SR-158] - GrossWeightMeasure should not be present + + + + + + + + + + CII-SR-159 + warning + + + + [CII-SR-159] - TheoreticalWeightMeasure should not be present + + + + + + + + + + CII-SR-160 + warning + + + + [CII-SR-160] - DespatchedQuantity should not be present + + + + + + + + + + CII-SR-161 + warning + + + + [CII-SR-161] - SpecifiedDeliveryAdjustment should not be present + + + + + + + + + + CII-SR-162 + warning + + + + [CII-SR-162] - IncludedSupplyChainPackaging should not be present + + + + + + + + + + CII-SR-163 + warning + + + + [CII-SR-163] - RelatedSupplyChainConsignment should not be present + + + + + + + + + + CII-SR-164 + warning + + + + [CII-SR-164] - ShipToTradeParty should not be present + + + + + + + + + + CII-SR-165 + warning + + + + [CII-SR-165] - UltimateShipToTradeParty should not be present + + + + + + + + + + CII-SR-166 + warning + + + + [CII-SR-166] - ShipFromTradeParty should not be present + + + + + + + + + + CII-SR-167 + warning + + + + [CII-SR-167] - ActualDespatchSupplyChainEvent should not be present + + + + + + + + + + CII-SR-168 + warning + + + + [CII-SR-168] - ActualPickUpSupplyChainEvent should not be present + + + + + + + + + + CII-SR-169 + warning + + + + [CII-SR-169] - RequestedDeliverySupplyChainEvent should not be present + + + + + + + + + + CII-SR-170 + warning + + + + [CII-SR-170] - ActualDeliverySupplyChainEvent should not be present + + + + + + + + + + CII-SR-171 + warning + + + + [CII-SR-171] - ActualReceiptSupplyChainEvent should not be present + + + + + + + + + + CII-SR-172 + warning + + + + [CII-SR-172] - AdditionalReferencedDocument should not be present + + + + + + + + + + CII-SR-173 + warning + + + + [CII-SR-173] - DespatchAdviceReferencedDocument should not be present + + + + + + + + + + CII-SR-174 + warning + + + + [CII-SR-174] - ReceivingAdviceReferencedDocument should not be present + + + + + + + + + + CII-SR-175 + warning + + + + [CII-SR-175] - DeliveryNoteReferencedDocument should not be present + + + + + + + + + + CII-SR-176 + warning + + + + [CII-SR-176] - ConsumptionReportReferencedDocument should not be present + + + + + + + + + + CII-SR-177 + warning + + + + [CII-SR-177] - RequestedQuantity should not be present + + + + + + + + + + + + + + + + CII-SR-178 + warning + + + + [CII-SR-178] - PaymentReference should not be present + + + + + + + + + + CII-SR-179 + warning + + + + [CII-SR-179] - InvoiceIssuerReference should not be present + + + + + + + + + + CII-SR-180 + warning + + + + [CII-SR-180] - TotalAdjustmentAmount should not be present + + + + + + + + + + CII-SR-181 + warning + + + + [CII-SR-181] - DiscountIndicator should not be present + + + + + + + + + + CII-SR-182 + warning + + + + [CII-SR-182] - CalculatedAmount should not be present + + + + + + + + + + CII-SR-183 + warning + + + + [CII-SR-183] - IndicatorString should not be present + + + + + + + + + + CII-SR-184 + warning + + + + [CII-SR-184] - ID should not be present + + + + + + + + + + CII-SR-185 + warning + + + + [CII-SR-185] - SequenceNumeric should not be present + + + + + + + + + + CII-SR-186 + warning + + + + [CII-SR-186] - @format should not be present + + + + + + + + + + CII-SR-187 + warning + + + + [CII-SR-187] - BasisQuantity should not be present + + + + + + + + + + CII-SR-188 + warning + + + + [CII-SR-188] - PrepaidIndicator should not be present + + + + + + + + + + CII-SR-189 + warning + + + + [CII-SR-189] - UnitBasisAmount should not be present + + + + + + + + + + CII-SR-190 + warning + + + + [CII-SR-190] - TypeCode should not be present + + + + + + + + + + CII-SR-191 + warning + + + + [CII-SR-191] - CategoryTradeTax should not be present + + + + + + + + + + CII-SR-192 + warning + + + + [CII-SR-192] - ActualTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-193 + warning + + + + [CII-SR-193] - ID should not be present + + + + + + + + + + CII-SR-194 + warning + + + + [CII-SR-194] - SubtotalCalculatedTradeTax should not be present + + + + + + + + + + CII-SR-195 + warning + + + + [CII-SR-195] - SpecifiedLogisticsServiceCharge should not be present + + + + + + + + + + CII-SR-196 + warning + + + + [CII-SR-196] - SpecifiedTradePaymentTerms should not be present + + + + + + + + + + CII-SR-197 + warning + + + + [CII-SR-197] - ChargeTotalAmount should not be present + + + + + + + + + + CII-SR-198 + warning + + + + [CII-SR-198] - AllowanceTotalAmount should not be present + + + + + + + + + + CII-SR-199 + warning + + + + [CII-SR-199] - TaxBasisTotalAmount should not be present + + + + + + + + + + CII-SR-200 + warning + + + + [CII-SR-200] - TaxTotalAmount should not be present + + + + + + + + + + CII-SR-201 + warning + + + + [CII-SR-201] - GrandTotalAmount should not be present + + + + + + + + + + CII-SR-202 + warning + + + + [CII-SR-202] - InformationAmount should not be present + + + + + + + + + + CII-SR-203 + warning + + + + [CII-SR-203] - TotalAllowanceChargeAmount should not be present + + + + + + + + + + CII-SR-204 + warning + + + + [CII-SR-204] - TotalRetailValueInformationAmount should not be present + + + + + + + + + + CII-SR-205 + warning + + + + [CII-SR-205] - GrossLineTotalAmount should not be present + + + + + + + + + + CII-SR-206 + warning + + + + [CII-SR-206] - NetLineTotalAmount should not be present + + + + + + + + + + CII-SR-207 + warning + + + + [CII-SR-207] - NetIncludingTaxesLineTotalAmount should not be present + + + + + + + + + + CII-SR-208 + warning + + + + [CII-SR-208] - ProductWeightLossInformationAmount should not be present + + + + + + + + + + CII-SR-209 + warning + + + + [CII-SR-209] - SpecifiedFinancialAdjustment should not be present + + + + + + + + + + CII-SR-210 + warning + + + + [CII-SR-210] - InvoiceReferencedDocument should not be present + + + + + + + + + + CII-SR-212 + warning + + + + [CII-SR-212] - PayableSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-213 + warning + + + + [CII-SR-213] - SetTriggerCode should not be present + + + + + + + + + + CII-SR-214 + warning + + + + [CII-SR-214] - TypeCode should not be present + + + + + + + + + + CII-SR-215 + warning + + + + [CII-SR-215] - AmountTypeCode should not be present + + + + + + + + + + CII-SR-216 + warning + + + + [CII-SR-216] - Name should not be present + + + + + + + + + + CII-SR-217 + warning + + + + [CII-SR-217] - CostReferenceDimensionPattern should not be present + + + + + + + + + + CII-SR-218 + warning + + + + [CII-SR-218] - PurchaseSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-219 + warning + + + + [CII-SR-219] - SalesSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-220 + warning + + + + [CII-SR-220] - SpecifiedTradeSettlementFinancialCard should not be present + + + + + + + + + + CII-SR-454 + warning + + + + [CII-SR-454] - Only one ApplicableTradeTax should be present + + + + + + + + + + CII-SR-474 + warning + + + + [CII-SR-474] - An invoice line shall not contain more than one AdditionalReferencedDocument with TypeCode 130. + + + + + + + + + + + + + + + + CII-SR-442 + warning + + + + [CII-SR-442] - Reference should not be present + + + + + + + + + + CII-SR-222 + warning + + + + [CII-SR-222] - RoleCode should not be present + + + + + + + + + + CII-SR-223 + warning + + + + [CII-SR-223] - LegalClassificationCode should not be present + + + + + + + + + + CII-SR-224 + warning + + + + [CII-SR-224] - Name should not be present + + + + + + + + + + CII-SR-225 + warning + + + + [CII-SR-225] - PostalTradeAddress should not be present + + + + + + + + + + CII-SR-226 + warning + + + + [CII-SR-226] - RoleCode should not be present + + + + + + + + + + CII-SR-227 + warning + + + + [CII-SR-227] - ID should not be present + + + + + + + + + + CII-SR-228 + warning + + + + [CII-SR-228] - TypeCode should not be present + + + + + + + + + + CII-SR-229 + warning + + + + [CII-SR-229] - JobTitle should not be present + + + + + + + + + + CII-SR-230 + warning + + + + [CII-SR-230] - Responsibility should not be present + + + + + + + + + + CII-SR-231 + warning + + + + [CII-SR-231] - PersonID should not be present + + + + + + + + + + CII-SR-232 + warning + + + + [CII-SR-232] - URIID should not be present + + + + + + + + + + CII-SR-233 + warning + + + + [CII-SR-233] - ChannelCode should not be present + + + + + + + + + + CII-SR-234 + warning + + + + [CII-SR-234] - DirectTelephoneUniversalCommunication should not be present + + + + + + + + + + CII-SR-235 + warning + + + + [CII-SR-235] - MobileTelephoneUniversalCommunication should not be present + + + + + + + + + + CII-SR-236 + warning + + + + [CII-SR-236] - FaxUniversalCommunication should not be present + + + + + + + + + + CII-SR-237 + warning + + + + [CII-SR-237] - ChannelCode should not be present + + + + + + + + + + CII-SR-238 + warning + + + + [CII-SR-238] - CompleteNumber should not be present + + + + + + + + + + CII-SR-239 + warning + + + + [CII-SR-239] - TelexUniversalCommunication should not be present + + + + + + + + + + CII-SR-240 + warning + + + + [CII-SR-240] - VOIPUniversalCommunication should not be present + + + + + + + + + + CII-SR-241 + warning + + + + [CII-SR-241] - InstantMessagingUniversalCommunication should not be present + + + + + + + + + + CII-SR-242 + warning + + + + [CII-SR-242] - SpecifiedNote should not be present + + + + + + + + + + CII-SR-243 + warning + + + + [CII-SR-243] - SpecifiedContactPerson should not be present + + + + + + + + + + CII-SR-244 + warning + + + + [CII-SR-244] - ChannelCode should not be present + + + + + + + + + + CII-SR-245 + warning + + + + [CII-SR-245] - CompleteNumber should not be present + + + + + + + + + + CII-SR-246 + warning + + + + [CII-SR-246] - AssociatedRegisteredTax should not be present + + + + + + + + + + CII-SR-247 + warning + + + + [CII-SR-247] - EndPointURIUniversalCommunication should not be present + + + + + + + + + + CII-SR-248 + warning + + + + [CII-SR-248] - LogoAssociatedSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-249 + warning + + + + [CII-SR-249] - RoleCode should not be present + + + + + + + + + + CII-SR-250 + warning + + + + [CII-SR-250] - Description should not be present + + + + + + + + + + CII-SR-251 + warning + + + + [CII-SR-251] - LegalClassificationCode should not be present + + + + + + + + + + CII-SR-252 + warning + + + + [CII-SR-252] - Name should not be present + + + + + + + + + + CII-SR-254 + warning + + + + [CII-SR-254] - PostalTradeAddress should not be present + + + + + + + + + + CII-SR-255 + warning + + + + [CII-SR-255] - AuthorizedLegalRegistration should not be present + + + + + + + + + + CII-SR-256 + warning + + + + [CII-SR-256] - ID should not be present + + + + + + + + + + CII-SR-257 + warning + + + + [CII-SR-257] - TypeCode should not be present + + + + + + + + + + CII-SR-258 + warning + + + + [CII-SR-258] - JobTitle should not be present + + + + + + + + + + CII-SR-259 + warning + + + + [CII-SR-259] - Responsibility should not be present + + + + + + + + + + CII-SR-260 + warning + + + + [CII-SR-260] - PersonID should not be present + + + + + + + + + + CII-SR-261 + warning + + + + [CII-SR-261] - URIID should not be present + + + + + + + + + + CII-SR-262 + warning + + + + [CII-SR-262] - ChannelCode should not be present + + + + + + + + + + CII-SR-263 + warning + + + + [CII-SR-263] - DirectTelephoneUniversalCommunication should not be present + + + + + + + + + + CII-SR-264 + warning + + + + [CII-SR-264] - MobileTelephoneUniversalCommunication should not be present + + + + + + + + + + CII-SR-265 + warning + + + + [CII-SR-265] - FaxUniversalCommunication should not be present + + + + + + + + + + CII-SR-266 + warning + + + + [CII-SR-266] - ChannelCode should not be present + + + + + + + + + + CII-SR-267 + warning + + + + [CII-SR-267] - CompleteNumber should not be present + + + + + + + + + + CII-SR-268 + warning + + + + [CII-SR-268] - TelexUniversalCommunication should not be present + + + + + + + + + + CII-SR-269 + warning + + + + [CII-SR-269] - VOIPUniversalCommunication should not be present + + + + + + + + + + CII-SR-270 + warning + + + + [CII-SR-270] - InstantMessagingUniversalCommunication should not be present + + + + + + + + + + CII-SR-271 + warning + + + + [CII-SR-271] - SpecifiedNote should not be present + + + + + + + + + + CII-SR-272 + warning + + + + [CII-SR-272] - SpecifiedContactPerson should not be present + + + + + + + + + + CII-SR-273 + warning + + + + [CII-SR-273] - ChannelCode should not be present + + + + + + + + + + CII-SR-274 + warning + + + + [CII-SR-274] - CompleteNumber should not be present + + + + + + + + + + CII-SR-275 + warning + + + + [CII-SR-275] - AssociatedRegisteredTax should not be present + + + + + + + + + + CII-SR-276 + warning + + + + [CII-SR-276] - EndPointURIUniversalCommunication should not be present + + + + + + + + + + CII-SR-277 + warning + + + + [CII-SR-277] - LogoAssociatedSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-278 + warning + + + + [CII-SR-278] - SalesAgentTradeParty should not be present + + + + + + + + + + CII-SR-279 + warning + + + + [CII-SR-279] - BuyerRequisitionerTradeParty should not be present + + + + + + + + + + CII-SR-280 + warning + + + + [CII-SR-280] - BuyerAssignedAccountantTradeParty should not be present + + + + + + + + + + CII-SR-281 + warning + + + + [CII-SR-281] - SellerAssignedAccountantTradeParty should not be present + + + + + + + + + + CII-SR-282 + warning + + + + [CII-SR-282] - BuyerTaxRepresentativeTradeParty should not be present + + + + + + + + + + CII-SR-283 + warning + + + + [CII-SR-283] - GlobalID should not be present + + + + + + + + + + CII-SR-284 + warning + + + + [CII-SR-284] - RoleCode should not be present + + + + + + + + + + CII-SR-285 + warning + + + + [CII-SR-285] - Description should not be present + + + + + + + + + + CII-SR-286 + warning + + + + [CII-SR-286] - SpecifiedLegalOrganization should not be present + + + + + + + + + + CII-SR-287 + warning + + + + [CII-SR-287] - DefinedTradeContact should not be present + + + + + + + + + + CII-SR-288 + warning + + + + [CII-SR-288] - URIUniversalCommunication should not be present + + + + + + + + + + CII-SR-289 + warning + + + + [CII-SR-289] - AssociatedRegisteredTax should not be present + + + + + + + + + + CII-SR-290 + warning + + + + [CII-SR-290] - EndPointURIUniversalCommunication should not be present + + + + + + + + + + CII-SR-291 + warning + + + + [CII-SR-291] - LogoAssociatedSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-292 + warning + + + + [CII-SR-292] - ProductEndUserTradeParty should not be present + + + + + + + + + + CII-SR-293 + warning + + + + [CII-SR-293] - ApplicableTradeDeliveryTerms should not be present + + + + + + + + + + CII-SR-294 + warning + + + + [CII-SR-294] - LineID should not be present + + + + + + + + + + CII-SR-295 + warning + + + + [CII-SR-295] - LineID should not be present + + + + + + + + + + CII-SR-296 + warning + + + + [CII-SR-296] - QuotationReferencedDocument should not be present + + + + + + + + + + CII-SR-297 + warning + + + + [CII-SR-297] - OrderResponseReferencedDocument should not be present + + + + + + + + + + CII-SR-298 + warning + + + + [CII-SR-298] - LineID should not be present + + + + + + + + + + CII-SR-299 + warning + + + + [CII-SR-299] - DemandForecastReferencedDocument should not be present + + + + + + + + + + CII-SR-300 + warning + + + + [CII-SR-300] - SupplyInstructionReferencedDocument should not be present + + + + + + + + + + CII-SR-301 + warning + + + + [CII-SR-301] - PromotionalDealReferencedDocument should not be present + + + + + + + + + + CII-SR-302 + warning + + + + [CII-SR-302] - PriceListReferencedDocument should not be present + + + + + + + + + + CII-SR-303 + warning + + + + [CII-SR-303] - LineID should not be present + + + + + + + + + + CII-SR-304 + warning + + + + [CII-SR-304] - RequisitionerReferencedDocument should not be present + + + + + + + + + + CII-SR-305 + warning + + + + [CII-SR-305] - BuyerAgentTradeParty should not be present + + + + + + + + + + CII-SR-306 + warning + + + + [CII-SR-306] - PurchaseConditionsReferencedDocument should not be present + + + + + + + + + + CII-SR-307 + warning + + + + [CII-SR-307] - Description should not be present + + + + + + + + + + CII-SR-448 + warning + + + + [CII-SR-448] - UltimateCustomerOrderReferencedDocument should not be present + + + + + + + + + + CII-SR-450 + warning + + + + [CII-SR-450] - Only one buyer identifier should be present (either the ID or the Global ID) + + + + + + + + + + CII-SR-455 + fatal + + + + [CII-SR-455] - DefinedTradeContact of SellerTradeParty shall exist maximum once + + + + + + + + + + CII-SR-456 + fatal + + + + [CII-SR-456] - DefinedTradeContact of BuyerTradeParty shall exist maximum once + + + + + + + + + + CII-SR-457 + warning + + + + [CII-SR-457] - IssuerAssignedID with TypeCode 50 should exist maximum once + + + + + + + + + + CII-SR-458 + warning + + + + [CII-SR-458] - IssuerAssignedID with TypeCode 130 should exist maximum once + + + + + + + + + + CII-SR-459 + fatal + + + + [CII-SR-459] - SellerTradeParty URIUniversalCommunication should exist maximum once + + + + + + + + + + CII-SR-460 + fatal + + + + [CII-SR-460] - BuyerTradeParty URIUniversalCommunication should exist maximum once + + + + + + + + + + CII-SR-465 + warning + + + + [CII-SR-465] - Only one BT-41 element is allowed on an invoice. + + + + + + + + + + CII-SR-466 + warning + + + + [CII-SR-466] - Only one BT-56 element is allowed on an invoice. + + + + + + + + + + + + + + + + CII-SR-308 + warning + + + + [CII-SR-308] - RelatedSupplyChainConsignment should not be present + + + + + + + + + + CII-SR-309 + warning + + + + [CII-SR-309] - RoleCode should not be present + + + + + + + + + + CII-SR-310 + warning + + + + [CII-SR-310] - Description should not be present + + + + + + + + + + CII-SR-311 + warning + + + + [CII-SR-311] - SpecifiedLegalOrganization should not be present + + + + + + + + + + CII-SR-312 + warning + + + + [CII-SR-312] - DefinedTradeContact should not be present + + + + + + + + + + CII-SR-313 + warning + + + + [CII-SR-313] - URIUniversalCommunication should not be present + + + + + + + + + + CII-SR-314 + warning + + + + [CII-SR-314] - SpecifiedTaxRegistration should not be present + + + + + + + + + + CII-SR-315 + warning + + + + [CII-SR-315] - EndPointURIUniversalCommunication should not be present + + + + + + + + + + CII-SR-316 + warning + + + + [CII-SR-316] - LogoAssociatedSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-317 + warning + + + + [CII-SR-317] - UltimateShipToTradeParty should not be present + + + + + + + + + + CII-SR-318 + warning + + + + [CII-SR-318] - ShipFromTradeParty should not be present + + + + + + + + + + CII-SR-319 + warning + + + + [CII-SR-319] - ActualDespatchSupplyChainEvent should not be present + + + + + + + + + + CII-SR-320 + warning + + + + [CII-SR-320] - ActualPickUpSupplyChainEvent should not be present + + + + + + + + + + CII-SR-321 + warning + + + + [CII-SR-321] - ID should not be present + + + + + + + + + + CII-SR-322 + warning + + + + [CII-SR-322] - DateTime should not be present + + + + + + + + + + CII-SR-323 + warning + + + + [CII-SR-323] - TypeCode should not be present + + + + + + + + + + CII-SR-324 + warning + + + + [CII-SR-324] - Description should not be present + + + + + + + + + + CII-SR-325 + warning + + + + [CII-SR-325] - DescriptionBinaryObject should not be present + + + + + + + + + + CII-SR-326 + warning + + + + [CII-SR-326] - UnitQuantity should not be present + + + + + + + + + + CII-SR-327 + warning + + + + [CII-SR-327] - LatestOccurrenceDateTime should not be present + + + + + + + + + + CII-SR-328 + warning + + + + [CII-SR-328] - EarliestOccurrenceDateTime should not be present + + + + + + + + + + CII-SR-329 + warning + + + + [CII-SR-329] - OccurrenceSpecifiedPeriod should not be present + + + + + + + + + + CII-SR-330 + warning + + + + [CII-SR-330] - OccurrenceLogisticsLocation should not be present + + + + + + + + + + CII-SR-331 + warning + + + + [CII-SR-331] - ActualReceiptSupplyChainEvent should not be present + + + + + + + + + + CII-SR-332 + warning + + + + [CII-SR-332] - AdditionalReferencedDocument should not be present + + + + + + + + + + CII-SR-333 + warning + + + + [CII-SR-333] - LineID should not be present + + + + + + + + + + CII-SR-334 + warning + + + + [CII-SR-334] - LineID should not be present + + + + + + + + + + CII-SR-335 + warning + + + + [CII-SR-335] - DeliveryNoteReferencedDocument should not be present + + + + + + + + + + CII-SR-336 + warning + + + + [CII-SR-336] - ConsumptionReportReferencedDocument should not be present + + + + + + + + + + CII-SR-337 + warning + + + + [CII-SR-337] - PreviousDeliverySupplyChainEvent should not be present + + + + + + + + + + CII-SR-338 + warning + + + + [CII-SR-338] - PackingListReferencedDocument should not be present + + + + + + + + + + CII-SR-449 + warning + + + + [CII-SR-449] - Only one delivery to location identifier should be present (either the ID or the Global ID) + + + + + + + + + + + + + + + + CII-SR-339 + warning + + + + [CII-SR-339] - DuePayableAmount should not be present + + + + + + + + + + CII-SR-340 + warning + + + + [CII-SR-340] - CreditorReferenceTypeCode should not be present + + + + + + + + + + CII-SR-341 + warning + + + + [CII-SR-341] - CreditorReferenceType should not be present + + + + + + + + + + CII-SR-342 + warning + + + + [CII-SR-342] - CreditorReferenceIssuerID should not be present + + + + + + + + + + CII-SR-344 + warning + + + + [CII-SR-344] - PaymentCurrencyCode should not be present + + + + + + + + + + CII-SR-345 + warning + + + + [CII-SR-345] - InvoiceIssuerReference should not be present + + + + + + + + + + CII-SR-346 + warning + + + + [CII-SR-346] - InvoiceDateTime should not be present + + + + + + + + + + CII-SR-347 + warning + + + + [CII-SR-347] - NextInvoiceDateTime should not be present + + + + + + + + + + CII-SR-348 + warning + + + + [CII-SR-348] - CreditReasonCode should not be present + + + + + + + + + + CII-SR-349 + warning + + + + [CII-SR-349] - CreditReason should not be present + + + + + + + + + + CII-SR-350 + warning + + + + [CII-SR-350] - InvoicerTradeParty should not be present + + + + + + + + + + CII-SR-351 + warning + + + + [CII-SR-351] - InvoiceeTradeParty should not be present + + + + + + + + + + CII-SR-352 + warning + + + + [CII-SR-352] - RoleCode should not be present + + + + + + + + + + CII-SR-353 + warning + + + + [CII-SR-353] - Description should not be present + + + + + + + + + + CII-SR-354 + warning + + + + [CII-SR-354] - LegalClassificationCode should not be present + + + + + + + + + + CII-SR-355 + warning + + + + [CII-SR-355] - Name should not be present + + + + + + + + + + CII-SR-356 + warning + + + + [CII-SR-356] - TradingBusinessName should not be present + + + + + + + + + + CII-SR-357 + warning + + + + [CII-SR-357] - PostalTradeAddress should not be present + + + + + + + + + + CII-SR-358 + warning + + + + [CII-SR-358] - AuthorizedLegalRegistration should not be present + + + + + + + + + + CII-SR-359 + warning + + + + [CII-SR-359] - DefinedTradeContact should not be present + + + + + + + + + + CII-SR-360 + warning + + + + [CII-SR-360] - PostalTradeAddress should not be present + + + + + + + + + + CII-SR-361 + warning + + + + [CII-SR-361] - URIUniversalCommunication should not be present + + + + + + + + + + CII-SR-362 + warning + + + + [CII-SR-362] - SpecifiedTaxRegistration should not be present + + + + + + + + + + CII-SR-363 + warning + + + + [CII-SR-363] - EndPointURIUniversalCommunication should not be present + + + + + + + + + + CII-SR-364 + warning + + + + [CII-SR-364] - LogoAssociatedSpecifiedBinaryFile should not be present + + + + + + + + + + CII-SR-451 + warning + + + + [CII-SR-451] - Only one payee identifier should be present (either the ID or the Global ID) + + + + + + + + + + CII-SR-365 + warning + + + + [CII-SR-365] - PayerTradeParty should not be present + + + + + + + + + + CII-SR-366 + warning + + + + [CII-SR-366] - TaxApplicableTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-367 + warning + + + + [CII-SR-367] - InvoiceApplicableTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-368 + warning + + + + [CII-SR-368] - PaymentApplicableTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-369 + warning + + + + [CII-SR-369] - PaymentChannelCode should not be present + + + + + + + + + + CII-SR-370 + warning + + + + [CII-SR-370] - GuaranteeMethodCode should not be present + + + + + + + + + + CII-SR-371 + warning + + + + [CII-SR-371] - PaymentMethodCode should not be present + + + + + + + + + + CII-SR-443 + warning + + + + [CII-SR-443] - ID should not be present + + + + + + + + + + CII-SR-372 + warning + + + + [CII-SR-372] - MicrochipIndicator should not be present + + + + + + + + + + CII-SR-373 + warning + + + + [CII-SR-373] - TypeCode should not be present + + + + + + + + + + CII-SR-375 + warning + + + + [CII-SR-375] - ExpiryDate should not be present + + + + + + + + + + CII-SR-376 + warning + + + + [CII-SR-376] - VerificationNumeric should not be present + + + + + + + + + + CII-SR-377 + warning + + + + [CII-SR-377] - ValidFromDateTime should not be present + + + + + + + + + + CII-SR-378 + warning + + + + [CII-SR-378] - CreditLimitAmountshould not be present + + + + + + + + + + CII-SR-379 + warning + + + + [CII-SR-379] - CreditAvailableAmount should not be present + + + + + + + + + + CII-SR-380 + warning + + + + [CII-SR-380] - InterestRatePercent should not be present + + + + + + + + + + CII-SR-381 + warning + + + + [CII-SR-381] - Description should not be present + + + + + + + + + + CII-SR-382 + warning + + + + [CII-SR-382] - AccountName should not be present + + + + + + + + + + CII-SR-444 + warning + + + + [CII-SR-444] - ProprietaryID should not be present + + + + + + + + + + CII-SR-384 + warning + + + + [CII-SR-384] - ClearingSystemName should not be present + + + + + + + + + + CII-SR-385 + warning + + + + [CII-SR-385] - Name should not be present + + + + + + + + + + CII-SR-386 + warning + + + + [CII-SR-386] - LocationFinancialInstitutionAddress should not be present + + + + + + + + + + CII-SR-388 + warning + + + + [CII-SR-388] - ID should not be present + + + + + + + + + + CII-SR-389 + warning + + + + [CII-SR-389] - SequenceNumeric should not be present + + + + + + + + + + CII-SR-390 + warning + + + + [CII-SR-390] - BasisQuantity should not be present + + + + + + + + + + CII-SR-391 + warning + + + + [CII-SR-391] - PrepaidIndicator should not be present + + + + + + + + + + CII-SR-392 + warning + + + + [CII-SR-392] - UnitBasisAmount should not be present + + + + + + + + + + CII-SR-393 + warning + + + + [CII-SR-393] - TypeCode should not be present + + + + + + + + + + CII-SR-394 + warning + + + + [CII-SR-394] - ActualTradeCurrencyExchange should not be present + + + + + + + + + + CII-SR-395 + warning + + + + [CII-SR-395] - SubtotalCalculatedTradeTax should not be present + + + + + + + + + + CII-SR-396 + warning + + + + [CII-SR-396] - SpecifiedLogisticsServiceCharge should not be present + + + + + + + + + + CII-SR-397 + warning + + + + [CII-SR-397] - ID should not be present + + + + + + + + + + CII-SR-398 + warning + + + + [CII-SR-398] - FromEventCode should not be present + + + + + + + + + + CII-SR-399 + warning + + + + [CII-SR-399] - SettlementPeriodMeasure should not be present + + + + + + + + + + CII-SR-400 + warning + + + + [CII-SR-400] - DateTime should not be present + + + + + + + + + + CII-SR-401 + warning + + + + [CII-SR-401] - TypeCode should not be present + + + + + + + + + + CII-SR-402 + warning + + + + [CII-SR-402] - InstructionTypeCode should not be present + + + + + + + + + + CII-SR-404 + warning + + + + [CII-SR-404] - PartialPaymentPercent should not be present + + + + + + + + + + CII-SR-405 + warning + + + + [CII-SR-405] - PaymentMeansID should not be present + + + + + + + + + + CII-SR-406 + warning + + + + [CII-SR-406] - PartialPaymentAmount should not be present + + + + + + + + + + CII-SR-407 + warning + + + + [CII-SR-407] - ApplicableTradePaymentPenaltyTerms should not be present + + + + + + + + + + CII-SR-408 + warning + + + + [CII-SR-408] - ApplicableTradePaymentDiscountTerms should not be present + + + + + + + + + + CII-SR-409 + warning + + + + [CII-SR-409] - PayeeTradeParty should not be present + + + + + + + + + + CII-SR-421 + warning + + + + [CII-SR-421] - SpecifiedFinancialAdjustment should not be present + + + + + + + + + + CII-SR-422 + warning + + + + [CII-SR-422] - LineID should not be present + + + + + + + + + + CII-SR-423 + warning + + + + [CII-SR-423] - ProFormaInvoiceReferencedDocument should not be present + + + + + + + + + + CII-SR-424 + warning + + + + [CII-SR-424] - LetterOfCreditReferencedDocument should not be present + + + + + + + + + + CII-SR-425 + warning + + + + [CII-SR-425] - FactoringAgreementReferencedDocument should not be present + + + + + + + + + + CII-SR-426 + warning + + + + [CII-SR-426] - FactoringListReferencedDocument should not be present + + + + + + + + + + CII-SR-427 + warning + + + + [CII-SR-427] - PayableSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-428 + warning + + + + [CII-SR-428] - SetTriggerCode should not be present + + + + + + + + + + CII-SR-429 + warning + + + + [CII-SR-429] - TypeCode should not be present + + + + + + + + + + CII-SR-430 + warning + + + + [CII-SR-430] - AmountTypeCode should not be present + + + + + + + + + + CII-SR-431 + warning + + + + [CII-SR-431] - Name should not be present + + + + + + + + + + CII-SR-432 + warning + + + + [CII-SR-432] - CostReferenceDimensionPattern should not be present + + + + + + + + + + CII-SR-433 + warning + + + + [CII-SR-433] - PurchaseSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-434 + warning + + + + [CII-SR-434] - SalesSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-SR-435 + warning + + + + [CII-SR-435] - SpecifiedTradeSettlementFinancialCard should not be present + + + + + + + + + + CII-SR-436 + warning + + + + [CII-SR-436] - SpecifiedAdvancePayment should not be present + + + + + + + + + + CII-SR-437 + warning + + + + [CII-SR-437] - UltimatePayeeTradeParty should not be present + + + + + + + + + + CII-SR-452 + warning + + + + [CII-SR-452] - Only one SpecifiedTradePaymentTerms should be present + + + + + + + + + + CII-SR-453 + warning + + + + [CII-SR-453] - Only one SpecifiedTradePaymentTerms Description should be present + + + + + + + + + + CII-SR-461 + fatal + + + + [CII-SR-461] - Only one TaxPointDate shall be present + + + + + + + + + + CII-SR-462 + fatal + + + + [CII-SR-462] - Only one DueDateTypeCode shall be present + + + + + + + + + + CII-SR-470 + fatal + + + + [CII-SR-470] - Either the IBAN or a Proprietary ID (BT-84) shall be used. + + + + + + + + + + CII-SR-497 + fatal + + + + [CII-SR-497] - Mandate reference identifier (BT-89) shall occur maximum once. + + + + + + + + + + + + + + + + CII-SR-411 + warning + + + + [CII-SR-411] - InformationAmount should not be present + + + + + + + + + + CII-SR-412 + warning + + + + [CII-SR-412] - TotalDiscountAmount should not be present + + + + + + + + + + CII-SR-413 + warning + + + + [CII-SR-413] - TotalAllowanceChargeAmount should not be present + + + + + + + + + + CII-SR-414 + warning + + + + [CII-SR-414] - RetailValueExcludingTaxInformationAmount should not be present + + + + + + + + + + CII-SR-415 + warning + + + + [CII-SR-415] - TotalDepositFeeInformationAmount should not be present + + + + + + + + + + CII-SR-416 + warning + + + + [CII-SR-416] - ProductValueExcludingTobaccoTaxInformationAmount should not be present + + + + + + + + + + CII-SR-417 + warning + + + + [CII-SR-417] - TotalRetailValueInformationAmount should not be present + + + + + + + + + + CII-SR-418 + warning + + + + [CII-SR-418] - GrossLineTotalAmount should not be present + + + + + + + + + + CII-SR-419 + warning + + + + [CII-SR-419] - NetLineTotalAmount should not be present + + + + + + + + + + CII-SR-420 + warning + + + + [CII-SR-420] - NetIncludingTaxesLineTotalAmount should not be present + + + + + + + + + + CII-SR-477 + fatal + + + + [CII-SR-477] - LineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-478 + fatal + + + + [CII-SR-478] - ChargeTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-479 + fatal + + + + [CII-SR-479] - AllowanceTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-480 + fatal + + + + [CII-SR-480] - TaxBasisTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-481 + fatal + + + + [CII-SR-481] - RoundingAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-482 + fatal + + + + [CII-SR-482] - GrandTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-483 + fatal + + + + [CII-SR-483] - InformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-484 + fatal + + + + [CII-SR-484] - TotalPrepaidAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-485 + fatal + + + + [CII-SR-485] - TotalDiscountAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-486 + fatal + + + + [CII-SR-486] - TotalAllowanceChargeAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-487 + fatal + + + + [CII-SR-487] - DuePayableAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-488 + fatal + + + + [CII-SR-488] - RetailValueExcludingTaxInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-489 + fatal + + + + [CII-SR-489] - TotalDepositFeeInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-490 + fatal + + + + [CII-SR-490] - ProductValueExcludingTobaccoTaxInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-491 + fatal + + + + [CII-SR-491] - TotalRetailValueInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-492 + fatal + + + + [CII-SR-492] - GrossLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-493 + fatal + + + + [CII-SR-493] - NetLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + CII-SR-494 + fatal + + + + [CII-SR-494] - NetIncludingTaxesLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation. + + + + + + + + + + + + + + + + CII-DT-013 + fatal + + + + [CII-DT-013] - languageID should not be present + + + + + + + + + + CII-DT-014 + fatal + + + + [CII-DT-014] - languageLocaleID should not be present + + + + + + + + + + CII-SR-438 + warning + + + + [CII-SR-438] - ValuationBreakdownStatement should not be present + + + + + + + + + + CII-SR-467 + fatal + + + + [CII-SR-467] - All Payment means type codes (BT-81) shall have the same value across all SpecifiedTradeSettlementPaymentMeans. + + + + + + + + + + CII-SR-468 + fatal + + + + [CII-SR-468] - All Payment means texts (BT-82) shall have the same value across all SpecifiedTradeSettlementPaymentMeans. + + + + + + + + + + CII-SR-469 + fatal + + + + [CII-SR-469] - Payment reference (BT-83) shall occur at most once in the document. + + + + + + + + + + CII-SR-495 + fatal + + + + [CII-SR-495] - An Invoice shall contain maximum one Payment Card account (BG-18). + + + + + + + + + + CII-SR-496 + fatal + + + + [CII-SR-496] - An Invoice shall contain maximum one Payment Mandate (BG-19). + + + + + + + + + + + + + + + + CII-SR-04 + warning + + + + [CII-SR-004] - Value should not be present + + + + + + + + + + CII-SR-05 + warning + + + + [CII-SR-005] - SpecifiedDocumentVersion should not be present + + + + + + + + + + + + + + + + CII-DT-105 + fatal + + + + + [CII-DT-105] - Attached document Mime code (BT-125-1) shall be provided. + + + + + + + + + + + CII-DT-106 + fatal + + + + + [CII-DT-106] - Attached document Filename (BT-125-2) shall be provided. + + + + + + + + + + + + + + + + + CII-DT-001 + fatal + + + + [CII-DT-001] - schemeName should not be present + + + + + + + + + + CII-DT-002 + fatal + + + + [CII-DT-002] - schemeAgencyName should not be present + + + + + + + + + + CII-DT-003 + fatal + + + + [CII-DT-003] - schemeDataURI should not be present + + + + + + + + + + CII-DT-004 + fatal + + + + [CII-DT-004] - schemeURI should not be present + + + + + + + + + + CII-DT-005 + fatal + + + + [CII-DT-005] - schemeID should not be present + + + + + + + + + + CII-DT-006 + fatal + + + + [CII-DT-006] - schemeAgencyID should not be present + + + + + + + + + + CII-DT-007 + fatal + + + + [CII-DT-007] - schemeVersionID should not be present + + + + + + + + + + + + + + + + CII-DT-101 + fatal + + + + [CII-DT-101] - schemeName should not be present + + + + + + + + + + CII-DT-102 + fatal + + + + [CII-DT-102] - schemeAgencyName should not be present + + + + + + + + + + CII-DT-103 + fatal + + + + [CII-DT-103] - schemeDataURI should not be present + + + + + + + + + + CII-DT-104 + fatal + + + + [CII-DT-104] - schemeURI should not be present + + + + + + + + + + + + + + + + CII-DT-008 + fatal + + + + [CII-DT-008] - name should not be present + + + + + + + + + + CII-DT-009 + fatal + + + + [CII-DT-009] - listURI should not be present + + + + + + + + + + + + + + + + CII-DT-010 + fatal + + + + [CII-DT-010] - listID should not be present + + + + + + + + + + CII-DT-011 + fatal + + + + [CII-DT-011] - listAgencyID should not be present + + + + + + + + + + CII-DT-012 + fatal + + + + [CII-DT-012] - listVersionID should not be present + + + + + + + + + + + + + + + + CII-DT-045 + warning + + + + [CII-DT-045] - @listID should not be present + + + + + + + + + + CII-DT-046 + warning + + + + [CII-DT-046] - @listAgencyID should not be present + + + + + + + + + + CII-DT-047 + warning + + + + [CII-DT-047] - @listVersionID should not be present + + + + + + + + + + CII-DT-048 + warning + + + + [CII-DT-048] - @listURI should not be present + + + + + + + + + + + + + + + + CII-DT-015 + fatal + + + + [CII-DT-015] - URIID should not be present + + + + + + + + + + CII-DT-016 + fatal + + + + [CII-DT-016] - StatusCode should not be present + + + + + + + + + + CII-DT-017 + fatal + + + + [CII-DT-017] - CopyIndicator should not be present + + + + + + + + + + CII-DT-018 + fatal + + + + [CII-DT-018] - TypeCode should not be present + + + + + + + + + + CII-DT-019 + fatal + + + + [CII-DT-019] - GlobalID should not be present + + + + + + + + + + CII-DT-020 + fatal + + + + [CII-DT-020] - RevisionID should not be present + + + + + + + + + + CII-DT-021 + fatal + + + + [CII-DT-021] - Name should not be present + + + + + + + + + + CII-DT-022 + fatal + + + + [CII-DT-022] - AttachmentBinaryObject should not be present + + + + + + + + + + CII-DT-023 + fatal + + + + [CII-DT-023] - Information should not be present + + + + + + + + + + CII-DT-024 + fatal + + + + [CII-DT-024] - ReferenceTypeCode should not be present + + + + + + + + + + CII-DT-025 + fatal + + + + [CII-DT-025] - SectionName should not be present + + + + + + + + + + CII-DT-026 + fatal + + + + [CII-DT-026] - PreviousRevisionID should not be present + + + + + + + + + + CII-DT-027 + fatal + + + + [CII-DT-027] - FormattedIssueDateTime should not be present + + + + + + + + + + CII-DT-028 + fatal + + + + [CII-DT-028] - EffectiveSpecifiedPeriod should not be present + + + + + + + + + + CII-DT-029 + fatal + + + + [CII-DT-029] - IssuerTradeParty should not be present + + + + + + + + + + CII-DT-030 + fatal + + + + [CII-DT-030] - AttachedSpecifiedBinaryFile should not be present + + + + + + + + + + + + + + + + CII-DT-031 + fatal + + + + [CII-DT-031] - currencyID should not be present + + + + + + + + + + CII-DT-032 + fatal + + + + [CII-DT-032] - currencyCodeListVersionID should not be present + + + + + + + + + + + + + + + + CII-DT-033 + fatal + + + + [CII-DT-033] - unitCode should not be present + + + + + + + + + + CII-DT-034 + fatal + + + + [CII-DT-034] - unitCodeListID should not be present + + + + + + + + + + CII-DT-035 + fatal + + + + [CII-DT-035] - unitCodeListAgencyID should not be present + + + + + + + + + + CII-DT-036 + fatal + + + + [CII-DT-036] - unitCodeListAgencyName should not be present + + + + + + + + + + + + + + + + CII-DT-037 + fatal + + + + [CII-DT-037] - TypeCode shall be 'VAT' + + + + + + + + + + CII-DT-038 + warning + + + + [CII-DT-038] - CalculatedRate should not be present + + + + + + + + + + CII-DT-039 + warning + + + + [CII-DT-039] - CalculationSequenceNumeric should not be present + + + + + + + + + + CII-DT-040 + warning + + + + [CII-DT-040] - BasisQuantity should not be present + + + + + + + + + + CII-DT-041 + warning + + + + [CII-DT-041] - BasisAmount should not be present + + + + + + + + + + CII-DT-042 + warning + + + + [CII-DT-042] - UnitBasisAmount should not be present + + + + + + + + + + CII-DT-043 + warning + + + + [CII-DT-043] - LineTotalBasisAmount should not be present + + + + + + + + + + CII-DT-044 + warning + + + + [CII-DT-044] - AllowanceChargeBasisAmount should not be present + + + + + + + + + + CII-DT-049 + warning + + + + [CII-DT-049] - CurrencyCode should not be present + + + + + + + + + + CII-DT-050 + warning + + + + [CII-DT-050] - Jurisdiction should not be present + + + + + + + + + + CII-DT-051 + warning + + + + [CII-DT-051] - CustomsDutyIndicator should not be present + + + + + + + + + + CII-DT-052 + warning + + + + [CII-DT-052] - ExemptionReasonCode should not be present + + + + + + + + + + CII-DT-098 + warning + + + + [CII-DT-098] - ExemptionReason should not be present + + + + + + + + + + CII-DT-053 + warning + + + + [CII-DT-053] - TaxBasisAllowanceRate should not be present + + + + + + + + + + CII-DT-054 + warning + + + + [CII-DT-054] - TaxPointDate should not be present + + + + + + + + + + CII-DT-055 + warning + + + + [CII-DT-055] - Type should not be present + + + + + + + + + + CII-DT-056 + warning + + + + [CII-DT-056] - InformationAmount should not be present + + + + + + + + + + CII-DT-057 + warning + + + + [CII-DT-057] - CategoryName should not be present + + + + + + + + + + CII-DT-058 + warning + + + + [CII-DT-058] - DueDateTypeCode should not be present + + + + + + + + + + CII-DT-059 + warning + + + + [CII-DT-059] - @format should not be present + + + + + + + + + + CII-DT-060 + warning + + + + [CII-DT-060] - SpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-061 + warning + + + + [CII-DT-061] - ServiceSupplyTradeCountry should not be present + + + + + + + + + + CII-DT-062 + warning + + + + [CII-DT-062] - BuyerRepayableTaxSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-063 + warning + + + + [CII-DT-063] - SellerPayableTaxSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-064 + warning + + + + [CII-DT-064] - SellerRefundableTaxSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-065 + warning + + + + [CII-DT-065] - BuyerDeductibleTaxSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-066 + warning + + + + [CII-DT-066] - BuyerNonDeductibleTaxSpecifiedTradeAccountingAccount should not be present + + + + + + + + + + CII-DT-067 + warning + + + + [CII-DT-067] - PlaceApplicableTradeLocation should not be present + + + + + + + + + + + + + + + + CII-DT-068 + fatal + + + + [CII-DT-068] - DateTime shall not be used. + + + + + + + + + + CII-DT-069 + fatal + + + + [CII-DT-069] - DurationMeasure shall not be used. + + + + + + + + + + CII-DT-070 + fatal + + + + [CII-DT-070] - InclusiveIndicator shall not be used. + + + + + + + + + + CII-DT-071 + fatal + + + + [CII-DT-071] - Description shall not be used. + + + + + + + + + + CII-DT-072 + fatal + + + + [CII-DT-072] - DateTime shall not be used. + + + + + + + + + + CII-DT-073 + fatal + + + + [CII-DT-073] - CompleteDateTime shall not be used. + + + + + + + + + + CII-DT-074 + fatal + + + + [CII-DT-074] - OpenIndicator shall not be used. + + + + + + + + + + CII-DT-075 + fatal + + + + [CII-DT-075] - SeasonCode shall not be used. + + + + + + + + + + CII-DT-076 + fatal + + + + [CII-DT-076] - ID shall not be used. + + + + + + + + + + CII-DT-077 + fatal + + + + [CII-DT-077] - Name shall not be used. + + + + + + + + + + CII-DT-078 + fatal + + + + [CII-DT-078] - SequenceNumeric shall not be used. + + + + + + + + + + CII-DT-079 + fatal + + + + [CII-DT-079] - StartDateFlexibilityCode shall not be used. + + + + + + + + + + CII-DT-080 + fatal + + + + [CII-DT-080] - ContinuousIndicator shall not be used. + + + + + + + + + + CII-DT-081 + fatal + + + + [CII-DT-081] - PurposeCode shall not be used. + + + + + + + + + + + + + + + + CII-DT-082 + fatal + + + + [CII-DT-082] - ID shall not be used. + + + + + + + + + + CII-DT-083 + fatal + + + + [CII-DT-083] - PostOfficeBox shall not be used. + + + + + + + + + + CII-DT-084 + fatal + + + + [CII-DT-084] - BuildingName shall not be used. + + + + + + + + + + CII-DT-086 + fatal + + + + [CII-DT-086] - LineFour shall not be used. + + + + + + + + + + CII-DT-087 + fatal + + + + [CII-DT-087] - LineFive shall not be used. + + + + + + + + + + CII-DT-088 + fatal + + + + [CII-DT-088] - StreetName shall not be used. + + + + + + + + + + CII-DT-089 + fatal + + + + [CII-DT-089] - CitySubDivisionName shall not be used. + + + + + + + + + + CII-DT-090 + fatal + + + + [CII-DT-090] - CountryName shall not be used. + + + + + + + + + + CII-DT-091 + fatal + + + + [CII-DT-091] - CountrySubDivisionID shall not be used. + + + + + + + + + + CII-DT-092 + fatal + + + + [CII-DT-092] - AttentionOf shall not be used. + + + + + + + + + + CII-DT-093 + fatal + + + + [CII-DT-093] - CareOf shall not be used. + + + + + + + + + + CII-DT-094 + fatal + + + + [CII-DT-094] - BuildingNumber shall not be used. + + + + + + + + + + CII-DT-095 + fatal + + + + [CII-DT-095] - DepartmentName shall not be used. + + + + + + + + + + CII-DT-096 + fatal + + + + [CII-DT-096] - AdditionalStreetName shall not be used. + + + + + + + + + + + + + + + + CII-DT-097 + fatal + + + + [CII-DT-097] - Date time string with format attribute 102 shall be YYYYMMDD. + + + + + + + + + + + + + + + + + + + + + + + BR-CL-01 + fatal + + + + [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 + fatal + + + + [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-04 + fatal + + + + [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-05 + fatal + + + + [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-06 + fatal + + + + [BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2475. + + + + + + + + + + + + + + + + BR-CL-07 + fatal + + + + [BR-CL-07]-Object identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153. + + + + + + + + + + + + + + + + BR-CL-08 + fatal + + + + [BR-CL-08]-Subject Code MUST be coded using a restriction of UNTDID 4451. + + + + + + + + + + + + + + + + BR-CL-10 + fatal + + + + [BR-CL-10]-Any identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + BR-CL-11 + fatal + + + + [BR-CL-11]-Any registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + BR-CL-13 + fatal + + + + [BR-CL-13]-Item classification identifier identification scheme identifier MUST be coded using one of the UNTDID 7143 list. + + + + + + + + + + + + + + + + BR-CL-14 + fatal + + + + [BR-CL-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + BR-CL-15 + fatal + + + + [BR-CL-15]-Country codes in an invoice MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + BR-CL-16 + fatal + + + + [BR-CL-16]-Payment means in an invoice MUST be coded using UNTDID 4461 code list + + + + + + + + + + + + + + + + BR-CL-17 + fatal + + + + [BR-CL-17]-Invoice tax categories MUST be coded using UNCL 5305 code list + + + + + + + + + + + + + + + + BR-CL-18 + fatal + + + + [BR-CL-18]-Invoice tax categories MUST be coded using UNCL 5305 code list + + + + + + + + + + + + + + + + BR-CL-19 + fatal + + + + [BR-CL-19]-Coded allowance reasons MUST belong to the UNCL 5189 code list + + + + + + + + + + + + + + + + BR-CL-20 + fatal + + + + [BR-CL-20]-Coded charge reasons MUST belong to the UNCL 7161 code list + + + + + + + + + + + + + + + + BR-CL-21 + fatal + + + + [BR-CL-21]-Item standard identifier scheme identifier MUST belong to the ISO 6523 ICD + code list + + + + + + + + + + + + + + + + BR-CL-22 + fatal + + + + [BR-CL-22]-Tax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list + + + + + + + + + + + + + + + + BR-CL-23 + fatal + + + + [BR-CL-23]-Unit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension + + + + + + + + + + + + + + + + BR-CL-24 + fatal + + + + [BR-CL-24]-For Mime code in attribute use MIMEMediaType. + + + + + + + + + + + + + + + + BR-CL-25 + fatal + + + + [BR-CL-25]-Endpoint identifier scheme identifier MUST belong to the CEF EAS code list + + + + + + + + + + + + + + + + BR-CL-26 + fatal + + + + [BR-CL-26]-Delivery location identifier scheme identifier MUST belong to the ISO 6523 ICD + code list + + + + + + + + + + diff --git a/vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt b/vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt new file mode 100644 index 0000000..e2849ec --- /dev/null +++ b/vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt @@ -0,0 +1,15583 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + + +   +   +   + + + + + + + + + + + + + + + UBL-model + UBL-model + + + + + + + UBL-syntax + UBL-syntax + + + + + + + Codesmodel + Codesmodel + + + + + + +EN16931 model bound to UBL + + + + + + + + + + + + + + BR-52 + fatal + + + + [BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122). + + + + + + + + + + + + + + + + BR-63 + fatal + + + + [BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier. + + + + + + + + + + + + + + + + BR-11 + fatal + + + + [BR-11]-The Buyer postal address shall contain a Buyer country code (BT-55). + + + + + + + + + + + + + + + + BR-51 + warning + + + + [BR-51]-In accordance with card payments security standards an invoice should never include a full card primary account number (BT-87). At the moment PCI Security Standards Council has defined that the first 6 digits and last 4 digits are the maximum number of digits to be shown. + + + + + + + + + + + + + + + + BR-57 + fatal + + + + [BR-57]-Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80). + + + + + + + + + + + + + + + + BR-31 + fatal + + + + [BR-31]-Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92). + + + + + + + + + + BR-32 + fatal + + + + [BR-32]-Each Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95). + + + + + + + + + + BR-33 + fatal + + + + [BR-33]-Each Document level allowance (BG-20) shall have a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98). + + + + + + + + + + BR-CO-05 + fatal + + + + [BR-CO-05]-Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance. + + + + + + + + + + BR-CO-21 + fatal + + + + [BR-CO-21]-Each Document level allowance (BG-20) shall contain a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both. + + + + + + + + + + BR-DEC-01 + fatal + + + + [BR-DEC-01]-The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2. + + + + + + + + + + BR-DEC-02 + fatal + + + + [BR-DEC-02]-The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2. + + + + + + + + + + + + + + + + BR-36 + fatal + + + + [BR-36]-Each Document level charge (BG-21) shall have a Document level charge amount (BT-99). + + + + + + + + + + BR-37 + fatal + + + + [BR-37]-Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102). + + + + + + + + + + BR-38 + fatal + + + + [BR-38]-Each Document level charge (BG-21) shall have a Document level charge reason (BT-104) or a Document level charge reason code (BT-105). + + + + + + + + + + BR-CO-06 + fatal + + + + [BR-CO-06]-Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge. + + + + + + + + + + BR-CO-22 + fatal + + + + [BR-CO-22]-Each Document level charge (BG-21) shall contain a Document level charge reason (BT-104) or a Document level charge reason code (BT-105), or both. + + + + + + + + + + BR-DEC-05 + fatal + + + + [BR-DEC-05]-The allowed maximum number of decimals for the Document level charge amount (BT-99) is 2. + + + + + + + + + + BR-DEC-06 + fatal + + + + [BR-DEC-06]-The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2. + + + + + + + + + + + + + + + + BR-12 + fatal + + + + [BR-12]-An Invoice shall have the Sum of Invoice line net amount (BT-106). + + + + + + + + + + BR-13 + fatal + + + + [BR-13]-An Invoice shall have the Invoice total amount without VAT (BT-109). + + + + + + + + + + BR-14 + fatal + + + + [BR-14]-An Invoice shall have the Invoice total amount with VAT (BT-112). + + + + + + + + + + BR-15 + fatal + + + + [BR-15]-An Invoice shall have the Amount due for payment (BT-115). + + + + + + + + + + BR-CO-10 + fatal + + + + [BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131). + + + + + + + + + + BR-CO-11 + fatal + + + + [BR-CO-11]-Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92). + + + + + + + + + + BR-CO-12 + fatal + + + + [BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99). + + + + + + + + + + BR-CO-13 + fatal + + + + [BR-CO-13]-Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108). + + + + + + + + + + BR-CO-16 + fatal + + + + [BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114). + + + + + + + + + + BR-DEC-09 + fatal + + + + [BR-DEC-09]-The allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) is 2. + + + + + + + + + + BR-DEC-10 + fatal + + + + [BR-DEC-10]-The allowed maximum number of decimals for the Sum of allowanced on document level (BT-107) is 2. + + + + + + + + + + BR-DEC-11 + fatal + + + + [BR-DEC-11]-The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2. + + + + + + + + + + BR-DEC-12 + fatal + + + + [BR-DEC-12]-The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2. + + + + + + + + + + BR-DEC-14 + fatal + + + + [BR-DEC-14]-The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2. + + + + + + + + + + BR-DEC-16 + fatal + + + + [BR-DEC-16]-The allowed maximum number of decimals for the Paid amount (BT-113) is 2. + + + + + + + + + + BR-DEC-17 + fatal + + + + [BR-DEC-17]-The allowed maximum number of decimals for the Rounding amount (BT-114) is 2. + + + + + + + + + + BR-DEC-18 + fatal + + + + [BR-DEC-18]-The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.  + + + + + + + + + + + + + + + + BR-01 + fatal + + + + [BR-01]-An Invoice shall have a Specification identifier (BT-24).    + + + + + + + + + + BR-02 + fatal + + + + [BR-02]-An Invoice shall have an Invoice number (BT-1). + + + + + + + + + + BR-03 + fatal + + + + [BR-03]-An Invoice shall have an Invoice issue date (BT-2). + + + + + + + + + + BR-04 + fatal + + + + [BR-04]-An Invoice shall have an Invoice type code (BT-3). + + + + + + + + + + BR-05 + fatal + + + + [BR-05]-An Invoice shall have an Invoice currency code (BT-5). + + + + + + + + + + BR-06 + fatal + + + + [BR-06]-An Invoice shall contain the Seller name (BT-27). + + + + + + + + + + BR-07 + fatal + + + + [BR-07]-An Invoice shall contain the Buyer name (BT-44). + + + + + + + + + + BR-08 + fatal + + + + [BR-08]-An Invoice shall contain the Seller postal address. + + + + + + + + + + BR-10 + fatal + + + + [BR-10]-An Invoice shall contain the Buyer postal address (BG-8). + + + + + + + + + + BR-16 + fatal + + + + [BR-16]-An Invoice shall have at least one Invoice line (BG-25) + + + + + + + + + + BR-53 + fatal + + + + [BR-53]-If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided. + + + + + + + + + + BR-AE-01 + fatal + + + + [BR-AE-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Reverse charge" shall contain in the VAT Breakdown (BG-23) exactly one VAT category code (BT-118) equal with "VAT reverse charge". + + + + + + + + + + BR-AE-02 + fatal + + + + [BR-AE-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-AE-03 + fatal + + + + [BR-AE-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-AE-04 + fatal + + + + [BR-AE-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47). + + + + + + + + + + BR-CO-03 + fatal + + + + [BR-CO-03]-Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive. + + + + + + + + + + BR-CO-15 + fatal + + + + [BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110). + + + + + + + + + + BR-CO-18 + fatal + + + + [BR-CO-18]-An Invoice shall at least have one VAT breakdown group (BG-23). + + + + + + + + + + BR-DEC-13 + fatal + + + + [BR-DEC-13]-The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2. + + + + + + + + + + BR-DEC-15 + fatal + + + + [BR-DEC-15]-The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2. + + + + + + + + + + BR-E-01 + fatal + + + + [BR-E-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Exempt from VAT" shall contain exactly one VAT breakdown (BG-23) with the VAT category code (BT-118) equal to "Exempt from VAT". + + + + + + + + + + BR-E-02 + fatal + + + + [BR-E-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-E-03 + fatal + + + + [BR-E-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-E-04 + fatal + + + + [BR-E-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-01 + fatal + + + + [BR-G-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Export outside the EU" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Export outside the EU". + + + + + + + + + + BR-G-02 + fatal + + + + [BR-G-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-03 + fatal + + + + [BR-G-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-G-04 + fatal + + + + [BR-G-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IC-01 + fatal + + + + [BR-IC-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Intra-community supply" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Intra-community supply". + + + + + + + + + + BR-IC-02 + fatal + + + + [BR-IC-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-03 + fatal + + + + [BR-IC-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-04 + fatal + + + + [BR-IC-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-IC-11 + fatal + + + + [BR-IC-11]-In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank. + + + + + + + + + + BR-IC-12 + fatal + + + + [BR-IC-12]-In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be blank. + + + + + + + + + + BR-IG-01 + fatal + + + + [BR-IG-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "IGIC" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "IGIC". + + + + + + + + + + BR-IG-02 + fatal + + + + [BR-IG-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IG-03 + fatal + + + + [BR-IG-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IG-04 + fatal + + + + [BR-IG-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-01 + fatal + + + + [BR-IP-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "IPSI" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "IPSI". + + + + + + + + + + BR-IP-02 + fatal + + + + [BR-IP-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-03 + fatal + + + + [BR-IP-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-IP-04 + fatal + + + + [BR-IP-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" shall contain the Seller VAT Identifier (BT-31), the Seller Tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-O-01 + fatal + + + + [BR-O-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Not subject to VAT" shall contain exactly one VAT breakdown group (BG-23) with the VAT category code (BT-118) equal to "Not subject to VAT". + + + + + + + + + + BR-O-02 + fatal + + + + [BR-O-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-03 + fatal + + + + [BR-O-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-04 + fatal + + + + [BR-O-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48). + + + + + + + + + + BR-O-11 + fatal + + + + [BR-O-11]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain other VAT breakdown groups (BG-23). + + + + + + + + + + BR-O-12 + fatal + + + + [BR-O-12]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is not "Not subject to VAT". + + + + + + + + + + BR-O-13 + fatal + + + + [BR-O-13]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level allowances (BG-20) where Document level allowance VAT category code (BT-95) is not "Not subject to VAT". + + + + + + + + + + BR-O-14 + fatal + + + + [BR-O-14]-An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level charges (BG-21) where Document level charge VAT category code (BT-102) is not "Not subject to VAT". + + + + + + + + + + BR-S-01 + fatal + + + + [BR-S-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Standard rated" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "Standard rated". + + + + + + + + + + BR-S-02 + fatal + + + + [BR-S-02]-An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-S-03 + fatal + + + + [BR-S-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-S-04 + fatal + + + + [BR-S-04]-An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-01 + fatal + + + + [BR-Z-01]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "Zero rated" shall contain in the VAT breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Zero rated". + + + + + + + + + + BR-Z-02 + fatal + + + + [BR-Z-02]-An Invoice that contains an Invoice line where the Invoiced item VAT category code (BT-151) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-03 + fatal + + + + [BR-Z-03]-An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-Z-04 + fatal + + + + [BR-Z-04]-An Invoice that contains a Document level charge where the Document level charge VAT category code (BT-102) is "Zero rated" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63). + + + + + + + + + + BR-B-01 + fatal + + + + [BR-B-01]-An Invoice where the VAT category code (BT-151, BT-95 or BT-102) is “Split payment” shall be a domestic Italian invoice. + + + + + + + + + + BR-B-02 + fatal + + + + [BR-B-02]-An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95, BT-118 or BT-102) is “Split payment" shall not contain an invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95, BT-118 or BT-102) is “Standard rated”. + + + + + + + + + + + + + + + + BR-21 + fatal + + + + [BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126). + + + + + + + + + + BR-22 + fatal + + + + [BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129). + + + + + + + + + + BR-23 + fatal + + + + [BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130). + + + + + + + + + + BR-24 + fatal + + + + [BR-24]-Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131). + + + + + + + + + + BR-25 + fatal + + + + [BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153). + + + + + + + + + + BR-26 + fatal + + + + [BR-26]-Each Invoice line (BG-25) shall contain the Item net price (BT-146). + + + + + + + + + + BR-27 + fatal + + + + [BR-27]-The Item net price (BT-146) shall NOT be negative. + + + + + + + + + + BR-28 + fatal + + + + [BR-28]-The Item gross price (BT-148) shall NOT be negative. + + + + + + + + + + BR-CO-04 + fatal + + + + [BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151). + + + + + + + + + + BR-DEC-23 + fatal + + + + [BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. + + + + + + + + + + + + + + + + BR-41 + fatal + + + + [BR-41]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136). + + + + + + + + + + BR-42 + fatal + + + + [BR-42]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140). + + + + + + + + + + BR-CO-07 + fatal + + + + [BR-CO-07]-Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139) shall indicate the same type of allowance reason. + + + + + + + + + + BR-CO-23 + fatal + + + + [BR-CO-23]-Each Invoice line allowance (BG-27) shall contain an Invoice line allowance reason (BT-139) or an Invoice line allowance reason code (BT-140), or both. + + + + + + + + + + BR-DEC-24 + fatal + + + + [BR-DEC-24]-The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2. + + + + + + + + + + BR-DEC-25 + fatal + + + + [BR-DEC-25]-The allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2. + + + + + + + + + + + + + + + + BR-43 + fatal + + + + [BR-43]-Each Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141). + + + + + + + + + + BR-44 + fatal + + + + [BR-44]-Each Invoice line charge shall have an Invoice line charge reason or an invoice line allowance reason code. + + + + + + + + + + BR-CO-08 + fatal + + + + [BR-CO-08]-Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason. + + + + + + + + + + BR-CO-24 + fatal + + + + [BR-CO-24]-Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both. + + + + + + + + + + BR-DEC-27 + fatal + + + + [BR-DEC-27]-The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2. + + + + + + + + + + BR-DEC-28 + fatal + + + + [BR-DEC-28]-The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2. + + + + + + + + + + + + + + + + BR-30 + fatal + + + + [BR-30]-If both Invoice line period start date (BT-134) and Invoice line period end date (BT-135) are given then the Invoice line period end date (BT-135) shall be later or equal to the Invoice line period start date (BT-134). + + + + + + + + + + BR-CO-20 + fatal + + + + [BR-CO-20]-If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both. + + + + + + + + + + + + + + + + BR-29 + fatal + + + + [BR-29]-If both Invoicing period start date (BT-73) and Invoicing period end date (BT-74) are given then the Invoicing period end date (BT-74) shall be later or equal to the Invoicing period start date (BT-73). + + + + + + + + + + BR-CO-19 + fatal + + + + [BR-CO-19]-If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both. + + + + + + + + + + + + + + + + BR-54 + fatal + + + + [BR-54]-Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161). + + + + + + + + + + + + + + + + BR-65 + fatal + + + + [BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier. + + + + + + + + + + + + + + + + BR-64 + fatal + + + + [BR-64]-The Item standard identifier (BT-157) shall have a Scheme identifier. + + + + + + + + + + + + + + + + BR-CL-08 + fatal + + + + [BR-CL-08]-Invoiced note subject code shall be coded using UNCL4451 + + + + + + + + + + + + + + + + BR-17 + fatal + + + + [BR-17]-The Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4) + + + + + + + + + + + + + + + + BR-50 + fatal + + + + [BR-50]-A Payment account identifier (BT-84) shall be present if Credit transfer (BG-17) information is provided in the Invoice. + + + + + + + + + + + + + + + + BR-49 + fatal + + + + [BR-49]-A Payment instruction (BG-16) shall specify the Payment means type code (BT-81). + + + + + + + + + + BR-61 + fatal + + + + [BR-61]-If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present. + + + + + + + + + + + + + + + + BR-55 + fatal + + + + [BR-55]-Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25). + + + + + + + + + + + + + + + + BR-CO-26 + fatal + + + + [BR-CO-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.  + + + + + + + + + + + + + + + + BR-62 + fatal + + + + [BR-62]-The Seller electronic address (BT-34) shall have a Scheme identifier. + + + + + + + + + + + + + + + + BR-09 + fatal + + + + [BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40). + + + + + + + + + + + + + + + + BR-18 + fatal + + + + [BR-18]-The Seller tax representative name (BT-62) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11) + + + + + + + + + + BR-19 + fatal + + + + [BR-19]-The Seller tax representative postal address (BG-12) shall be provided in the Invoice, if the Seller (BG-4) has a Seller tax representative party (BG-11). + + + + + + + + + + BR-56 + fatal + + + + [BR-56]-Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63). + + + + + + + + + + + + + + + + BR-20 + fatal + + + + [BR-20]-The Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69), if the Seller (BG-4) has a Seller tax representative party (BG-11). + + + + + + + + + + + + + + + + BR-CO-14 + fatal + + + + [BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117). + + + + + + + + + + + + + + + + BR-45 + fatal + + + + [BR-45]-Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116). + + + + + + + + + + BR-46 + fatal + + + + [BR-46]-Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117). + + + + + + + + + + BR-47 + fatal + + + + [BR-47]-Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118). + + + + + + + + + + BR-48 + fatal + + + + [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-17 + fatal + + + + [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 + fatal + + + + [BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2. + + + + + + + + + + BR-DEC-20 + fatal + + + + [BR-DEC-20]-The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.     + + + + + + + + + + + + + + + + BR-CO-09 + fatal + + + + [BR-CO-09]-The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’. + + + + + + + + + + + + + + + + BR-AE-08 + fatal + + + + [BR-AE-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Reverse charge". + + + + + + + + + + BR-AE-09 + fatal + + + + [BR-AE-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Reverse charge" shall be 0 (zero). + + + + + + + + + + BR-AE-10 + fatal + + + + [BR-AE-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "Reverse charge" shall have a VAT exemption reason code (BT-121), meaning "Reverse charge" or the VAT exemption reason text (BT-120) "Reverse charge" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-AE-06 + fatal + + + + [BR-AE-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-AE-07 + fatal + + + + [BR-AE-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-AE-05 + fatal + + + + [BR-AE-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Reverse charge" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-E-08 + fatal + + + + [BR-E-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Exempt from VAT" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Exempt from VAT". + + + + + + + + + + BR-E-09 + fatal + + + + [BR-E-09]-The VAT category tax amount (BT-117) In a VAT breakdown (BG-23) where the VAT category code (BT-118) equals "Exempt from VAT" shall equal 0 (zero). + + + + + + + + + + BR-E-10 + fatal + + + + [BR-E-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "Exempt from VAT" shall have a VAT exemption reason code (BT-121) or a VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-E-06 + fatal + + + + [BR-E-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Exempt from VAT", the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-E-07 + fatal + + + + [BR-E-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT", the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-E-05 + fatal + + + + [BR-E-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Exempt from VAT", the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-08 + fatal + + + + [BR-G-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Export outside the EU". + + + + + + + + + + BR-G-09 + fatal + + + + [BR-G-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Export outside the EU" shall be 0 (zero). + + + + + + + + + + BR-G-10 + fatal + + + + [BR-G-10]-A VAT breakdown (BG-23) with the VAT Category code (BT-118) "Export outside the EU" shall have a VAT exemption reason code (BT-121), meaning "Export outside the EU" or the VAT exemption reason text (BT-120) "Export outside the EU" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-G-06 + fatal + + + + [BR-G-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-07 + fatal + + + + [BR-G-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-G-05 + fatal + + + + [BR-G-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Export outside the EU" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-08 + fatal + + + + [BR-IC-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Intra-community supply". + + + + + + + + + + BR-IC-09 + fatal + + + + [BR-IC-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" shall be 0 (zero). + + + + + + + + + + BR-IC-10 + fatal + + + + [BR-IC-10]-A VAT breakdown (BG-23) with the VAT Category code (BT-118) "Intra-community supply" shall have a VAT exemption reason code (BT-121), meaning "Intra-community supply" or the VAT exemption reason text (BT-120) "Intra-community supply" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-IC-06 + fatal + + + + [BR-IC-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-07 + fatal + + + + [BR-IC-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IC-05 + fatal + + + + [BR-IC-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Intracommunity supply" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-IG-08 + fatal + + + + [BR-IG-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IGIC", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IGIC" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-IG-09 + fatal + + + + [BR-IG-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IGIC" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-IG-10 + fatal + + + + [BR-IG-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "IGIC" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-IG-06 + fatal + + + + [BR-IG-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IG-07 + fatal + + + + [BR-IG-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IG-05 + fatal + + + + [BR-IG-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" the invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IP-08 + fatal + + + + [BR-IP-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IPSI", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IPSI" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-IP-09 + fatal + + + + [BR-IP-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "IPSI" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-IP-10 + fatal + + + + [BR-IP-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "IPSI" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-IP-06 + fatal + + + + [BR-IP-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IPSI" the Document level allowance VAT rate (BT-96) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IP-07 + fatal + + + + [BR-IP-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IPSI" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-IP-05 + fatal + + + + [BR-IP-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" the Invoiced item VAT rate (BT-152) shall be 0 (zero) or greater than zero. + + + + + + + + + + + + + + + + BR-O-08 + fatal + + + + [BR-O-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is " Not subject to VAT" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Not subject to VAT". + + + + + + + + + + BR-O-09 + fatal + + + + [BR-O-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Not subject to VAT" shall be 0 (zero). + + + + + + + + + + BR-O-10 + fatal + + + + [BR-O-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) " Not subject to VAT" shall have a VAT exemption reason code (BT-121), meaning " Not subject to VAT" or a VAT exemption reason text (BT-120) " Not subject to VAT" (or the equivalent standard text in another language). + + + + + + + + + + + + + + + + BR-O-06 + fatal + + + + [BR-O-06]-A Document level allowance (BG-20) where VAT category code (BT-95) is "Not subject to VAT" shall not contain a Document level allowance VAT rate (BT-96). + + + + + + + + + + + + + + + + BR-O-07 + fatal + + + + [BR-O-07]-A Document level charge (BG-21) where the VAT category code (BT-102) is "Not subject to VAT" shall not contain a Document level charge VAT rate (BT-103). + + + + + + + + + + + + + + + + BR-O-05 + fatal + + + + [BR-O-05]-An Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT" shall not contain an Invoiced item VAT rate (BT-152). + + + + + + + + + + + + + + + + BR-S-08 + fatal + + + + [BR-S-08]-For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "Standard rated", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "Standard rated" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119). + + + + + + + + + + BR-S-09 + fatal + + + + [BR-S-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Standard rated" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119). + + + + + + + + + + BR-S-10 + fatal + + + + [BR-S-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "Standard rate" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-S-06 + fatal + + + + [BR-S-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate (BT-96) shall be greater than zero. + + + + + + + + + + + + + + + + BR-S-07 + fatal + + + + [BR-S-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Standard rated" the Document level charge VAT rate (BT-103) shall be greater than zero.  + + + + + + + + + + + + + + + + BR-S-05 + fatal + + + + [BR-S-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Standard rated" the Invoiced item VAT rate (BT-152) shall be greater than zero. + + + + + + + + + + + + + + + + BR-Z-08 + fatal + + + + [BR-Z-08]-In a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amount (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are "Zero rated". + + + + + + + + + + BR-Z-09 + fatal + + + + [BR-Z-09]-The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Zero rated" shall equal 0 (zero). + + + + + + + + + + BR-Z-10 + fatal + + + + [BR-Z-10]-A VAT breakdown (BG-23) with VAT Category code (BT-118) "Zero rated" shall not have a VAT exemption reason code (BT-121) or VAT exemption reason text (BT-120). + + + + + + + + + + + + + + + + BR-Z-06 + fatal + + + + [BR-Z-06]-In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" the Document level allowance VAT rate (BT-96) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-Z-07 + fatal + + + + [BR-Z-07]-In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Zero rated" the Document level charge VAT rate (BT-103) shall be 0 (zero). + + + + + + + + + + + + + + + + BR-Z-05 + fatal + + + + [BR-Z-05]-In an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "Zero rated" the Invoiced item VAT rate (BT-152) shall be 0 (zero). + + + + + + + + + + + + + + + + + + + + + + + UBL-SR-51 + fatal + + + + [UBL-SR-51]-An address can only have one third line. + + + + + + + + + + + + + + + + UBL-SR-42 + fatal + + + + [UBL-SR-42]-Party tax scheme shall occur maximum twice in accounting supplier party + + + + + + + + + + + + + + + + UBL-SR-33 + fatal + + + + [UBL-SR-33]-Supporting document description shall occur maximum once + + + + + + + + + + UBL-SR-43 + fatal + + + + [UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50) + + + + + + + + + + + + + + + + UBL-DT-01 + fatal + + + + [UBL-DT-01]-Amounts shall be decimal up to two fraction digits + + + + + + + + + + + + + + + + UBL-DT-06 + fatal + + + + [UBL-DT-06]-Binary object elements shall contain the mime code attribute + + + + + + + + + + UBL-DT-07 + fatal + + + + [UBL-DT-07]-Binary object elements shall contain the file name attribute + + + + + + + + + + + + + + + + UBL-SR-25 + fatal + + + + [UBL-SR-25]-Deliver to party name shall occur maximum once + + + + + + + + + + + + + + + + UBL-SR-30 + fatal + + + + [UBL-SR-30]-Document level allowance reason shall occur maximum once + + + + + + + + + + + + + + + + UBL-SR-31 + fatal + + + + [UBL-SR-31]-Document level charge reason shall occur maximum once + + + + + + + + + + + + + + + + UBL-SR-53 + fatal + + + + [UBL-SR-53]- CompanyID (VAT Identifier) must be stated when providing the PartyTaxScheme/TaxScheme/ID. + + + + + + + + + + + + + + + + UBL-CR-001 + warning + + + + [UBL-CR-001]-A UBL invoice should not include extensions + + + + + + + + + + UBL-CR-002 + warning + + + + [UBL-CR-002]-A UBL invoice should not include the UBLVersionID or it should be 2.1 + + + + + + + + + + UBL-CR-003 + warning + + + + [UBL-CR-003]-A UBL invoice should not include the ProfileExecutionID + + + + + + + + + + UBL-CR-004 + warning + + + + [UBL-CR-004]-A UBL invoice should not include the CopyIndicator + + + + + + + + + + UBL-CR-005 + warning + + + + [UBL-CR-005]-A UBL invoice should not include the UUID + + + + + + + + + + UBL-CR-006 + warning + + + + [UBL-CR-006]-A UBL invoice should not include the IssueTime + + + + + + + + + + UBL-CR-007 + warning + + + + [UBL-CR-007]-A UBL invoice should not include the PricingCurrencyCode + + + + + + + + + + UBL-CR-008 + warning + + + + [UBL-CR-008]-A UBL invoice should not include the PaymentCurrencyCode + + + + + + + + + + UBL-CR-009 + warning + + + + [UBL-CR-009]-A UBL invoice should not include the PaymentAlternativeCurrencyCode + + + + + + + + + + UBL-CR-010 + warning + + + + [UBL-CR-010]-A UBL invoice should not include the AccountingCostCode + + + + + + + + + + UBL-CR-011 + warning + + + + [UBL-CR-011]-A UBL invoice should not include the LineCountNumeric + + + + + + + + + + UBL-CR-012 + warning + + + + [UBL-CR-012]-A UBL invoice should not include the InvoicePeriod StartTime + + + + + + + + + + UBL-CR-013 + warning + + + + [UBL-CR-013]-A UBL invoice should not include the InvoicePeriod EndTime + + + + + + + + + + UBL-CR-014 + warning + + + + [UBL-CR-014]-A UBL invoice should not include the InvoicePeriod DurationMeasure + + + + + + + + + + UBL-CR-015 + warning + + + + [UBL-CR-015]-A UBL invoice should not include the InvoicePeriod Description + + + + + + + + + + UBL-CR-016 + warning + + + + [UBL-CR-016]-A UBL invoice should not include the OrderReference CopyIndicator + + + + + + + + + + UBL-CR-017 + warning + + + + [UBL-CR-017]-A UBL invoice should not include the OrderReference UUID + + + + + + + + + + UBL-CR-018 + warning + + + + [UBL-CR-018]-A UBL invoice should not include the OrderReference IssueDate + + + + + + + + + + UBL-CR-019 + warning + + + + [UBL-CR-019]-A UBL invoice should not include the OrderReference IssueTime + + + + + + + + + + UBL-CR-020 + warning + + + + [UBL-CR-020]-A UBL invoice should not include the OrderReference CustomerReference + + + + + + + + + + UBL-CR-021 + warning + + + + [UBL-CR-021]-A UBL invoice should not include the OrderReference OrderTypeCode + + + + + + + + + + UBL-CR-022 + warning + + + + [UBL-CR-022]-A UBL invoice should not include the OrderReference DocumentReference + + + + + + + + + + UBL-CR-023 + warning + + + + [UBL-CR-023]-A UBL invoice should not include the BillingReference CopyIndicator + + + + + + + + + + UBL-CR-024 + warning + + + + [UBL-CR-024]-A UBL invoice should not include the BillingReference UUID + + + + + + + + + + UBL-CR-025 + warning + + + + [UBL-CR-025]-A UBL invoice should not include the BillingReference IssueTime + + + + + + + + + + UBL-CR-026 + warning + + + + [UBL-CR-026]-A UBL invoice should not include the BillingReference DocumentTypeCode + + + + + + + + + + UBL-CR-027 + warning + + + + [UBL-CR-027]-A UBL invoice should not include the BillingReference DocumentType + + + + + + + + + + UBL-CR-028 + warning + + + + [UBL-CR-028]-A UBL invoice should not include the BillingReference Xpath + + + + + + + + + + UBL-CR-029 + warning + + + + [UBL-CR-029]-A UBL invoice should not include the BillingReference LanguageID + + + + + + + + + + UBL-CR-030 + warning + + + + [UBL-CR-030]-A UBL invoice should not include the BillingReference LocaleCode + + + + + + + + + + UBL-CR-031 + warning + + + + [UBL-CR-031]-A UBL invoice should not include the BillingReference VersionID + + + + + + + + + + UBL-CR-032 + warning + + + + [UBL-CR-032]-A UBL invoice should not include the BillingReference DocumentStatusCode + + + + + + + + + + UBL-CR-033 + warning + + + + [UBL-CR-033]-A UBL invoice should not include the BillingReference DocumenDescription + + + + + + + + + + UBL-CR-034 + warning + + + + [UBL-CR-034]-A UBL invoice should not include the BillingReference Attachment + + + + + + + + + + UBL-CR-035 + warning + + + + [UBL-CR-035]-A UBL invoice should not include the BillingReference ValidityPeriod + + + + + + + + + + UBL-CR-036 + warning + + + + [UBL-CR-036]-A UBL invoice should not include the BillingReference IssuerParty + + + + + + + + + + UBL-CR-037 + warning + + + + [UBL-CR-037]-A UBL invoice should not include the BillingReference ResultOfVerification + + + + + + + + + + UBL-CR-038 + warning + + + + [UBL-CR-038]-A UBL invoice should not include the BillingReference SelfBilledInvoiceDocumentReference + + + + + + + + + + UBL-CR-039 + warning + + + + [UBL-CR-039]-A UBL invoice should not include the BillingReference CreditNoteDocumentReference + + + + + + + + + + UBL-CR-040 + warning + + + + [UBL-CR-040]-A UBL invoice should not include the BillingReference SelfBilledCreditNoteDocumentReference + + + + + + + + + + UBL-CR-041 + warning + + + + [UBL-CR-041]-A UBL invoice should not include the BillingReference DebitNoteDocumentReference + + + + + + + + + + UBL-CR-042 + warning + + + + [UBL-CR-042]-A UBL invoice should not include the BillingReference ReminderDocumentReference + + + + + + + + + + UBL-CR-043 + warning + + + + [UBL-CR-043]-A UBL invoice should not include the BillingReference AdditionalDocumentReference + + + + + + + + + + UBL-CR-044 + warning + + + + [UBL-CR-044]-A UBL invoice should not include the BillingReference BillingReferenceLine + + + + + + + + + + UBL-CR-045 + warning + + + + [UBL-CR-045]-A UBL invoice should not include the DespatchDocumentReference CopyIndicator + + + + + + + + + + UBL-CR-046 + warning + + + + [UBL-CR-046]-A UBL invoice should not include the DespatchDocumentReference UUID + + + + + + + + + + UBL-CR-047 + warning + + + + [UBL-CR-047]-A UBL invoice should not include the DespatchDocumentReference IssueDate + + + + + + + + + + UBL-CR-048 + warning + + + + [UBL-CR-048]-A UBL invoice should not include the DespatchDocumentReference IssueTime + + + + + + + + + + UBL-CR-049 + warning + + + + [UBL-CR-049]-A UBL invoice should not include the DespatchDocumentReference DocumentTypeCode + + + + + + + + + + UBL-CR-050 + warning + + + + [UBL-CR-050]-A UBL invoice should not include the DespatchDocumentReference DocumentType + + + + + + + + + + UBL-CR-051 + warning + + + + [UBL-CR-051]-A UBL invoice should not include the DespatchDocumentReference Xpath + + + + + + + + + + UBL-CR-052 + warning + + + + [UBL-CR-052]-A UBL invoice should not include the DespatchDocumentReference LanguageID + + + + + + + + + + UBL-CR-053 + warning + + + + [UBL-CR-053]-A UBL invoice should not include the DespatchDocumentReference LocaleCode + + + + + + + + + + UBL-CR-054 + warning + + + + [UBL-CR-054]-A UBL invoice should not include the DespatchDocumentReference VersionID + + + + + + + + + + UBL-CR-055 + warning + + + + [UBL-CR-055]-A UBL invoice should not include the DespatchDocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-056 + warning + + + + [UBL-CR-056]-A UBL invoice should not include the DespatchDocumentReference DocumentDescription + + + + + + + + + + UBL-CR-057 + warning + + + + [UBL-CR-057]-A UBL invoice should not include the DespatchDocumentReference Attachment + + + + + + + + + + UBL-CR-058 + warning + + + + [UBL-CR-058]-A UBL invoice should not include the DespatchDocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-059 + warning + + + + [UBL-CR-059]-A UBL invoice should not include the DespatchDocumentReference IssuerParty + + + + + + + + + + UBL-CR-060 + warning + + + + [UBL-CR-060]-A UBL invoice should not include the DespatchDocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-061 + warning + + + + [UBL-CR-061]-A UBL invoice should not include the ReceiptDocumentReference CopyIndicator + + + + + + + + + + UBL-CR-062 + warning + + + + [UBL-CR-062]-A UBL invoice should not include the ReceiptDocumentReference UUID + + + + + + + + + + UBL-CR-063 + warning + + + + [UBL-CR-063]-A UBL invoice should not include the ReceiptDocumentReference IssueDate + + + + + + + + + + UBL-CR-064 + warning + + + + [UBL-CR-064]-A UBL invoice should not include the ReceiptDocumentReference IssueTime + + + + + + + + + + UBL-CR-065 + warning + + + + [UBL-CR-065]-A UBL invoice should not include the ReceiptDocumentReference DocumentTypeCode + + + + + + + + + + UBL-CR-066 + warning + + + + [UBL-CR-066]-A UBL invoice should not include the ReceiptDocumentReference DocumentType + + + + + + + + + + UBL-CR-067 + warning + + + + [UBL-CR-067]-A UBL invoice should not include the ReceiptDocumentReference Xpath + + + + + + + + + + UBL-CR-068 + warning + + + + [UBL-CR-068]-A UBL invoice should not include the ReceiptDocumentReference LanguageID + + + + + + + + + + UBL-CR-069 + warning + + + + [UBL-CR-069]-A UBL invoice should not include the ReceiptDocumentReference LocaleCode + + + + + + + + + + UBL-CR-070 + warning + + + + [UBL-CR-070]-A UBL invoice should not include the ReceiptDocumentReference VersionID + + + + + + + + + + UBL-CR-071 + warning + + + + [UBL-CR-071]-A UBL invoice should not include the ReceiptDocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-072 + warning + + + + [UBL-CR-072]-A UBL invoice should not include the ReceiptDocumentReference DocumentDescription + + + + + + + + + + UBL-CR-073 + warning + + + + [UBL-CR-073]-A UBL invoice should not include the ReceiptDocumentReference Attachment + + + + + + + + + + UBL-CR-074 + warning + + + + [UBL-CR-074]-A UBL invoice should not include the ReceiptDocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-075 + warning + + + + [UBL-CR-075]-A UBL invoice should not include the ReceiptDocumentReference IssuerParty + + + + + + + + + + UBL-CR-076 + warning + + + + [UBL-CR-076]-A UBL invoice should not include the ReceiptDocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-077 + warning + + + + [UBL-CR-077]-A UBL invoice should not include the StatementDocumentReference + + + + + + + + + + UBL-CR-078 + warning + + + + [UBL-CR-078]-A UBL invoice should not include the OriginatorDocumentReference CopyIndicator + + + + + + + + + + UBL-CR-079 + warning + + + + [UBL-CR-079]-A UBL invoice should not include the OriginatorDocumentReference UUID + + + + + + + + + + UBL-CR-080 + warning + + + + [UBL-CR-080]-A UBL invoice should not include the OriginatorDocumentReference IssueDate + + + + + + + + + + UBL-CR-081 + warning + + + + [UBL-CR-081]-A UBL invoice should not include the OriginatorDocumentReference IssueTime + + + + + + + + + + UBL-CR-082 + warning + + + + [UBL-CR-082]-A UBL invoice should not include the OriginatorDocumentReference DocumentTypeCode + + + + + + + + + + UBL-CR-083 + warning + + + + [UBL-CR-083]-A UBL invoice should not include the OriginatorDocumentReference DocumentType + + + + + + + + + + UBL-CR-084 + warning + + + + [UBL-CR-084]-A UBL invoice should not include the OriginatorDocumentReference Xpath + + + + + + + + + + UBL-CR-085 + warning + + + + [UBL-CR-085]-A UBL invoice should not include the OriginatorDocumentReference LanguageID + + + + + + + + + + UBL-CR-086 + warning + + + + [UBL-CR-086]-A UBL invoice should not include the OriginatorDocumentReference LocaleCode + + + + + + + + + + UBL-CR-087 + warning + + + + [UBL-CR-087]-A UBL invoice should not include the OriginatorDocumentReference VersionID + + + + + + + + + + UBL-CR-088 + warning + + + + [UBL-CR-088]-A UBL invoice should not include the OriginatorDocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-089 + warning + + + + [UBL-CR-089]-A UBL invoice should not include the OriginatorDocumentReference DocumentDescription + + + + + + + + + + UBL-CR-090 + warning + + + + [UBL-CR-090]-A UBL invoice should not include the OriginatorDocumentReference Attachment + + + + + + + + + + UBL-CR-091 + warning + + + + [UBL-CR-091]-A UBL invoice should not include the OriginatorDocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-092 + warning + + + + [UBL-CR-092]-A UBL invoice should not include the OriginatorDocumentReference IssuerParty + + + + + + + + + + UBL-CR-093 + warning + + + + [UBL-CR-093]-A UBL invoice should not include the OriginatorDocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-094 + warning + + + + [UBL-CR-094]-A UBL invoice should not include the ContractDocumentReference CopyIndicator + + + + + + + + + + UBL-CR-095 + warning + + + + [UBL-CR-095]-A UBL invoice should not include the ContractDocumentReference UUID + + + + + + + + + + UBL-CR-096 + warning + + + + [UBL-CR-096]-A UBL invoice should not include the ContractDocumentReference IssueDate + + + + + + + + + + UBL-CR-097 + warning + + + + [UBL-CR-097]-A UBL invoice should not include the ContractDocumentReference IssueTime + + + + + + + + + + UBL-CR-098 + warning + + + + [UBL-CR-098]-A UBL invoice should not include the ContractDocumentReference DocumentTypeCode + + + + + + + + + + UBL-CR-099 + warning + + + + [UBL-CR-099]-A UBL invoice should not include the ContractDocumentReference DocumentType + + + + + + + + + + UBL-CR-100 + warning + + + + [UBL-CR-100]-A UBL invoice should not include the ContractDocumentReference Xpath + + + + + + + + + + UBL-CR-101 + warning + + + + [UBL-CR-101]-A UBL invoice should not include the ContractDocumentReference LanguageID + + + + + + + + + + UBL-CR-102 + warning + + + + [UBL-CR-102]-A UBL invoice should not include the ContractDocumentReference LocaleCode + + + + + + + + + + UBL-CR-103 + warning + + + + [UBL-CR-103]-A UBL invoice should not include the ContractDocumentReference VersionID + + + + + + + + + + UBL-CR-104 + warning + + + + [UBL-CR-104]-A UBL invoice should not include the ContractDocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-105 + warning + + + + [UBL-CR-105]-A UBL invoice should not include the ContractDocumentReference DocumentDescription + + + + + + + + + + UBL-CR-106 + warning + + + + [UBL-CR-106]-A UBL invoice should not include the ContractDocumentReference Attachment + + + + + + + + + + UBL-CR-107 + warning + + + + [UBL-CR-107]-A UBL invoice should not include the ContractDocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-108 + warning + + + + [UBL-CR-108]-A UBL invoice should not include the ContractDocumentReference IssuerParty + + + + + + + + + + UBL-CR-109 + warning + + + + [UBL-CR-109]-A UBL invoice should not include the ContractDocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-110 + warning + + + + [UBL-CR-110]-A UBL invoice should not include the AdditionalDocumentReference CopyIndicator + + + + + + + + + + UBL-CR-111 + warning + + + + [UBL-CR-111]-A UBL invoice should not include the AdditionalDocumentReference UUID + + + + + + + + + + UBL-CR-112 + warning + + + + [UBL-CR-112]-A UBL invoice should not include the AdditionalDocumentReference IssueDate + + + + + + + + + + UBL-CR-113 + warning + + + + [UBL-CR-113]-A UBL invoice should not include the AdditionalDocumentReference IssueTime + + + + + + + + + + UBL-CR-114 + warning + + + + [UBL-CR-114]-A UBL invoice should not include the AdditionalDocumentReference DocumentType + + + + + + + + + + UBL-CR-115 + warning + + + + [UBL-CR-115]-A UBL invoice should not include the AdditionalDocumentReference Xpath + + + + + + + + + + UBL-CR-116 + warning + + + + [UBL-CR-116]-A UBL invoice should not include the AdditionalDocumentReference LanguageID + + + + + + + + + + UBL-CR-117 + warning + + + + [UBL-CR-117]-A UBL invoice should not include the AdditionalDocumentReference LocaleCode + + + + + + + + + + UBL-CR-118 + warning + + + + [UBL-CR-118]-A UBL invoice should not include the AdditionalDocumentReference VersionID + + + + + + + + + + UBL-CR-119 + warning + + + + [UBL-CR-119]-A UBL invoice should not include the AdditionalDocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-121 + warning + + + + [UBL-CR-121]-A UBL invoice should not include the AdditionalDocumentReference Attachment External DocumentHash + + + + + + + + + + UBL-CR-122 + warning + + + + [UBL-CR-122]-A UBL invoice should not include the AdditionalDocumentReference Attachment External HashAlgorithmMethod + + + + + + + + + + UBL-CR-123 + warning + + + + [UBL-CR-123]-A UBL invoice should not include the AdditionalDocumentReference Attachment External ExpiryDate + + + + + + + + + + UBL-CR-124 + warning + + + + [UBL-CR-124]-A UBL invoice should not include the AdditionalDocumentReference Attachment External ExpiryTime + + + + + + + + + + UBL-CR-125 + warning + + + + [UBL-CR-125]-A UBL invoice should not include the AdditionalDocumentReference Attachment External MimeCode + + + + + + + + + + UBL-CR-126 + warning + + + + [UBL-CR-126]-A UBL invoice should not include the AdditionalDocumentReference Attachment External FormatCode + + + + + + + + + + UBL-CR-127 + warning + + + + [UBL-CR-127]-A UBL invoice should not include the AdditionalDocumentReference Attachment External EncodingCode + + + + + + + + + + UBL-CR-128 + warning + + + + [UBL-CR-128]-A UBL invoice should not include the AdditionalDocumentReference Attachment External CharacterSetCode + + + + + + + + + + UBL-CR-129 + warning + + + + [UBL-CR-129]-A UBL invoice should not include the AdditionalDocumentReference Attachment External FileName + + + + + + + + + + UBL-CR-130 + warning + + + + [UBL-CR-130]-A UBL invoice should not include the AdditionalDocumentReference Attachment External Descriprion + + + + + + + + + + UBL-CR-131 + warning + + + + [UBL-CR-131]-A UBL invoice should not include the AdditionalDocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-132 + warning + + + + [UBL-CR-132]-A UBL invoice should not include the AdditionalDocumentReference IssuerParty + + + + + + + + + + UBL-CR-133 + warning + + + + [UBL-CR-133]-A UBL invoice should not include the AdditionalDocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-134 + warning + + + + [UBL-CR-134]-A UBL invoice should not include the ProjectReference UUID + + + + + + + + + + UBL-CR-135 + warning + + + + [UBL-CR-135]-A UBL invoice should not include the ProjectReference IssueDate + + + + + + + + + + UBL-CR-136 + warning + + + + [UBL-CR-136]-A UBL invoice should not include the ProjectReference WorkPhaseReference + + + + + + + + + + UBL-CR-137 + warning + + + + [UBL-CR-137]-A UBL invoice should not include the Signature + + + + + + + + + + UBL-CR-138 + warning + + + + [UBL-CR-138]-A UBL invoice should not include the AccountingSupplierParty CustomerAssignedAccountID + + + + + + + + + + UBL-CR-139 + warning + + + + [UBL-CR-139]-A UBL invoice should not include the AccountingSupplierParty AdditionalAccountID + + + + + + + + + + UBL-CR-140 + warning + + + + [UBL-CR-140]-A UBL invoice should not include the AccountingSupplierParty DataSendingCapability + + + + + + + + + + UBL-CR-141 + warning + + + + [UBL-CR-141]-A UBL invoice should not include the AccountingSupplierParty Party MarkCareIndicator + + + + + + + + + + UBL-CR-142 + warning + + + + [UBL-CR-142]-A UBL invoice should not include the AccountingSupplierParty Party MarkAttentionIndicator + + + + + + + + + + UBL-CR-143 + warning + + + + [UBL-CR-143]-A UBL invoice should not include the AccountingSupplierParty Party WebsiteURI + + + + + + + + + + UBL-CR-144 + warning + + + + [UBL-CR-144]-A UBL invoice should not include the AccountingSupplierParty Party LogoReferenceID + + + + + + + + + + UBL-CR-145 + warning + + + + [UBL-CR-145]-A UBL invoice should not include the AccountingSupplierParty Party IndustryClassificationCode + + + + + + + + + + UBL-CR-146 + warning + + + + [UBL-CR-146]-A UBL invoice should not include the AccountingSupplierParty Party Language + + + + + + + + + + UBL-CR-147 + warning + + + + [UBL-CR-147]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress ID + + + + + + + + + + UBL-CR-148 + warning + + + + [UBL-CR-148]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress AddressTypeCode + + + + + + + + + + UBL-CR-149 + warning + + + + [UBL-CR-149]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress AddressFormatCode + + + + + + + + + + UBL-CR-150 + warning + + + + [UBL-CR-150]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Postbox + + + + + + + + + + UBL-CR-151 + warning + + + + [UBL-CR-151]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Floor + + + + + + + + + + UBL-CR-152 + warning + + + + [UBL-CR-152]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Room + + + + + + + + + + UBL-CR-153 + warning + + + + [UBL-CR-153]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BlockName + + + + + + + + + + UBL-CR-154 + warning + + + + [UBL-CR-154]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BuildingName + + + + + + + + + + UBL-CR-155 + warning + + + + [UBL-CR-155]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BuildingNumber + + + + + + + + + + UBL-CR-156 + warning + + + + [UBL-CR-156]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress InhouseMail + + + + + + + + + + UBL-CR-157 + warning + + + + [UBL-CR-157]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Department + + + + + + + + + + UBL-CR-158 + warning + + + + [UBL-CR-158]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress MarkAttention + + + + + + + + + + UBL-CR-159 + warning + + + + [UBL-CR-159]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress MarkCare + + + + + + + + + + UBL-CR-160 + warning + + + + [UBL-CR-160]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress PlotIdentification + + + + + + + + + + UBL-CR-161 + warning + + + + [UBL-CR-161]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress CitySubdivisionName + + + + + + + + + + UBL-CR-162 + warning + + + + [UBL-CR-162]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress CountrySubentityCode + + + + + + + + + + UBL-CR-163 + warning + + + + [UBL-CR-163]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Region + + + + + + + + + + UBL-CR-164 + warning + + + + [UBL-CR-164]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress District + + + + + + + + + + UBL-CR-165 + warning + + + + [UBL-CR-165]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress TimezoneOffset + + + + + + + + + + UBL-CR-166 + warning + + + + [UBL-CR-166]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Country Name + + + + + + + + + + UBL-CR-167 + warning + + + + [UBL-CR-167]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress LocationCoordinate + + + + + + + + + + UBL-CR-168 + warning + + + + [UBL-CR-168]-A UBL invoice should not include the AccountingSupplierParty Party PhysicalLocation + + + + + + + + + + UBL-CR-169 + warning + + + + [UBL-CR-169]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme RegistrationName + + + + + + + + + + UBL-CR-170 + warning + + + + [UBL-CR-170]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxLevelCode + + + + + + + + + + UBL-CR-171 + warning + + + + [UBL-CR-171]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme ExemptionReasonCode + + + + + + + + + + UBL-CR-172 + warning + + + + [UBL-CR-172]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme ExemptionReason + + + + + + + + + + UBL-CR-173 + warning + + + + [UBL-CR-173]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme RegistrationAddress + + + + + + + + + + UBL-CR-174 + warning + + + + [UBL-CR-174]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme Name + + + + + + + + + + UBL-CR-175 + warning + + + + [UBL-CR-175]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-176 + warning + + + + [UBL-CR-176]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-177 + warning + + + + [UBL-CR-177]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-178 + warning + + + + [UBL-CR-178]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationDate + + + + + + + + + + UBL-CR-179 + warning + + + + [UBL-CR-179]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationExpirationDate + + + + + + + + + + UBL-CR-180 + warning + + + + [UBL-CR-180]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CompanyLegalFormCode + + + + + + + + + + UBL-CR-181 + warning + + + + [UBL-CR-181]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity SoleProprietorshipIndicator + + + + + + + + + + UBL-CR-182 + warning + + + + [UBL-CR-182]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CompanyLiquidationStatusCode + + + + + + + + + + UBL-CR-183 + warning + + + + [UBL-CR-183]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CorporateStockAmount + + + + + + + + + + UBL-CR-184 + warning + + + + [UBL-CR-184]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity FullyPaidSharesIndicator + + + + + + + + + + UBL-CR-185 + warning + + + + [UBL-CR-185]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationAddress + + + + + + + + + + UBL-CR-186 + warning + + + + [UBL-CR-186]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CorporateRegistrationScheme + + + + + + + + + + UBL-CR-187 + warning + + + + [UBL-CR-187]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity HeadOfficeParty + + + + + + + + + + UBL-CR-188 + warning + + + + [UBL-CR-188]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity ShareholderParty + + + + + + + + + + UBL-CR-189 + warning + + + + [UBL-CR-189]-A UBL invoice should not include the AccountingSupplierParty Party Contact ID + + + + + + + + + + UBL-CR-190 + warning + + + + [UBL-CR-190]-A UBL invoice should not include the AccountingSupplierParty Party Contact Telefax + + + + + + + + + + UBL-CR-191 + warning + + + + [UBL-CR-191]-A UBL invoice should not include the AccountingSupplierParty Party Contact Note + + + + + + + + + + UBL-CR-192 + warning + + + + [UBL-CR-192]-A UBL invoice should not include the AccountingSupplierParty Party Contact OtherCommunication + + + + + + + + + + UBL-CR-193 + warning + + + + [UBL-CR-193]-A UBL invoice should not include the AccountingSupplierParty Party Person + + + + + + + + + + UBL-CR-194 + warning + + + + [UBL-CR-194]-A UBL invoice should not include the AccountingSupplierParty Party AgentParty + + + + + + + + + + UBL-CR-195 + warning + + + + [UBL-CR-195]-A UBL invoice should not include the AccountingSupplierParty Party ServiceProviderParty + + + + + + + + + + UBL-CR-196 + warning + + + + [UBL-CR-196]-A UBL invoice should not include the AccountingSupplierParty Party PowerOfAttorney + + + + + + + + + + UBL-CR-197 + warning + + + + [UBL-CR-197]-A UBL invoice should not include the AccountingSupplierParty Party FinancialAccount + + + + + + + + + + UBL-CR-198 + warning + + + + [UBL-CR-198]-A UBL invoice should not include the AccountingSupplierParty DespatchContact + + + + + + + + + + UBL-CR-199 + warning + + + + [UBL-CR-199]-A UBL invoice should not include the AccountingSupplierParty AccountingContact + + + + + + + + + + UBL-CR-200 + warning + + + + [UBL-CR-200]-A UBL invoice should not include the AccountingSupplierParty SellerContact + + + + + + + + + + UBL-CR-201 + warning + + + + [UBL-CR-201]-A UBL invoice should not include the AccountingCustomerParty CustomerAssignedAccountID + + + + + + + + + + UBL-CR-202 + warning + + + + [UBL-CR-202]-A UBL invoice should not include the AccountingCustomerParty SupplierAssignedAccountID + + + + + + + + + + UBL-CR-203 + warning + + + + [UBL-CR-203]-A UBL invoice should not include the AccountingCustomerParty AdditionalAccountID + + + + + + + + + + UBL-CR-204 + warning + + + + [UBL-CR-204]-A UBL invoice should not include the AccountingCustomerParty Party MarkCareIndicator + + + + + + + + + + UBL-CR-205 + warning + + + + [UBL-CR-205]-A UBL invoice should not include the AccountingCustomerParty Party MarkAttentionIndicator + + + + + + + + + + UBL-CR-206 + warning + + + + [UBL-CR-206]-A UBL invoice should not include the AccountingCustomerParty Party WebsiteURI + + + + + + + + + + UBL-CR-207 + warning + + + + [UBL-CR-207]-A UBL invoice should not include the AccountingCustomerParty Party LogoReferenceID + + + + + + + + + + UBL-CR-208 + warning + + + + [UBL-CR-208]-A UBL invoice should not include the AccountingCustomerParty Party IndustryClassificationCode + + + + + + + + + + UBL-CR-209 + warning + + + + [UBL-CR-209]-A UBL invoice should not include the AccountingCustomerParty Party Language + + + + + + + + + + UBL-CR-210 + warning + + + + [UBL-CR-210]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress ID + + + + + + + + + + UBL-CR-211 + warning + + + + [UBL-CR-211]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress AddressTypeCode + + + + + + + + + + UBL-CR-212 + warning + + + + [UBL-CR-212]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress AddressFormatCode + + + + + + + + + + UBL-CR-213 + warning + + + + [UBL-CR-213]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Postbox + + + + + + + + + + UBL-CR-214 + warning + + + + [UBL-CR-214]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Floor + + + + + + + + + + UBL-CR-215 + warning + + + + [UBL-CR-215]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Room + + + + + + + + + + UBL-CR-216 + warning + + + + [UBL-CR-216]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BlockName + + + + + + + + + + UBL-CR-217 + warning + + + + [UBL-CR-217]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BuildingName + + + + + + + + + + UBL-CR-218 + warning + + + + [UBL-CR-218]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BuildingNumber + + + + + + + + + + UBL-CR-219 + warning + + + + [UBL-CR-219]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress InhouseMail + + + + + + + + + + UBL-CR-220 + warning + + + + [UBL-CR-220]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Department + + + + + + + + + + UBL-CR-221 + warning + + + + [UBL-CR-221]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress MarkAttention + + + + + + + + + + UBL-CR-222 + warning + + + + [UBL-CR-222]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress MarkCare + + + + + + + + + + UBL-CR-223 + warning + + + + [UBL-CR-223]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress PlotIdentification + + + + + + + + + + UBL-CR-224 + warning + + + + [UBL-CR-224]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress CitySubdivisionName + + + + + + + + + + UBL-CR-225 + warning + + + + [UBL-CR-225]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress CountrySubentityCode + + + + + + + + + + UBL-CR-226 + warning + + + + [UBL-CR-226]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Region + + + + + + + + + + UBL-CR-227 + warning + + + + [UBL-CR-227]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress District + + + + + + + + + + UBL-CR-228 + warning + + + + [UBL-CR-228]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress TimezoneOffset + + + + + + + + + + UBL-CR-229 + warning + + + + [UBL-CR-229]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Country Name + + + + + + + + + + UBL-CR-230 + warning + + + + [UBL-CR-230]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress LocationCoordinate + + + + + + + + + + UBL-CR-231 + warning + + + + [UBL-CR-231]-A UBL invoice should not include the AccountingCustomerParty Party PhysicalLocation + + + + + + + + + + UBL-CR-232 + warning + + + + [UBL-CR-232]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme RegistrationName + + + + + + + + + + UBL-CR-233 + warning + + + + [UBL-CR-233]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxLevelCode + + + + + + + + + + UBL-CR-234 + warning + + + + [UBL-CR-234]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme ExemptionReasonCode + + + + + + + + + + UBL-CR-235 + warning + + + + [UBL-CR-235]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme ExemptionReason + + + + + + + + + + UBL-CR-236 + warning + + + + [UBL-CR-236]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme RegistrationAddress + + + + + + + + + + UBL-CR-237 + warning + + + + [UBL-CR-237]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme Name + + + + + + + + + + UBL-CR-238 + warning + + + + [UBL-CR-238]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-239 + warning + + + + [UBL-CR-239]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-240 + warning + + + + [UBL-CR-240]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-241 + warning + + + + [UBL-CR-241]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationDate + + + + + + + + + + UBL-CR-242 + warning + + + + [UBL-CR-242]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationExpirationDate + + + + + + + + + + UBL-CR-243 + warning + + + + [UBL-CR-243]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLegalFormCode + + + + + + + + + + UBL-CR-244 + warning + + + + [UBL-CR-244]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLegalForm + + + + + + + + + + UBL-CR-245 + warning + + + + [UBL-CR-245]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity SoleProprietorshipIndicator + + + + + + + + + + UBL-CR-246 + warning + + + + [UBL-CR-246]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLiquidationStatusCode + + + + + + + + + + UBL-CR-247 + warning + + + + [UBL-CR-247]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CorporateStockAmount + + + + + + + + + + UBL-CR-248 + warning + + + + [UBL-CR-248]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity FullyPaidSharesIndicator + + + + + + + + + + UBL-CR-249 + warning + + + + [UBL-CR-249]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationAddress + + + + + + + + + + UBL-CR-250 + warning + + + + [UBL-CR-250]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CorporateRegistrationScheme + + + + + + + + + + UBL-CR-251 + warning + + + + [UBL-CR-251]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity HeadOfficeParty + + + + + + + + + + UBL-CR-252 + warning + + + + [UBL-CR-252]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity ShareholderParty + + + + + + + + + + UBL-CR-253 + warning + + + + [UBL-CR-253]-A UBL invoice should not include the AccountingCustomerParty Party Contact ID + + + + + + + + + + UBL-CR-254 + warning + + + + [UBL-CR-254]-A UBL invoice should not include the AccountingCustomerParty Party Contact Telefax + + + + + + + + + + UBL-CR-255 + warning + + + + [UBL-CR-255]-A UBL invoice should not include the AccountingCustomerParty Party Contact Note + + + + + + + + + + UBL-CR-256 + warning + + + + [UBL-CR-256]-A UBL invoice should not include the AccountingCustomerParty Party Contact OtherCommunication + + + + + + + + + + UBL-CR-257 + warning + + + + [UBL-CR-257]-A UBL invoice should not include the AccountingCustomerParty Party Person + + + + + + + + + + UBL-CR-258 + warning + + + + [UBL-CR-258]-A UBL invoice should not include the AccountingCustomerParty Party AgentParty + + + + + + + + + + UBL-CR-259 + warning + + + + [UBL-CR-259]-A UBL invoice should not include the AccountingCustomerParty Party ServiceProviderParty + + + + + + + + + + UBL-CR-260 + warning + + + + [UBL-CR-260]-A UBL invoice should not include the AccountingCustomerParty Party PowerOfAttorney + + + + + + + + + + UBL-CR-261 + warning + + + + [UBL-CR-261]-A UBL invoice should not include the AccountingCustomerParty Party FinancialAccount + + + + + + + + + + UBL-CR-262 + warning + + + + [UBL-CR-262]-A UBL invoice should not include the AccountingCustomerParty DeliveryContact + + + + + + + + + + UBL-CR-263 + warning + + + + [UBL-CR-263]-A UBL invoice should not include the AccountingCustomerParty AccountingContact + + + + + + + + + + UBL-CR-264 + warning + + + + [UBL-CR-264]-A UBL invoice should not include the AccountingCustomerParty BuyerContact + + + + + + + + + + UBL-CR-265 + warning + + + + [UBL-CR-265]-A UBL invoice should not include the PayeeParty MarkCareIndicator + + + + + + + + + + UBL-CR-266 + warning + + + + [UBL-CR-266]-A UBL invoice should not include the PayeeParty MarkAttentionIndicator + + + + + + + + + + UBL-CR-267 + warning + + + + [UBL-CR-267]-A UBL invoice should not include the PayeeParty WebsiteURI + + + + + + + + + + UBL-CR-268 + warning + + + + [UBL-CR-268]-A UBL invoice should not include the PayeeParty LogoReferenceID + + + + + + + + + + UBL-CR-269 + warning + + + + [UBL-CR-269]-A UBL invoice should not include the PayeeParty EndpointID + + + + + + + + + + UBL-CR-270 + warning + + + + [UBL-CR-270]-A UBL invoice should not include the PayeeParty IndustryClassificationCode + + + + + + + + + + UBL-CR-271 + warning + + + + [UBL-CR-271]-A UBL invoice should not include the PayeeParty Language + + + + + + + + + + UBL-CR-272 + warning + + + + [UBL-CR-272]-A UBL invoice should not include the PayeeParty PostalAddress + + + + + + + + + + UBL-CR-273 + warning + + + + [UBL-CR-273]-A UBL invoice should not include the PayeeParty PhysicalLocation + + + + + + + + + + UBL-CR-274 + warning + + + + [UBL-CR-274]-A UBL invoice should not include the PayeeParty PartyTaxScheme + + + + + + + + + + UBL-CR-275 + warning + + + + [UBL-CR-275]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationName + + + + + + + + + + UBL-CR-276 + warning + + + + [UBL-CR-276]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationDate + + + + + + + + + + UBL-CR-277 + warning + + + + [UBL-CR-277]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationExpirationDate + + + + + + + + + + UBL-CR-278 + warning + + + + [UBL-CR-278]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLegalFormCode + + + + + + + + + + UBL-CR-279 + warning + + + + [UBL-CR-279]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLegalForm + + + + + + + + + + UBL-CR-280 + warning + + + + [UBL-CR-280]-A UBL invoice should not include the PayeeParty PartyLegalEntity SoleProprietorshipIndicator + + + + + + + + + + UBL-CR-281 + warning + + + + [UBL-CR-281]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLiquidationStatusCode + + + + + + + + + + UBL-CR-282 + warning + + + + [UBL-CR-282]-A UBL invoice should not include the PayeeParty PartyLegalEntity CorporateStockAmount + + + + + + + + + + UBL-CR-283 + warning + + + + [UBL-CR-283]-A UBL invoice should not include the PayeeParty PartyLegalEntity FullyPaidSharesIndicator + + + + + + + + + + UBL-CR-284 + warning + + + + [UBL-CR-284]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationAddress + + + + + + + + + + UBL-CR-285 + warning + + + + [UBL-CR-285]-A UBL invoice should not include the PayeeParty PartyLegalEntity CorporateRegistrationScheme + + + + + + + + + + UBL-CR-286 + warning + + + + [UBL-CR-286]-A UBL invoice should not include the PayeeParty PartyLegalEntity HeadOfficeParty + + + + + + + + + + UBL-CR-287 + warning + + + + [UBL-CR-287]-A UBL invoice should not include the PayeeParty PartyLegalEntity ShareholderParty + + + + + + + + + + UBL-CR-288 + warning + + + + [UBL-CR-288]-A UBL invoice should not include the PayeeParty Contact + + + + + + + + + + UBL-CR-289 + warning + + + + [UBL-CR-289]-A UBL invoice should not include the PayeeParty Person + + + + + + + + + + UBL-CR-290 + warning + + + + [UBL-CR-290]-A UBL invoice should not include the PayeeParty AgentParty + + + + + + + + + + UBL-CR-291 + warning + + + + [UBL-CR-291]-A UBL invoice should not include the PayeeParty ServiceProviderParty + + + + + + + + + + UBL-CR-292 + warning + + + + [UBL-CR-292]-A UBL invoice should not include the PayeeParty PowerOfAttorney + + + + + + + + + + UBL-CR-293 + warning + + + + [UBL-CR-293]-A UBL invoice should not include the PayeeParty FinancialAccount + + + + + + + + + + UBL-CR-294 + warning + + + + [UBL-CR-294]-A UBL invoice should not include the BuyerCustomerParty + + + + + + + + + + UBL-CR-295 + warning + + + + [UBL-CR-295]-A UBL invoice should not include the SellerSupplierParty + + + + + + + + + + UBL-CR-296 + warning + + + + [UBL-CR-296]-A UBL invoice should not include the TaxRepresentativeParty MarkCareIndicator + + + + + + + + + + UBL-CR-297 + warning + + + + [UBL-CR-297]-A UBL invoice should not include the TaxRepresentativeParty MarkAttentionIndicator + + + + + + + + + + UBL-CR-298 + warning + + + + [UBL-CR-298]-A UBL invoice should not include the TaxRepresentativeParty WebsiteURI + + + + + + + + + + UBL-CR-299 + warning + + + + [UBL-CR-299]-A UBL invoice should not include the TaxRepresentativeParty LogoReferenceID + + + + + + + + + + UBL-CR-300 + warning + + + + [UBL-CR-300]-A UBL invoice should not include the TaxRepresentativeParty EndpointID + + + + + + + + + + UBL-CR-301 + warning + + + + [UBL-CR-301]-A UBL invoice should not include the TaxRepresentativeParty IndustryClassificationCode + + + + + + + + + + UBL-CR-302 + warning + + + + [UBL-CR-302]-A UBL invoice should not include the TaxRepresentativeParty PartyIdentification + + + + + + + + + + UBL-CR-303 + warning + + + + [UBL-CR-303]-A UBL invoice should not include the TaxRepresentativeParty Language + + + + + + + + + + UBL-CR-304 + warning + + + + [UBL-CR-304]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress ID + + + + + + + + + + UBL-CR-305 + warning + + + + [UBL-CR-305]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress AddressTypeCode + + + + + + + + + + UBL-CR-306 + warning + + + + [UBL-CR-306]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress AddressFormatCode + + + + + + + + + + UBL-CR-307 + warning + + + + [UBL-CR-307]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Postbox + + + + + + + + + + UBL-CR-308 + warning + + + + [UBL-CR-308]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Floor + + + + + + + + + + UBL-CR-309 + warning + + + + [UBL-CR-309]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Room + + + + + + + + + + UBL-CR-310 + warning + + + + [UBL-CR-310]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BlockName + + + + + + + + + + UBL-CR-311 + warning + + + + [UBL-CR-311]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BuildingName + + + + + + + + + + UBL-CR-312 + warning + + + + [UBL-CR-312]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BuildingNumber + + + + + + + + + + UBL-CR-313 + warning + + + + [UBL-CR-313]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress InhouseMail + + + + + + + + + + UBL-CR-314 + warning + + + + [UBL-CR-314]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Department + + + + + + + + + + UBL-CR-315 + warning + + + + [UBL-CR-315]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress MarkAttention + + + + + + + + + + UBL-CR-316 + warning + + + + [UBL-CR-316]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress MarkCare + + + + + + + + + + UBL-CR-317 + warning + + + + [UBL-CR-317]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress PlotIdentification + + + + + + + + + + UBL-CR-318 + warning + + + + [UBL-CR-318]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress CitySubdivisionName + + + + + + + + + + UBL-CR-319 + warning + + + + [UBL-CR-319]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress CountrySubentityCode + + + + + + + + + + UBL-CR-320 + warning + + + + [UBL-CR-320]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Region + + + + + + + + + + UBL-CR-321 + warning + + + + [UBL-CR-321]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress District + + + + + + + + + + UBL-CR-322 + warning + + + + [UBL-CR-322]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress TimezoneOffset + + + + + + + + + + UBL-CR-323 + warning + + + + [UBL-CR-323]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Country Name + + + + + + + + + + UBL-CR-324 + warning + + + + [UBL-CR-324]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress LocationCoordinate + + + + + + + + + + UBL-CR-325 + warning + + + + [UBL-CR-325]-A UBL invoice should not include the TaxRepresentativeParty PhysicalLocation + + + + + + + + + + UBL-CR-326 + warning + + + + [UBL-CR-326]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme RegistrationName + + + + + + + + + + UBL-CR-327 + warning + + + + [UBL-CR-327]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxLevelCode + + + + + + + + + + UBL-CR-328 + warning + + + + [UBL-CR-328]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme ExemptionReasonCode + + + + + + + + + + UBL-CR-329 + warning + + + + [UBL-CR-329]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme ExemptionReason + + + + + + + + + + UBL-CR-330 + warning + + + + [UBL-CR-330]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme RegistrationAddress + + + + + + + + + + UBL-CR-331 + warning + + + + [UBL-CR-331]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme Name + + + + + + + + + + UBL-CR-332 + warning + + + + [UBL-CR-332]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-333 + warning + + + + [UBL-CR-333]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-334 + warning + + + + [UBL-CR-334]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-335 + warning + + + + [UBL-CR-335]-A UBL invoice should not include the TaxRepresentativeParty PartyLegalEntity + + + + + + + + + + UBL-CR-336 + warning + + + + [UBL-CR-336]-A UBL invoice should not include the TaxRepresentativeParty Contact + + + + + + + + + + UBL-CR-337 + warning + + + + [UBL-CR-337]-A UBL invoice should not include the TaxRepresentativeParty Person + + + + + + + + + + UBL-CR-338 + warning + + + + [UBL-CR-338]-A UBL invoice should not include the TaxRepresentativeParty AgentParty + + + + + + + + + + UBL-CR-339 + warning + + + + [UBL-CR-339]-A UBL invoice should not include the TaxRepresentativeParty ServiceProviderParty + + + + + + + + + + UBL-CR-340 + warning + + + + [UBL-CR-340]-A UBL invoice should not include the TaxRepresentativeParty PowerOfAttorney + + + + + + + + + + UBL-CR-341 + warning + + + + [UBL-CR-341]-A UBL invoice should not include the TaxRepresentativeParty FinancialAccount + + + + + + + + + + UBL-CR-342 + warning + + + + [UBL-CR-342]-A UBL invoice should not include the Delivery ID + + + + + + + + + + UBL-CR-343 + warning + + + + [UBL-CR-343]-A UBL invoice should not include the Delivery Quantity + + + + + + + + + + UBL-CR-344 + warning + + + + [UBL-CR-344]-A UBL invoice should not include the Delivery MinimumQuantity + + + + + + + + + + UBL-CR-345 + warning + + + + [UBL-CR-345]-A UBL invoice should not include the Delivery MaximumQuantity + + + + + + + + + + UBL-CR-346 + warning + + + + [UBL-CR-346]-A UBL invoice should not include the Delivery ActualDeliveryTime + + + + + + + + + + UBL-CR-347 + warning + + + + [UBL-CR-347]-A UBL invoice should not include the Delivery LatestDeliveryDate + + + + + + + + + + UBL-CR-348 + warning + + + + [UBL-CR-348]-A UBL invoice should not include the Delivery LatestDeliveryTime + + + + + + + + + + UBL-CR-349 + warning + + + + [UBL-CR-349]-A UBL invoice should not include the Delivery ReleaseID + + + + + + + + + + UBL-CR-350 + warning + + + + [UBL-CR-350]-A UBL invoice should not include the Delivery TrackingID + + + + + + + + + + UBL-CR-351 + warning + + + + [UBL-CR-351]-A UBL invoice should not include the Delivery DeliveryLocation Description + + + + + + + + + + UBL-CR-352 + warning + + + + [UBL-CR-352]-A UBL invoice should not include the Delivery DeliveryLocation Conditions + + + + + + + + + + UBL-CR-353 + warning + + + + [UBL-CR-353]-A UBL invoice should not include the Delivery DeliveryLocation CountrySubentity + + + + + + + + + + UBL-CR-354 + warning + + + + [UBL-CR-354]-A UBL invoice should not include the Delivery DeliveryLocation CountrySubentityCode + + + + + + + + + + UBL-CR-355 + warning + + + + [UBL-CR-355]-A UBL invoice should not include the Delivery DeliveryLocation LocationTypeCode + + + + + + + + + + UBL-CR-356 + warning + + + + [UBL-CR-356]-A UBL invoice should not include the Delivery DeliveryLocation InformationURI + + + + + + + + + + UBL-CR-357 + warning + + + + [UBL-CR-357]-A UBL invoice should not include the Delivery DeliveryLocation Name + + + + + + + + + + UBL-CR-358 + warning + + + + [UBL-CR-358]-A UBL invoice should not include the Delivery DeliveryLocation ValidityPeriod + + + + + + + + + + UBL-CR-359 + warning + + + + [UBL-CR-359]-A UBL invoice should not include the Delivery DeliveryLocation Address ID + + + + + + + + + + UBL-CR-360 + warning + + + + [UBL-CR-360]-A UBL invoice should not include the Delivery DeliveryLocation Address AddressTypeCode + + + + + + + + + + UBL-CR-361 + warning + + + + [UBL-CR-361]-A UBL invoice should not include the Delivery DeliveryLocation Address AddressFormatCode + + + + + + + + + + UBL-CR-362 + warning + + + + [UBL-CR-362]-A UBL invoice should not include the Delivery DeliveryLocation Address Postbox + + + + + + + + + + UBL-CR-363 + warning + + + + [UBL-CR-363]-A UBL invoice should not include the Delivery DeliveryLocation Address Floor + + + + + + + + + + UBL-CR-364 + warning + + + + [UBL-CR-364]-A UBL invoice should not include the Delivery DeliveryLocation Address Room + + + + + + + + + + UBL-CR-365 + warning + + + + [UBL-CR-365]-A UBL invoice should not include the Delivery DeliveryLocation Address BlockName + + + + + + + + + + UBL-CR-366 + warning + + + + [UBL-CR-366]-A UBL invoice should not include the Delivery DeliveryLocation Address BuildingName + + + + + + + + + + UBL-CR-367 + warning + + + + [UBL-CR-367]-A UBL invoice should not include the Delivery DeliveryLocation Address BuildingNumber + + + + + + + + + + UBL-CR-368 + warning + + + + [UBL-CR-368]-A UBL invoice should not include the Delivery DeliveryLocation Address InhouseMail + + + + + + + + + + UBL-CR-369 + warning + + + + [UBL-CR-369]-A UBL invoice should not include the Delivery DeliveryLocation Address Department + + + + + + + + + + UBL-CR-370 + warning + + + + [UBL-CR-370]-A UBL invoice should not include the Delivery DeliveryLocation Address MarkAttention + + + + + + + + + + UBL-CR-371 + warning + + + + [UBL-CR-371]-A UBL invoice should not include the Delivery DeliveryLocation Address MarkCare + + + + + + + + + + UBL-CR-372 + warning + + + + [UBL-CR-372]-A UBL invoice should not include the Delivery DeliveryLocation Address PlotIdentification + + + + + + + + + + UBL-CR-373 + warning + + + + [UBL-CR-373]-A UBL invoice should not include the Delivery DeliveryLocation Address CitySubdivisionName + + + + + + + + + + UBL-CR-374 + warning + + + + [UBL-CR-374]-A UBL invoice should not include the Delivery DeliveryLocation Address CountrySubentityCode + + + + + + + + + + UBL-CR-375 + warning + + + + [UBL-CR-375]-A UBL invoice should not include the Delivery DeliveryLocation Address Region + + + + + + + + + + UBL-CR-376 + warning + + + + [UBL-CR-376]-A UBL invoice should not include the Delivery DeliveryLocation Address District + + + + + + + + + + UBL-CR-377 + warning + + + + [UBL-CR-377]-A UBL invoice should not include the Delivery DeliveryLocation Address TimezoneOffset + + + + + + + + + + UBL-CR-378 + warning + + + + [UBL-CR-378]-A UBL invoice should not include the Delivery DeliveryLocation Address Country Name + + + + + + + + + + UBL-CR-379 + warning + + + + [UBL-CR-379]-A UBL invoice should not include the Delivery DeliveryLocation Address LocationCoordinate + + + + + + + + + + UBL-CR-380 + warning + + + + [UBL-CR-380]-A UBL invoice should not include the Delivery DeliveryLocation SubsidiaryLocation + + + + + + + + + + UBL-CR-381 + warning + + + + [UBL-CR-381]-A UBL invoice should not include the Delivery DeliveryLocation LocationCoordinate + + + + + + + + + + UBL-CR-382 + warning + + + + [UBL-CR-382]-A UBL invoice should not include the Delivery AlternativeDeliveryLocation + + + + + + + + + + UBL-CR-383 + warning + + + + [UBL-CR-383]-A UBL invoice should not include the Delivery RequestedDeliveryPeriod + + + + + + + + + + UBL-CR-384 + warning + + + + [UBL-CR-384]-A UBL invoice should not include the Delivery EstimatedDeliveryPeriod + + + + + + + + + + UBL-CR-385 + warning + + + + [UBL-CR-385]-A UBL invoice should not include the Delivery CarrierParty + + + + + + + + + + UBL-CR-386 + warning + + + + [UBL-CR-386]-A UBL invoice should not include the DeliveryParty MarkCareIndicator + + + + + + + + + + UBL-CR-387 + warning + + + + [UBL-CR-387]-A UBL invoice should not include the DeliveryParty MarkAttentionIndicator + + + + + + + + + + UBL-CR-388 + warning + + + + [UBL-CR-388]-A UBL invoice should not include the DeliveryParty WebsiteURI + + + + + + + + + + UBL-CR-389 + warning + + + + [UBL-CR-389]-A UBL invoice should not include the DeliveryParty LogoReferenceID + + + + + + + + + + UBL-CR-390 + warning + + + + [UBL-CR-390]-A UBL invoice should not include the DeliveryParty EndpointID + + + + + + + + + + UBL-CR-391 + warning + + + + [UBL-CR-391]-A UBL invoice should not include the DeliveryParty IndustryClassificationCode + + + + + + + + + + UBL-CR-392 + warning + + + + [UBL-CR-392]-A UBL invoice should not include the DeliveryParty PartyIdentification + + + + + + + + + + UBL-CR-393 + warning + + + + [UBL-CR-393]-A UBL invoice should not include the DeliveryParty Language + + + + + + + + + + UBL-CR-394 + warning + + + + [UBL-CR-394]-A UBL invoice should not include the DeliveryParty PostalAddress + + + + + + + + + + UBL-CR-395 + warning + + + + [UBL-CR-395]-A UBL invoice should not include the DeliveryParty PhysicalLocation + + + + + + + + + + UBL-CR-396 + warning + + + + [UBL-CR-396]-A UBL invoice should not include the DeliveryParty PartyTaxScheme + + + + + + + + + + UBL-CR-397 + warning + + + + [UBL-CR-397]-A UBL invoice should not include the DeliveryParty PartyLegalEntity + + + + + + + + + + UBL-CR-398 + warning + + + + [UBL-CR-398]-A UBL invoice should not include the DeliveryParty Contact + + + + + + + + + + UBL-CR-399 + warning + + + + [UBL-CR-399]-A UBL invoice should not include the DeliveryParty Person + + + + + + + + + + UBL-CR-400 + warning + + + + [UBL-CR-400]-A UBL invoice should not include the DeliveryParty AgentParty + + + + + + + + + + UBL-CR-401 + warning + + + + [UBL-CR-401]-A UBL invoice should not include the DeliveryParty ServiceProviderParty + + + + + + + + + + UBL-CR-402 + warning + + + + [UBL-CR-402]-A UBL invoice should not include the DeliveryParty PowerOfAttorney + + + + + + + + + + UBL-CR-403 + warning + + + + [UBL-CR-403]-A UBL invoice should not include the DeliveryParty FinancialAccount + + + + + + + + + + UBL-CR-404 + warning + + + + [UBL-CR-404]-A UBL invoice should not include the Delivery NotifyParty + + + + + + + + + + UBL-CR-405 + warning + + + + [UBL-CR-405]-A UBL invoice should not include the Delivery Despatch + + + + + + + + + + UBL-CR-406 + warning + + + + [UBL-CR-406]-A UBL invoice should not include the Delivery DeliveryTerms + + + + + + + + + + UBL-CR-407 + warning + + + + [UBL-CR-407]-A UBL invoice should not include the Delivery MinimumDeliveryUnit + + + + + + + + + + UBL-CR-408 + warning + + + + [UBL-CR-408]-A UBL invoice should not include the Delivery MaximumDeliveryUnit + + + + + + + + + + UBL-CR-409 + warning + + + + [UBL-CR-409]-A UBL invoice should not include the Delivery Shipment + + + + + + + + + + UBL-CR-410 + warning + + + + [UBL-CR-410]-A UBL invoice should not include the DeliveryTerms + + + + + + + + + + UBL-CR-411 + warning + + + + [UBL-CR-411]-A UBL invoice should not include the PaymentMeans ID + + + + + + + + + + UBL-CR-412 + warning + + + + [UBL-CR-412]-A UBL invoice should not include the PaymentMeans PaymentDueDate + + + + + + + + + + UBL-CR-413 + warning + + + + [UBL-CR-413]-A UBL invoice should not include the PaymentMeans PaymentChannelCode + + + + + + + + + + UBL-CR-414 + warning + + + + [UBL-CR-414]-A UBL invoice should not include the PaymentMeans InstructionID + + + + + + + + + + UBL-CR-415 + warning + + + + [UBL-CR-415]-A UBL invoice should not include the PaymentMeans CardAccount CardTypeCode + + + + + + + + + + UBL-CR-416 + warning + + + + [UBL-CR-416]-A UBL invoice should not include the PaymentMeans CardAccount ValidityStartDate + + + + + + + + + + UBL-CR-417 + warning + + + + [UBL-CR-417]-A UBL invoice should not include the PaymentMeans CardAccount ExpiryDate + + + + + + + + + + UBL-CR-418 + warning + + + + [UBL-CR-418]-A UBL invoice should not include the PaymentMeans CardAccount IssuerID + + + + + + + + + + UBL-CR-419 + warning + + + + [UBL-CR-419]-A UBL invoice should not include the PaymentMeans CardAccount IssueNumberID + + + + + + + + + + UBL-CR-420 + warning + + + + [UBL-CR-420]-A UBL invoice should not include the PaymentMeans CardAccount CV2ID + + + + + + + + + + UBL-CR-421 + warning + + + + [UBL-CR-421]-A UBL invoice should not include the PaymentMeans CardAccount CardChipCode + + + + + + + + + + UBL-CR-422 + warning + + + + [UBL-CR-422]-A UBL invoice should not include the PaymentMeans CardAccount ChipApplicationID + + + + + + + + + + UBL-CR-424 + warning + + + + [UBL-CR-424]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AliasName + + + + + + + + + + UBL-CR-425 + warning + + + + [UBL-CR-425]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AccountTypeCode + + + + + + + + + + UBL-CR-426 + warning + + + + [UBL-CR-426]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AccountFormatCode + + + + + + + + + + UBL-CR-427 + warning + + + + [UBL-CR-427]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount CurrencyCode + + + + + + + + + + UBL-CR-428 + warning + + + + [UBL-CR-428]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount PaymentNote + + + + + + + + + + UBL-CR-429 + warning + + + + [UBL-CR-429]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch Name + + + + + + + + + + UBL-CR-430 + warning + + + + [UBL-CR-430]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch FinancialInstitution Name + + + + + + + + + + UBL-CR-431 + warning + + + + [UBL-CR-431]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch FinancialInstitution Address + + + + + + + + + + UBL-CR-432 + warning + + + + [UBL-CR-432]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch Address + + + + + + + + + + UBL-CR-433 + warning + + + + [UBL-CR-433]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount Country + + + + + + + + + + UBL-CR-434 + warning + + + + [UBL-CR-434]-A UBL invoice should not include the PaymentMeans CreditAccount + + + + + + + + + + UBL-CR-435 + warning + + + + [UBL-CR-435]-A UBL invoice should not include the PaymentMeans PaymentMandate MandateTypeCode + + + + + + + + + + UBL-CR-436 + warning + + + + [UBL-CR-436]-A UBL invoice should not include the PaymentMeans PaymentMandate MaximumPaymentInstructionsNumeric + + + + + + + + + + UBL-CR-437 + warning + + + + [UBL-CR-437]-A UBL invoice should not include the PaymentMeans PaymentMandate MaximumPaidAmount + + + + + + + + + + UBL-CR-438 + warning + + + + [UBL-CR-438]-A UBL invoice should not include the PaymentMeans PaymentMandate SignatureID + + + + + + + + + + UBL-CR-439 + warning + + + + [UBL-CR-439]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerParty + + + + + + + + + + UBL-CR-440 + warning + + + + [UBL-CR-440]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount Name + + + + + + + + + + UBL-CR-441 + warning + + + + [UBL-CR-441]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AliasName + + + + + + + + + + UBL-CR-442 + warning + + + + [UBL-CR-442]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AccountTypeCode + + + + + + + + + + UBL-CR-443 + warning + + + + [UBL-CR-443]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AccountFormatCode + + + + + + + + + + UBL-CR-444 + warning + + + + [UBL-CR-444]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount CurrencyCode + + + + + + + + + + UBL-CR-445 + warning + + + + [UBL-CR-445]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount PaymentNote + + + + + + + + + + UBL-CR-446 + warning + + + + [UBL-CR-446]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount FinancialInstitutionBranch + + + + + + + + + + UBL-CR-447 + warning + + + + [UBL-CR-447]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount Country + + + + + + + + + + UBL-CR-448 + warning + + + + [UBL-CR-448]-A UBL invoice should not include the PaymentMeans PaymentMandate ValidityPeriod + + + + + + + + + + UBL-CR-449 + warning + + + + [UBL-CR-449]-A UBL invoice should not include the PaymentMeans PaymentMandate PaymentReversalPeriod + + + + + + + + + + UBL-CR-450 + warning + + + + [UBL-CR-450]-A UBL invoice should not include the PaymentMeans PaymentMandate Clause + + + + + + + + + + UBL-CR-451 + warning + + + + [UBL-CR-451]-A UBL invoice should not include the PaymentMeans TradeFinancing + + + + + + + + + + UBL-CR-452 + warning + + + + [UBL-CR-452]-A UBL invoice should not include the PaymentTerms ID + + + + + + + + + + UBL-CR-453 + warning + + + + [UBL-CR-453]-A UBL invoice should not include the PaymentTerms PaymentMeansID + + + + + + + + + + UBL-CR-454 + warning + + + + [UBL-CR-454]-A UBL invoice should not include the PaymentTerms PrepaidPaymentReferenceID + + + + + + + + + + UBL-CR-455 + warning + + + + [UBL-CR-455]-A UBL invoice should not include the PaymentTerms ReferenceEventCode + + + + + + + + + + UBL-CR-456 + warning + + + + [UBL-CR-456]-A UBL invoice should not include the PaymentTerms SettlementDiscountPercent + + + + + + + + + + UBL-CR-457 + warning + + + + [UBL-CR-457]-A UBL invoice should not include the PaymentTerms PenaltySurchargePercent + + + + + + + + + + UBL-CR-458 + warning + + + + [UBL-CR-458]-A UBL invoice should not include the PaymentTerms PaymentPercent + + + + + + + + + + UBL-CR-459 + warning + + + + [UBL-CR-459]-A UBL invoice should not include the PaymentTerms Amount + + + + + + + + + + UBL-CR-460 + warning + + + + [UBL-CR-460]-A UBL invoice should not include the PaymentTerms SettlementDiscountAmount + + + + + + + + + + UBL-CR-461 + warning + + + + [UBL-CR-461]-A UBL invoice should not include the PaymentTerms PenaltyAmount + + + + + + + + + + UBL-CR-462 + warning + + + + [UBL-CR-462]-A UBL invoice should not include the PaymentTerms PaymentTermsDetailsURI + + + + + + + + + + UBL-CR-463 + warning + + + + [UBL-CR-463]-A UBL invoice should not include the PaymentTerms PaymentDueDate + + + + + + + + + + UBL-CR-464 + warning + + + + [UBL-CR-464]-A UBL invoice should not include the PaymentTerms InstallmentDueDate + + + + + + + + + + UBL-CR-465 + warning + + + + [UBL-CR-465]-A UBL invoice should not include the PaymentTerms InvoicingPartyReference + + + + + + + + + + UBL-CR-466 + warning + + + + [UBL-CR-466]-A UBL invoice should not include the PaymentTerms SettlementPeriod + + + + + + + + + + UBL-CR-467 + warning + + + + [UBL-CR-467]-A UBL invoice should not include the PaymentTerms PenaltyPeriod + + + + + + + + + + UBL-CR-468 + warning + + + + [UBL-CR-468]-A UBL invoice should not include the PaymentTerms ExchangeRate + + + + + + + + + + UBL-CR-469 + warning + + + + [UBL-CR-469]-A UBL invoice should not include the PaymentTerms ValidityPeriod + + + + + + + + + + UBL-CR-470 + warning + + + + [UBL-CR-470]-A UBL invoice should not include the PrepaidPayment + + + + + + + + + + UBL-CR-471 + warning + + + + [UBL-CR-471]-A UBL invoice should not include the AllowanceCharge ID + + + + + + + + + + UBL-CR-472 + warning + + + + [UBL-CR-472]-A UBL invoice should not include the AllowanceCharge PrepaidIndicator + + + + + + + + + + UBL-CR-473 + warning + + + + [UBL-CR-473]-A UBL invoice should not include the AllowanceCharge SequenceNumeric + + + + + + + + + + UBL-CR-474 + warning + + + + [UBL-CR-474]-A UBL invoice should not include the AllowanceCharge AccountingCostCode + + + + + + + + + + UBL-CR-475 + warning + + + + [UBL-CR-475]-A UBL invoice should not include the AllowanceCharge AccountingCost + + + + + + + + + + UBL-CR-476 + warning + + + + [UBL-CR-476]-A UBL invoice should not include the AllowanceCharge PerUnitAmount + + + + + + + + + + UBL-CR-477 + warning + + + + [UBL-CR-477]-A UBL invoice should not include the AllowanceCharge TaxCategory Name + + + + + + + + + + UBL-CR-478 + warning + + + + [UBL-CR-478]-A UBL invoice should not include the AllowanceCharge TaxCategory BaseUnitMeasure + + + + + + + + + + UBL-CR-479 + warning + + + + [UBL-CR-479]-A UBL invoice should not include the AllowanceCharge TaxCategory PerUnitAmount + + + + + + + + + + UBL-CR-480 + warning + + + + [UBL-CR-480]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxExemptionReasonCode + + + + + + + + + + UBL-CR-481 + warning + + + + [UBL-CR-481]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxExemptionReason + + + + + + + + + + UBL-CR-482 + warning + + + + [UBL-CR-482]-A UBL invoice should not include the AllowanceCharge TaxCategory TierRange + + + + + + + + + + UBL-CR-483 + warning + + + + [UBL-CR-483]-A UBL invoice should not include the AllowanceCharge TaxCategory TierRatePercent + + + + + + + + + + UBL-CR-484 + warning + + + + [UBL-CR-484]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme Name + + + + + + + + + + UBL-CR-485 + warning + + + + [UBL-CR-485]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-486 + warning + + + + [UBL-CR-486]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-487 + warning + + + + [UBL-CR-487]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-488 + warning + + + + [UBL-CR-488]-A UBL invoice should not include the AllowanceCharge TaxTotal + + + + + + + + + + UBL-CR-489 + warning + + + + [UBL-CR-489]-A UBL invoice should not include the AllowanceCharge PaymentMeans + + + + + + + + + + UBL-CR-490 + warning + + + + [UBL-CR-490]-A UBL invoice should not include the TaxExchangeRate + + + + + + + + + + UBL-CR-491 + warning + + + + [UBL-CR-491]-A UBL invoice should not include the PricingExchangeRate + + + + + + + + + + UBL-CR-492 + warning + + + + [UBL-CR-492]-A UBL invoice should not include the PaymentExchangeRate + + + + + + + + + + UBL-CR-493 + warning + + + + [UBL-CR-493]-A UBL invoice should not include the PaymentAlternativeExchangeRate + + + + + + + + + + UBL-CR-494 + warning + + + + [UBL-CR-494]-A UBL invoice should not include the TaxTotal RoundingAmount + + + + + + + + + + UBL-CR-495 + warning + + + + [UBL-CR-495]-A UBL invoice should not include the TaxTotal TaxEvidenceIndicator + + + + + + + + + + UBL-CR-496 + warning + + + + [UBL-CR-496]-A UBL invoice should not include the TaxTotal TaxIncludedIndicator + + + + + + + + + + UBL-CR-497 + warning + + + + [UBL-CR-497]-A UBL invoice should not include the TaxTotal TaxSubtotal CalulationSequenceNumeric + + + + + + + + + + UBL-CR-498 + warning + + + + [UBL-CR-498]-A UBL invoice should not include the TaxTotal TaxSubtotal TransactionCurrencyTaxAmount + + + + + + + + + + UBL-CR-499 + warning + + + + [UBL-CR-499]-A UBL invoice should not include the TaxTotal TaxSubtotal Percent + + + + + + + + + + UBL-CR-500 + warning + + + + [UBL-CR-500]-A UBL invoice should not include the TaxTotal TaxSubtotal BaseUnitMeasure + + + + + + + + + + UBL-CR-501 + warning + + + + [UBL-CR-501]-A UBL invoice should not include the TaxTotal TaxSubtotal PerUnitAmount + + + + + + + + + + UBL-CR-502 + warning + + + + [UBL-CR-502]-A UBL invoice should not include the TaxTotal TaxSubtotal TierRange + + + + + + + + + + UBL-CR-503 + warning + + + + [UBL-CR-503]-A UBL invoice should not include the TaxTotal TaxSubtotal TierRatePercent + + + + + + + + + + UBL-CR-504 + warning + + + + [UBL-CR-504]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory Name + + + + + + + + + + UBL-CR-505 + warning + + + + [UBL-CR-505]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory BaseUnitMeasure + + + + + + + + + + UBL-CR-506 + warning + + + + [UBL-CR-506]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory PerUnitAmount + + + + + + + + + + UBL-CR-507 + warning + + + + [UBL-CR-507]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TierRange + + + + + + + + + + UBL-CR-508 + warning + + + + [UBL-CR-508]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TierRatePercent + + + + + + + + + + UBL-CR-509 + warning + + + + [UBL-CR-509]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme Name + + + + + + + + + + UBL-CR-510 + warning + + + + [UBL-CR-510]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-511 + warning + + + + [UBL-CR-511]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-512 + warning + + + + [UBL-CR-512]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-513 + warning + + + + [UBL-CR-513]-A UBL invoice should not include the WithholdingTaxTotal + + + + + + + + + + UBL-CR-514 + warning + + + + [UBL-CR-514]-A UBL invoice should not include the LegalMonetaryTotal PayableAlternativeAmount + + + + + + + + + + UBL-CR-515 + warning + + + + [UBL-CR-515]-A UBL invoice should not include the InvoiceLine UUID + + + + + + + + + + UBL-CR-516 + warning + + + + [UBL-CR-516]-A UBL invoice should not include the InvoiceLine TaxPointDate + + + + + + + + + + UBL-CR-517 + warning + + + + [UBL-CR-517]-A UBL invoice should not include the InvoiceLine AccountingCostCode + + + + + + + + + + UBL-CR-518 + warning + + + + [UBL-CR-518]-A UBL invoice should not include the InvoiceLine PaymentPurposeCode + + + + + + + + + + UBL-CR-519 + warning + + + + [UBL-CR-519]-A UBL invoice should not include the InvoiceLine FreeOfChargeIndicator + + + + + + + + + + UBL-CR-520 + warning + + + + [UBL-CR-520]-A UBL invoice should not include the InvoiceLine InvoicePeriod StartTime + + + + + + + + + + UBL-CR-521 + warning + + + + [UBL-CR-521]-A UBL invoice should not include the InvoiceLine InvoicePeriod EndTime + + + + + + + + + + UBL-CR-522 + warning + + + + [UBL-CR-522]-A UBL invoice should not include the InvoiceLine InvoicePeriod DurationMeasure + + + + + + + + + + UBL-CR-523 + warning + + + + [UBL-CR-523]-A UBL invoice should not include the InvoiceLine InvoicePeriod DescriptionCode + + + + + + + + + + UBL-CR-524 + warning + + + + [UBL-CR-524]-A UBL invoice should not include the InvoiceLine InvoicePeriod Description + + + + + + + + + + UBL-CR-525 + warning + + + + [UBL-CR-525]-A UBL invoice should not include the InvoiceLine OrderLineReference SalesOrderLineID + + + + + + + + + + UBL-CR-526 + warning + + + + [UBL-CR-526]-A UBL invoice should not include the InvoiceLine OrderLineReference UUID + + + + + + + + + + UBL-CR-527 + warning + + + + [UBL-CR-527]-A UBL invoice should not include the InvoiceLine OrderLineReference LineStatusCode + + + + + + + + + + UBL-CR-528 + warning + + + + [UBL-CR-528]-A UBL invoice should not include the InvoiceLine OrderLineReference OrderReference + + + + + + + + + + UBL-CR-529 + warning + + + + [UBL-CR-529]-A UBL invoice should not include the InvoiceLine DespatchLineReference + + + + + + + + + + UBL-CR-530 + warning + + + + [UBL-CR-530]-A UBL invoice should not include the InvoiceLine ReceiptLineReference + + + + + + + + + + UBL-CR-531 + warning + + + + [UBL-CR-531]-A UBL invoice should not include the InvoiceLine BillingReference + + + + + + + + + + UBL-CR-532 + warning + + + + [UBL-CR-532]-A UBL invoice should not include the InvoiceLine DocumentReference CopyIndicator + + + + + + + + + + UBL-CR-533 + warning + + + + [UBL-CR-533]-A UBL invoice should not include the InvoiceLine DocumentReference UUID + + + + + + + + + + UBL-CR-534 + warning + + + + [UBL-CR-534]-A UBL invoice should not include the InvoiceLine DocumentReference IssueDate + + + + + + + + + + UBL-CR-535 + warning + + + + [UBL-CR-535]-A UBL invoice should not include the InvoiceLine DocumentReference IssueTime + + + + + + + + + + UBL-CR-537 + warning + + + + [UBL-CR-537]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentType + + + + + + + + + + UBL-CR-538 + warning + + + + [UBL-CR-538]-A UBL invoice should not include the InvoiceLine DocumentReference Xpath + + + + + + + + + + UBL-CR-539 + warning + + + + [UBL-CR-539]-A UBL invoice should not include the InvoiceLine DocumentReference LanguageID + + + + + + + + + + UBL-CR-540 + warning + + + + [UBL-CR-540]-A UBL invoice should not include the InvoiceLine DocumentReference LocaleCode + + + + + + + + + + UBL-CR-541 + warning + + + + [UBL-CR-541]-A UBL invoice should not include the InvoiceLine DocumentReference VersionID + + + + + + + + + + UBL-CR-542 + warning + + + + [UBL-CR-542]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentStatusCode + + + + + + + + + + UBL-CR-543 + warning + + + + [UBL-CR-543]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentDescription + + + + + + + + + + UBL-CR-544 + warning + + + + [UBL-CR-544]-A UBL invoice should not include the InvoiceLine DocumentReference Attachment + + + + + + + + + + UBL-CR-545 + warning + + + + [UBL-CR-545]-A UBL invoice should not include the InvoiceLine DocumentReference ValidityPeriod + + + + + + + + + + UBL-CR-546 + warning + + + + [UBL-CR-546]-A UBL invoice should not include the InvoiceLine DocumentReference IssuerParty + + + + + + + + + + UBL-CR-547 + warning + + + + [UBL-CR-547]-A UBL invoice should not include the InvoiceLine DocumentReference ResultOfVerification + + + + + + + + + + UBL-CR-548 + warning + + + + [UBL-CR-548]-A UBL invoice should not include the InvoiceLine PricingReference + + + + + + + + + + UBL-CR-549 + warning + + + + [UBL-CR-549]-A UBL invoice should not include the InvoiceLine OriginatorParty + + + + + + + + + + UBL-CR-550 + warning + + + + [UBL-CR-550]-A UBL invoice should not include the InvoiceLine Delivery + + + + + + + + + + UBL-CR-551 + warning + + + + [UBL-CR-551]-A UBL invoice should not include the InvoiceLine PaymentTerms + + + + + + + + + + UBL-CR-552 + warning + + + + [UBL-CR-552]-A UBL invoice should not include the InvoiceLine AllowanceCharge ID + + + + + + + + + + UBL-CR-553 + warning + + + + [UBL-CR-553]-A UBL invoice should not include the InvoiceLine AllowanceCharge PrepaidIndicator + + + + + + + + + + UBL-CR-554 + warning + + + + [UBL-CR-554]-A UBL invoice should not include the InvoiceLine AllowanceCharge SequenceNumeric + + + + + + + + + + UBL-CR-555 + warning + + + + [UBL-CR-555]-A UBL invoice should not include the InvoiceLine AllowanceCharge AccountingCostCode + + + + + + + + + + UBL-CR-556 + warning + + + + [UBL-CR-556]-A UBL invoice should not include the InvoiceLine AllowanceCharge AccountingCost + + + + + + + + + + UBL-CR-557 + warning + + + + [UBL-CR-557]-A UBL invoice should not include the InvoiceLine AllowanceCharge PerUnitAmount + + + + + + + + + + UBL-CR-558 + warning + + + + [UBL-CR-558]-A UBL invoice should not include the InvoiceLine AllowanceCharge TaxCategory + + + + + + + + + + UBL-CR-559 + warning + + + + [UBL-CR-559]-A UBL invoice should not include the InvoiceLine AllowanceCharge TaxTotal + + + + + + + + + + UBL-CR-560 + warning + + + + [UBL-CR-560]-A UBL invoice should not include the InvoiceLine AllowanceCharge PaymentMeans + + + + + + + + + + UBL-CR-561 + warning + + + + [UBL-CR-561]-A UBL invoice should not include the InvoiceLine TaxTotal + + + + + + + + + + UBL-CR-562 + warning + + + + [UBL-CR-562]-A UBL invoice should not include the InvoiceLine WithholdingTaxTotal + + + + + + + + + + UBL-CR-563 + warning + + + + [UBL-CR-563]-A UBL invoice should not include the InvoiceLine Item PackQuantity + + + + + + + + + + UBL-CR-564 + warning + + + + [UBL-CR-564]-A UBL invoice should not include the InvoiceLine Item PackSizeNumeric + + + + + + + + + + UBL-CR-565 + warning + + + + [UBL-CR-565]-A UBL invoice should not include the InvoiceLine Item CatalogueIndicator + + + + + + + + + + UBL-CR-566 + warning + + + + [UBL-CR-566]-A UBL invoice should not include the InvoiceLine Item HazardousRiskIndicator + + + + + + + + + + UBL-CR-567 + warning + + + + [UBL-CR-567]-A UBL invoice should not include the InvoiceLine Item AdditionalInformation + + + + + + + + + + UBL-CR-568 + warning + + + + [UBL-CR-568]-A UBL invoice should not include the InvoiceLine Item Keyword + + + + + + + + + + UBL-CR-569 + warning + + + + [UBL-CR-569]-A UBL invoice should not include the InvoiceLine Item BrandName + + + + + + + + + + UBL-CR-570 + warning + + + + [UBL-CR-570]-A UBL invoice should not include the InvoiceLine Item ModelName + + + + + + + + + + UBL-CR-571 + warning + + + + [UBL-CR-571]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification ExtendedID + + + + + + + + + + UBL-CR-572 + warning + + + + [UBL-CR-572]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification BarcodeSymbologyID + + + + + + + + + + UBL-CR-573 + warning + + + + [UBL-CR-573]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification PhysicalAttribute + + + + + + + + + + UBL-CR-574 + warning + + + + [UBL-CR-574]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification MeasurementDimension + + + + + + + + + + UBL-CR-575 + warning + + + + [UBL-CR-575]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification IssuerParty + + + + + + + + + + UBL-CR-576 + warning + + + + [UBL-CR-576]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification ExtendedID + + + + + + + + + + UBL-CR-577 + warning + + + + [UBL-CR-577]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification BarcodeSymbologyID + + + + + + + + + + UBL-CR-578 + warning + + + + [UBL-CR-578]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification PhysicalAttribute + + + + + + + + + + UBL-CR-579 + warning + + + + [UBL-CR-579]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification MeasurementDimension + + + + + + + + + + UBL-CR-580 + warning + + + + [UBL-CR-580]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification IssuerParty + + + + + + + + + + UBL-CR-581 + warning + + + + [UBL-CR-581]-A UBL invoice should not include the InvoiceLine Item ManufacturersItemIdentification + + + + + + + + + + UBL-CR-582 + warning + + + + [UBL-CR-582]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification ExtendedID + + + + + + + + + + UBL-CR-583 + warning + + + + [UBL-CR-583]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification BarcodeSymbologyID + + + + + + + + + + UBL-CR-584 + warning + + + + [UBL-CR-584]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification PhysicalAttribute + + + + + + + + + + UBL-CR-585 + warning + + + + [UBL-CR-585]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification MeasurementDimension + + + + + + + + + + UBL-CR-586 + warning + + + + [UBL-CR-586]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification IssuerParty + + + + + + + + + + UBL-CR-587 + warning + + + + [UBL-CR-587]-A UBL invoice should not include the InvoiceLine Item CatalogueItemIdentification + + + + + + + + + + UBL-CR-588 + warning + + + + [UBL-CR-588]-A UBL invoice should not include the InvoiceLine Item AdditionalItemIdentification + + + + + + + + + + UBL-CR-589 + warning + + + + [UBL-CR-589]-A UBL invoice should not include the InvoiceLine Item CatalogueDocumentReference + + + + + + + + + + UBL-CR-590 + warning + + + + [UBL-CR-590]-A UBL invoice should not include the InvoiceLine Item ItemSpecificationDocumentReference + + + + + + + + + + UBL-CR-591 + warning + + + + [UBL-CR-591]-A UBL invoice should not include the InvoiceLine Item OriginCountry Name + + + + + + + + + + UBL-CR-592 + warning + + + + [UBL-CR-592]-A UBL invoice should not include the InvoiceLine Item CommodityClassification NatureCode + + + + + + + + + + UBL-CR-593 + warning + + + + [UBL-CR-593]-A UBL invoice should not include the InvoiceLine Item CommodityClassification CargoTypeCode + + + + + + + + + + UBL-CR-594 + warning + + + + [UBL-CR-594]-A UBL invoice should not include the InvoiceLine Item CommodityClassification CommodityCode + + + + + + + + + + UBL-CR-595 + warning + + + + [UBL-CR-595]-A UBL invoice should not include the InvoiceLine Item TransactionConditions + + + + + + + + + + UBL-CR-596 + warning + + + + [UBL-CR-596]-A UBL invoice should not include the InvoiceLine Item HazardousItem + + + + + + + + + + UBL-CR-597 + warning + + + + [UBL-CR-597]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory Name + + + + + + + + + + UBL-CR-598 + warning + + + + [UBL-CR-598]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory BaseUnitMeasure + + + + + + + + + + UBL-CR-599 + warning + + + + [UBL-CR-599]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory PerUnitAmount + + + + + + + + + + UBL-CR-600 + warning + + + + [UBL-CR-600]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxExemptionReasonCode + + + + + + + + + + UBL-CR-601 + warning + + + + [UBL-CR-601]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxExemptionReason + + + + + + + + + + UBL-CR-602 + warning + + + + [UBL-CR-602]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TierRange + + + + + + + + + + UBL-CR-603 + warning + + + + [UBL-CR-603]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TierRatePercent + + + + + + + + + + UBL-CR-604 + warning + + + + [UBL-CR-604]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme Name + + + + + + + + + + UBL-CR-605 + warning + + + + [UBL-CR-605]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme TaxTypeCode + + + + + + + + + + UBL-CR-606 + warning + + + + [UBL-CR-606]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme CurrencyCode + + + + + + + + + + UBL-CR-607 + warning + + + + [UBL-CR-607]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme JurisdictionRegionAddress + + + + + + + + + + UBL-CR-608 + warning + + + + [UBL-CR-608]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ID + + + + + + + + + + UBL-CR-609 + warning + + + + [UBL-CR-609]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty NameCode + + + + + + + + + + UBL-CR-610 + warning + + + + [UBL-CR-610]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty TestMethod + + + + + + + + + + UBL-CR-611 + warning + + + + [UBL-CR-611]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ValueQuantity + + + + + + + + + + UBL-CR-612 + warning + + + + [UBL-CR-612]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ValueQualifier + + + + + + + + + + UBL-CR-613 + warning + + + + [UBL-CR-613]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ImportanceCode + + + + + + + + + + UBL-CR-614 + warning + + + + [UBL-CR-614]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ListValue + + + + + + + + + + UBL-CR-615 + warning + + + + [UBL-CR-615]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty UsabilityPeriod + + + + + + + + + + UBL-CR-616 + warning + + + + [UBL-CR-616]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ItemPropertyGroup + + + + + + + + + + UBL-CR-617 + warning + + + + [UBL-CR-617]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty RangeDimension + + + + + + + + + + UBL-CR-618 + warning + + + + [UBL-CR-618]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ItemPropertyRange + + + + + + + + + + UBL-CR-619 + warning + + + + [UBL-CR-619]-A UBL invoice should not include the InvoiceLine Item ManufacturerParty + + + + + + + + + + UBL-CR-620 + warning + + + + [UBL-CR-620]-A UBL invoice should not include the InvoiceLine Item InformationContentProviderParty + + + + + + + + + + UBL-CR-621 + warning + + + + [UBL-CR-621]-A UBL invoice should not include the InvoiceLine Item OriginAddress + + + + + + + + + + UBL-CR-622 + warning + + + + [UBL-CR-622]-A UBL invoice should not include the InvoiceLine Item ItemInstance + + + + + + + + + + UBL-CR-623 + warning + + + + [UBL-CR-623]-A UBL invoice should not include the InvoiceLine Item Certificate + + + + + + + + + + UBL-CR-624 + warning + + + + [UBL-CR-624]-A UBL invoice should not include the InvoiceLine Item Dimension + + + + + + + + + + UBL-CR-625 + warning + + + + [UBL-CR-625]-A UBL invoice should not include the InvoiceLine Item Price PriceChangeReason + + + + + + + + + + UBL-CR-626 + warning + + + + [UBL-CR-626]-A UBL invoice should not include the InvoiceLine Item Price PriceTypeCode + + + + + + + + + + UBL-CR-627 + warning + + + + [UBL-CR-627]-A UBL invoice should not include the InvoiceLine Item Price PriceType + + + + + + + + + + UBL-CR-628 + warning + + + + [UBL-CR-628]-A UBL invoice should not include the InvoiceLine Item Price OrderableUnitFactorRate + + + + + + + + + + UBL-CR-629 + warning + + + + [UBL-CR-629]-A UBL invoice should not include the InvoiceLine Item Price ValidityPeriod + + + + + + + + + + UBL-CR-630 + warning + + + + [UBL-CR-630]-A UBL invoice should not include the InvoiceLine Item Price PriceList + + + + + + + + + + UBL-CR-632 + warning + + + + [UBL-CR-632]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge ID + + + + + + + + + + UBL-CR-633 + warning + + + + [UBL-CR-633]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AllowanceChargeReasonCode + + + + + + + + + + UBL-CR-634 + warning + + + + [UBL-CR-634]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AllowanceChargeReason + + + + + + + + + + UBL-CR-635 + warning + + + + [UBL-CR-635]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge MultiplierFactorNumeric + + + + + + + + + + UBL-CR-636 + warning + + + + [UBL-CR-636]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PrepaidIndicator + + + + + + + + + + UBL-CR-637 + warning + + + + [UBL-CR-637]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge SequenceNumeric + + + + + + + + + + UBL-CR-638 + warning + + + + [UBL-CR-638]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AccountingCostCode + + + + + + + + + + UBL-CR-639 + warning + + + + [UBL-CR-639]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AccountingCost + + + + + + + + + + UBL-CR-640 + warning + + + + [UBL-CR-640]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PerUnitAmount + + + + + + + + + + UBL-CR-641 + warning + + + + [UBL-CR-641]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge TaxCategory + + + + + + + + + + UBL-CR-642 + warning + + + + [UBL-CR-642]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge TaxTotal + + + + + + + + + + UBL-CR-643 + warning + + + + [UBL-CR-643]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PaymentMeans + + + + + + + + + + UBL-CR-644 + warning + + + + [UBL-CR-644]-A UBL invoice should not include the InvoiceLine Item Price PricingExchangeRate + + + + + + + + + + UBL-CR-645 + warning + + + + [UBL-CR-645]-A UBL invoice should not include the InvoiceLine DeliveryTerms + + + + + + + + + + UBL-CR-646 + warning + + + + [UBL-CR-646]-A UBL invoice should not include the InvoiceLine SubInvoiceLine + + + + + + + + + + UBL-CR-647 + warning + + + + [UBL-CR-647]-A UBL invoice should not include the InvoiceLine ItemPriceExtension + + + + + + + + + + UBL-CR-648 + warning + + + + [UBL-CR-648]-A UBL invoice should not include the CustomizationID scheme identifier + + + + + + + + + + UBL-CR-649 + warning + + + + [UBL-CR-649]-A UBL invoice should not include the ProfileID scheme identifier + + + + + + + + + + UBL-CR-650 + warning + + + + [UBL-CR-650]-A UBL invoice shall not include the Invoice ID scheme identifier + + + + + + + + + + UBL-CR-651 + warning + + + + [UBL-CR-651]-A UBL invoice should not include the SalesOrderID scheme identifier + + + + + + + + + + UBL-CR-652 + warning + + + + [UBL-CR-652]-A UBL invoice should not include the PartyTaxScheme CompanyID scheme identifier + + + + + + + + + + UBL-CR-653 + warning + + + + [UBL-CR-653]-A UBL invoice should not include the PaymentID scheme identifier + + + + + + + + + + UBL-CR-654 + warning + + + + [UBL-CR-654]-A UBL invoice should not include the PayeeFinancialAccount scheme identifier + + + + + + + + + + UBL-CR-655 + warning + + + + [UBL-CR-655]-A UBL invoice shall not include the FinancialInstitutionBranch ID scheme identifier + + + + + + + + + + UBL-CR-656 + warning + + + + [UBL-CR-656]-A UBL invoice should not include the InvoiceTypeCode listID + + + + + + + + + + UBL-CR-657 + warning + + + + [UBL-CR-657]-A UBL invoice should not include the DocumentCurrencyCode listID + + + + + + + + + + UBL-CR-658 + warning + + + + [UBL-CR-658]-A UBL invoice should not include the TaxCurrencyCode listID + + + + + + + + + + UBL-CR-659 + warning + + + + [UBL-CR-659]-A UBL invoice shall not include the AdditionalDocumentReference DocumentTypeCode listID + + + + + + + + + + UBL-CR-660 + warning + + + + [UBL-CR-660]-A UBL invoice should not include the Country Identification code listID + + + + + + + + + + UBL-CR-661 + warning + + + + [UBL-CR-661]-A UBL invoice should not include the PaymentMeansCode listID + + + + + + + + + + UBL-CR-662 + warning + + + + [UBL-CR-662]-A UBL invoice should not include the AllowanceChargeReasonCode listID + + + + + + + + + + UBL-CR-663 + warning + + + + [UBL-CR-663]-A UBL invoice should not include the unitCodeListID + + + + + + + + + + UBL-CR-664 + warning + + + + [UBL-CR-664]-A UBL invoice should not include the FinancialInstitutionBranch FinancialInstitution + + + + + + + + + + UBL-CR-665 + warning + + + + [UBL-CR-665]-A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130' + + + + + + + + + + UBL-CR-666 + fatal + + + + [UBL-CR-666]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment + + + + + + + + + + UBL-CR-667 + warning + + + + [UBL-CR-667]-A UBL invoice should not include a Buyer Item Identification schemeID + + + + + + + + + + UBL-CR-668 + warning + + + + [UBL-CR-668]-A UBL invoice should not include a Sellers Item Identification schemeID + + + + + + + + + + UBL-CR-669 + warning + + + + [UBL-CR-669]-A UBL invoice should not include a Price Allowance Reason Code + + + + + + + + + + UBL-CR-670 + warning + + + + [UBL-CR-670]-A UBL invoice should not include a Price Allowance Reason + + + + + + + + + + UBL-CR-671 + warning + + + + [UBL-CR-671]-A UBL invoice should not include a Price Allowance Multiplier Factor + + + + + + + + + + UBL-CR-672 + warning + + + + [UBL-CR-672]-A UBL credit note should not include the CreditNoteTypeCode listID + + + + + + + + + + UBL-CR-673 + fatal + + + + [UBL-CR-673]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Document Description + + + + + + + + + + UBL-CR-674 + warning + + + + [UBL-CR-674]-A UBL invoice should not include the PrimaryAccountNumberID schemeID + + + + + + + + + + UBL-CR-675 + warning + + + + [UBL-CR-675]-A UBL invoice should not include the NetworkID schemeID + + + + + + + + + + UBL-CR-676 + warning + + + + [UBL-CR-676]-A UBL invoice should not include the PaymentMandate/ID schemeID + + + + + + + + + + UBL-CR-677 + warning + + + + [UBL-CR-677]-A UBL invoice should not include the PayerFinancialAccount/ID schemeID + + + + + + + + + + UBL-CR-678 + warning + + + + [UBL-CR-678]-A UBL invoice should not include the TaxCategory/ID schemeID + + + + + + + + + + UBL-CR-679 + warning + + + + [UBL-CR-679]-A UBL invoice should not include the ClassifiedTaxCategory/ID schemeID + + + + + + + + + + UBL-CR-680 + warning + + + + [UBL-CR-680]-A UBL invoice should not include the PaymentMeans/PayerFinancialAccount + + + + + + + + + + UBL-CR-681 + warning + + + + [UBL-CR-681]-A UBL invoice should not include the PaymentMeans InstructionNote + + + + + + + + + + UBL-CR-682 + warning + + + + [UBL-CR-682]-A UBL invoice should not include the Delivery DeliveryAddress + + + + + + + + + + UBL-DT-08 + warning + + + + [UBL-DT-08]-Scheme name attribute should not be present + + + + + + + + + + UBL-DT-09 + warning + + + + [UBL-DT-09]-Scheme agency name attribute should not be present + + + + + + + + + + UBL-DT-10 + warning + + + + [UBL-DT-10]-Scheme data uri attribute should not be present + + + + + + + + + + UBL-DT-11 + warning + + + + [UBL-DT-11]-Scheme uri attribute should not be present + + + + + + + + + + UBL-DT-12 + warning + + + + [UBL-DT-12]-Format attribute should not be present + + + + + + + + + + UBL-DT-13 + warning + + + + [UBL-DT-13]-Unit code list identifier attribute should not be present + + + + + + + + + + UBL-DT-14 + warning + + + + [UBL-DT-14]-Unit code list agency identifier attribute should not be present + + + + + + + + + + UBL-DT-15 + warning + + + + [UBL-DT-15]-Unit code list agency name attribute should not be present + + + + + + + + + + UBL-DT-16 + warning + + + + [UBL-DT-16]-List agency name attribute should not be present + + + + + + + + + + UBL-DT-17 + warning + + + + [UBL-DT-17]-List name attribute should not be present + + + + + + + + + + UBL-DT-18 + warning + + + + [UBL-DT-18]-Name attribute should not be present + + + + + + + + + + UBL-DT-19 + warning + + + + [UBL-DT-19]-Language identifier attribute should not be present + + + + + + + + + + UBL-DT-20 + warning + + + + [UBL-DT-20]-List uri attribute should not be present + + + + + + + + + + UBL-DT-21 + warning + + + + [UBL-DT-21]-List scheme uri attribute should not be present + + + + + + + + + + UBL-DT-22 + warning + + + + [UBL-DT-22]-Language local identifier attribute should not be present + + + + + + + + + + UBL-DT-23 + warning + + + + [UBL-DT-23]-Uri attribute should not be present + + + + + + + + + + UBL-DT-24 + warning + + + + [UBL-DT-24]-Currency code list version id should not be present + + + + + + + + + + UBL-DT-25 + warning + + + + [UBL-DT-25]-CharacterSetCode attribute should not be present + + + + + + + + + + UBL-DT-26 + warning + + + + [UBL-DT-26]-EncodingCode attribute should not be present + + + + + + + + + + UBL-DT-27 + warning + + + + [UBL-DT-27]-Scheme Agency ID attribute should not be present + + + + + + + + + + UBL-DT-28 + warning + + + + [UBL-DT-28]-List Agency ID attribute should not be present + + + + + + + + + + UBL-SR-01 + fatal + + + + [UBL-SR-01]-Contract identifier shall occur maximum once. + + + + + + + + + + UBL-SR-02 + fatal + + + + [UBL-SR-02]-Receive advice identifier shall occur maximum once + + + + + + + + + + UBL-SR-03 + fatal + + + + [UBL-SR-03]-Despatch advice identifier shall occur maximum once + + + + + + + + + + UBL-SR-04 + fatal + + + + [UBL-SR-04]-Invoice object identifier shall occur maximum once + + + + + + + + + + UBL-SR-05 + fatal + + + + [UBL-SR-05]-Payment terms shall occur maximum once + + + + + + + + + + UBL-SR-08 + fatal + + + + [UBL-SR-08]-Invoice period shall occur maximum once + + + + + + + + + + UBL-SR-09 + fatal + + + + [UBL-SR-09]-Seller name shall occur maximum once + + + + + + + + + + UBL-SR-10 + fatal + + + + [UBL-SR-10]-Seller trader name shall occur maximum once + + + + + + + + + + UBL-SR-11 + fatal + + + + [UBL-SR-11]-Seller legal registration identifier shall occur maximum once + + + + + + + + + + UBL-SR-12 + fatal + + + + [UBL-SR-12]-Seller VAT identifier shall occur maximum once + + + + + + + + + + UBL-SR-13 + fatal + + + + [UBL-SR-13]-Seller tax registration shall occur maximum once + + + + + + + + + + UBL-SR-14 + fatal + + + + [UBL-SR-14]-Seller additional legal information shall occur maximum once + + + + + + + + + + UBL-SR-15 + fatal + + + + [UBL-SR-15]-Buyer name shall occur maximum once + + + + + + + + + + UBL-SR-16 + fatal + + + + [UBL-SR-16]-Buyer identifier shall occur maximum once + + + + + + + + + + UBL-SR-17 + fatal + + + + [UBL-SR-17]-Buyer legal registration identifier shall occur maximum once + + + + + + + + + + UBL-SR-18 + fatal + + + + [UBL-SR-18]-Buyer VAT identifier shall occur maximum once + + + + + + + + + + UBL-SR-24 + fatal + + + + [UBL-SR-24]-Deliver to information shall occur maximum once + + + + + + + + + + UBL-SR-29 + fatal + + + + [UBL-SR-29]-Bank creditor reference shall occur maximum once + + + + + + + + + + UBL-SR-39 + fatal + + + + [UBL-SR-39]-Project reference shall occur maximum once. + + + + + + + + + + UBL-SR-40 + fatal + + + + [UBL-SR-40]-Buyer trade name shall occur maximum once + + + + + + + + + + UBL-SR-44 + fatal + + + + [UBL-SR-44]-An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans + + + + + + + + + + UBL-SR-45 + fatal + + + + [UBL-SR-45]-Due Date shall occur maximum once + + + + + + + + + + UBL-SR-46 + fatal + + + + [UBL-SR-46]-Payment means text shall occur maximum once + + + + + + + + + + UBL-SR-47 + fatal + + + + [UBL-SR-47]-When there are more than one payment means code, they shall be equal + + + + + + + + + + UBL-SR-49 + fatal + + + + [UBL-SR-49]-Value tax point date shall occur maximum once + + + + + + + + + + UBL-SR-54 + fatal + + + + [UBL-SR-54]-An Invoice shall contain maximum one Payment Card account (BG-18). + + + + + + + + + + UBL-SR-55 + fatal + + + + [UBL-SR-55]-An Invoice shall contain maximum one Payment Mandate (BG-19). + + + + + + + + + + UBL-SR-56 + fatal + + + + [UBL-SR-56]-An Invoice shall contain maximum one Originator document reference identifier (BT-17). + + + + + + + + + + UBL-SR-57 + fatal + + + + [UBL-SR-57]-PartyLegalEntity shall occur maximum once within a Party. + + + + + + + + + + + + + + + + UBL-SR-34 + fatal + + + + [UBL-SR-34]-Invoice line note shall occur maximum once + + + + + + + + + + UBL-SR-35 + fatal + + + + [UBL-SR-35]-Referenced purchase order line identifier shall occur maximum once + + + + + + + + + + UBL-SR-36 + fatal + + + + [UBL-SR-36]-Invoice line period shall occur maximum once + + + + + + + + + + UBL-SR-37 + fatal + + + + [UBL-SR-37]-Item price discount shall occur maximum once + + + + + + + + + + UBL-SR-48 + fatal + + + + [UBL-SR-48]-Invoice lines shall have one and only one classified tax category. + + + + + + + + + + UBL-SR-50 + fatal + + + + [UBL-SR-50]-Item description shall occur maximum once + + + + + + + + + + UBL-SR-52 + fatal + + + + [UBL-SR-52]-Document reference shall occur maximum once + + + + + + + + + + + + + + + + UBL-SR-19 + fatal + + + + [UBL-SR-19]-Payee name shall occur maximum once, if the Payee is different from the Seller + + + + + + + + + + UBL-SR-20 + fatal + + + + [UBL-SR-20]-Payee identifier shall occur maximum once, if the Payee is different from the Seller + + + + + + + + + + UBL-SR-21 + fatal + + + + [UBL-SR-21]-Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller + + + + + + + + + + + + + + + + UBL-SR-26 + fatal + + + + [UBL-SR-26]-Payment reference shall occur maximum once + + + + + + + + + + UBL-SR-27 + fatal + + + + [UBL-SR-27]-Payment means text shall occur maximum once + + + + + + + + + + UBL-SR-28 + fatal + + + + [UBL-SR-28]-Mandate reference identifier shall occur maximum once + + + + + + + + + + UBL-SR-58 + fatal + + + + [UBL-SR-58]-A Financial Institution Branch shall contain exactly one Payment service provider identifier (BT-86). + + + + + + + + + + UBL-SR-59 + fatal + + + + [UBL-SR-59]-A Financial Institution Branch shall contain exactly one Payment account identifier (BT-84). + + + + + + + + + + + + + + + + UBL-SR-06 + fatal + + + + [UBL-SR-06]-Preceding invoice reference shall occur maximum once + + + + + + + + + + UBL-SR-07 + fatal + + + + [UBL-SR-07]-If there is a preceding invoice reference, the preceding invoice number shall be present + + + + + + + + + + + + + + + + UBL-SR-22 + fatal + + + + [UBL-SR-22]-Seller tax representative name shall occur maximum once, if the Seller has a tax representative + + + + + + + + + + UBL-SR-23 + fatal + + + + [UBL-SR-23]-Seller tax representative VAT identifier shall occur maximum once, if the Seller has a tax representative + + + + + + + + + + + + + + + + UBL-SR-32 + fatal + + + + [UBL-SR-32]-VAT exemption reason text shall occur maximum once + + + + + + + + + + + + + + + + + + + + + + + BR-CL-01 + fatal + + + + [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 + fatal + + + + [BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-04 + fatal + + + + [BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-05 + fatal + + + + [BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + BR-CL-06 + fatal + + + + [BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2005. + + + + + + + + + + + + + + + + BR-CL-07 + fatal + + + + [BR-CL-07]-Object identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153. + + + + + + + + + + + + + + + + BR-CL-10 + fatal + + + + [BR-CL-10]-Any identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + BR-CL-11 + fatal + + + + [BR-CL-11]-Any registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + BR-CL-13 + fatal + + + + [BR-CL-13]-Item classification identifier identification scheme identifier MUST be + coded using one of the UNTDID 7143 list. + + + + + + + + + + + + + + + + BR-CL-14 + fatal + + + + [BR-CL-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + BR-CL-15 + fatal + + + + [BR-CL-15]-Country codes in an invoice MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + BR-CL-16 + fatal + + + + [BR-CL-16]-Payment means in an invoice MUST be coded using UNCL4461 code list + + + + + + + + + + + + + + + + BR-CL-17 + fatal + + + + [BR-CL-17]-Invoice tax categories MUST be coded using UNCL5305 code list + + + + + + + + + + + + + + + + BR-CL-18 + fatal + + + + [BR-CL-18]-Invoice tax categories MUST be coded using UNCL5305 code list + + + + + + + + + + + + + + + + BR-CL-19 + fatal + + + + [BR-CL-19]-Coded allowance reasons MUST belong to the UNCL 5189 code list + + + + + + + + + + + + + + + + BR-CL-20 + fatal + + + + [BR-CL-20]-Coded charge reasons MUST belong to the UNCL 7161 code list + + + + + + + + + + + + + + + + BR-CL-21 + fatal + + + + [BR-CL-21]-Item standard identifier scheme identifier MUST belong to the ISO 6523 ICD code list + + + + + + + + + + + + + + + + BR-CL-22 + fatal + + + + [BR-CL-22]-Tax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list + + + + + + + + + + + + + + + + BR-CL-23 + fatal + + + + [BR-CL-23]-Unit code MUST be coded according to the UN/ECE Recommendation 20 with + Rec 21 extension + + + + + + + + + + + + + + + + BR-CL-24 + fatal + + + + [BR-CL-24]-For Mime code in attribute use MIMEMediaType. + + + + + + + + + + + + + + + + BR-CL-25 + fatal + + + + [BR-CL-25]-Endpoint identifier scheme identifier MUST belong to the CEF EAS code list + + + + + + + + + + + + + + + + BR-CL-26 + fatal + + + + [BR-CL-26]-Delivery location identifier scheme identifier MUST belong to the ISO 6523 ICD code list + + + + + + + + + + diff --git a/vendor/upstream.json b/vendor/upstream.json index 674c8f0..7ab48f8 100644 --- a/vendor/upstream.json +++ b/vendor/upstream.json @@ -2,21 +2,21 @@ "owner": "ConnectingEurope", "repo": "eInvoicing-EN16931", "releases_api": "https://api.github.com/repos/ConnectingEurope/eInvoicing-EN16931/releases", - "pinned_tag": "validation-1.3.16", - "pinned_version": "1.3.16", + "pinned_tag": "validation-1.3.17", + "pinned_version": "1.3.17", "user_agent": "en16931-validate-einvoice-upstream-check/1.0", "assets": { "cii": { "name_prefix": "en16931-cii-", - "zip_sha256": "1cd53cb8a84d38aedc82c0caede217da983a7934dd663f793a092fd66443c561", + "zip_sha256": "e5f3235824b6b38454b1d54cf3f14e01efb5b33971fbefc4e64997d0ef619e89", "xslt_inner": "xslt/EN16931-CII-validation.xslt", - "xslt_sha256": "0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53" + "xslt_sha256": "0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0" }, "ubl": { "name_prefix": "en16931-ubl-", - "zip_sha256": "bafada015efbc5248bf5e05ad2191e1d9833ef96e9dd5f4bce420a747342da85", + "zip_sha256": "bf02a0e3f6cbe692a4a28e70be7bdcaded5612b4169b543e13d6cb4f33c29e92", "xslt_inner": "xslt/EN16931-UBL-validation.xslt", - "xslt_sha256": "39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd" + "xslt_sha256": "fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c" } } } From 1e94f2a9f2fef85bc41c686424512931700d0674 Mon Sep 17 00:00:00 2001 From: euphyra-dev Date: Sun, 18 Oct 2026 13:00:10 +0200 Subject: [PATCH 2/3] README: 1.3.17 effective date per the Commission registry (15/11/26) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 18369b7..f6e84de 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ contain is now a configuration error (exit 2) that gives the new name, instead of a filter that could never fire. To keep 1.3.16, set `version: '1.3.16'` or pin `v1.1.2`. +The Commission's [registry of EN16931 artefacts](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108974/Registry+of+supporting+artefacts+to+implement+EN16931) +lists 1.3.17 as published on 12/10/26 with effective date 15/11/26; until +then 1.3.16 is the version in operation. + Every release from `v1.1.1` on pins third-party Actions by commit SHA, installs Python dependencies with `--require-hashes`, and refuses invoices with a DOCTYPE or external entities before Saxon runs. From 694ef17c25d269bf1d18891867c647e7a82bad96 Mon Sep 17 00:00:00 2001 From: euphyra-dev Date: Sun, 18 Oct 2026 15:18:17 +0200 Subject: [PATCH 3/3] Keep 1.3.16 as default until 15/11/26; renamed fail-on ids warn The Commission registry lists EN16931 1.3.17 as effective from 15/11/26, so v1.2.0 keeps 1.3.16 as the default and offers 1.3.17 as an opt-in (`version: '1.3.17'`). The default switches in a later release. A fail-on id renamed by 1.3.17 no longer fails the job: the Action prints a ::warning with the id it uses instead and keeps filtering on it. The rename is not the same in both syntaxes (IGIC became BR-IP in CII and BR-IG in UBL, IPSI the reverse), so translation is per syntax, and the test now checks that each pair carries the same rule text. CII-SR-471 is ignored with a warning under 1.3.17; an id that neither version contains is still a configuration error. The Action jobs of the self-test now run both versions, and the cross-OS test pins the report hashes for each. --- .github/workflows/selftest.yml | 8 +- README.md | 70 ++++++----- action.yml | 12 +- docs/RELEASE_AND_RULESET.md | 2 +- examples/validate-invoices.yml | 6 +- src/validate.py | 121 +++++++++++++------ supply-chain/tree.sha256 | 8 +- tests/test_cross_os_report.py | 49 +++++--- tests/test_validate.py | 212 +++++++++++++++++++++++++++------ 9 files changed, 360 insertions(+), 128 deletions(-) diff --git a/.github/workflows/selftest.yml b/.github/workflows/selftest.yml index 3e0cab6..9ee16c7 100644 --- a/.github/workflows/selftest.yml +++ b/.github/workflows/selftest.yml @@ -34,13 +34,14 @@ jobs: if-no-files-found: error action-official: - name: action official ${{ matrix.os }} + name: action official ${{ matrix.os }} ${{ matrix.version }} runs-on: ${{ matrix.os }} timeout-minutes: 20 strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] + version: ['1.3.16', '1.3.17'] steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Official examples must pass @@ -49,15 +50,17 @@ jobs: files: testdata/official/*.xml syntax: auto fail-on: failed-assert + version: ${{ matrix.version }} action-mutants: - name: action mutants ${{ matrix.os }} + name: action mutants ${{ matrix.os }} ${{ matrix.version }} runs-on: ${{ matrix.os }} timeout-minutes: 20 strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] + version: ['1.3.16', '1.3.17'] steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Mutants must fail the job @@ -68,6 +71,7 @@ jobs: files: testdata/mutants/*.xml syntax: auto fail-on: failed-assert + version: ${{ matrix.version }} - name: Require failure and exact ids env: MUTANT_OUTCOME: ${{ steps.mutants.outcome }} diff --git a/README.md b/README.md index f6e84de..f9c0d10 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ [![Self-test EN16931 action](https://github.com/facturxapi/validate-einvoice/actions/workflows/selftest.yml/badge.svg)](https://github.com/facturxapi/validate-einvoice/actions/workflows/selftest.yml) [![EN16931 upstream drift](https://github.com/facturxapi/validate-einvoice/actions/workflows/upstream-drift.yml/badge.svg)](https://github.com/facturxapi/validate-einvoice/actions/workflows/upstream-drift.yml) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Validate%20EN16931-blue?logo=github)](https://github.com/marketplace/actions/validate-en16931-e-invoice) -GitHub Action that runs the official ConnectingEurope EN16931 1.3.17 -XSLT artefacts (CII and UBL) on XML invoices and reports every -`svrl:failed-assert`. +GitHub Action that runs the official ConnectingEurope EN16931 XSLT +artefacts (CII and UBL) on XML invoices and reports every +`svrl:failed-assert`: 1.3.16 by default, 1.3.17 opt-in until it takes +effect on 15/11/26. -A green job means: the vendored 1.3.17 stylesheets (or 1.3.16, if you -set `version`) produced zero +A green job means: the vendored stylesheets of the selected version +(1.3.16 by default, 1.3.17 with `version: '1.3.17'`) produced zero `svrl:failed-assert` on the files you passed. The Action does not call a remote API, does not read PDF attachments, and does not certify a document. @@ -18,22 +19,35 @@ document. | Ref | What it is | |---|---| -| `@v1` | **Mutable** major tag (Marketplace channel). It moves to each new `v1.x.y`; it points at `v1.2.0` (EN16931 1.3.17 by default). | -| `@v1.2.0` | Release tag, never moved once published. Default rules 1.3.17; `version: '1.3.16'` still selects 1.3.16. | -| `@v1.1.2` | Last release whose default is 1.3.16 (`a805a904f9fa1a7d51db5a4160e863748cc3733d`). | +| `@v1` | **Mutable** major tag (Marketplace channel). It moves to each new `v1.x.y`; it points at `v1.2.0` (EN16931 1.3.16 by default, 1.3.17 opt-in). | +| `@v1.2.0` | Release tag, never moved once published. Default rules 1.3.16; `version: '1.3.17'` selects 1.3.17. | +| `@v1.1.2` | Previous release, 1.3.16 only (`a805a904f9fa1a7d51db5a4160e863748cc3733d`). | | Full commit SHA of a release | The frozen tree. Each release's notes give it. | -`v1.2.0` changes the default rules, so a workflow on `@v1` can see new -or renamed rule ids. In 1.3.17 the IGIC / IPSI rules are renamed -`BR-AF-*` → `BR-IP-*` and `BR-AG-*` → `BR-IG-*`, and `CII-SR-471` is -removed. A `fail-on` list that names an id the selected XSLT does not -contain is now a configuration error (exit 2) that gives the new name, -instead of a filter that could never fire. To keep 1.3.16, set -`version: '1.3.16'` or pin `v1.1.2`. +### EN16931 1.3.17: opt-in until 15/11/26 The Commission's [registry of EN16931 artefacts](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108974/Registry+of+supporting+artefacts+to+implement+EN16931) -lists 1.3.17 as published on 12/10/26 with effective date 15/11/26; until -then 1.3.16 is the version in operation. +lists 1.3.17 as published on 12/10/26 and in force from 15/11/26. Until +then 1.3.16 stays the default and 1.3.17 is opt-in: set +`version: '1.3.17'`. A later release, `v1.3.0` (planned for 16/11/26), +makes 1.3.17 the default and `@v1` will move to it; `version: '1.3.16'` +will still select 1.3.16. + +1.3.17 renames the IGIC and IPSI rules (upstream +[#519](https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/519)), +and not the same way in both syntaxes: + +| Rules | 1.3.16 | 1.3.17 CII | 1.3.17 UBL | +|---|---|---|---| +| IGIC (`L`) | `BR-AF-01`…`10` | `BR-IP-01`…`10` | `BR-IG-01`…`10` | +| IPSI (`M`) | `BR-AG-01`…`10` | `BR-IG-01`…`10` | `BR-IP-01`…`10` | + +It also removes `CII-SR-471`. A `fail-on` id written for the other +version does not fail the job: the Action prints a `::warning` naming +the id it uses instead, per syntax, and keeps filtering on it +(`CII-SR-471` is ignored with a warning under 1.3.17). An id that the +selected XSLT does not contain under either name is a configuration +error (exit 2), since it could never fire. Every release from `v1.1.1` on pins third-party Actions by commit SHA, installs Python dependencies with `--require-hashes`, and refuses @@ -68,8 +82,8 @@ Copy-paste workflow: [`examples/validate-invoices.yml`](examples/validate-invoic ## Which FacturX repo should I use? -- [validate-einvoice](https://github.com/facturxapi/validate-einvoice) — GitHub Action that runs the official ConnectingEurope EN16931 1.3.17 XSLT artefacts (CII/UBL). -- [en16931-oracles](https://github.com/facturxapi/en16931-oracles) — Replayable fixtures, receipts and mutants for that same 1.3.17 pin, plus a BR-FR pack for the French Flux2 rules (France_RFE `v1.4.0.02` / `v1.4.0.03`). +- [validate-einvoice](https://github.com/facturxapi/validate-einvoice) — GitHub Action that runs the official ConnectingEurope EN16931 XSLT artefacts (CII/UBL): 1.3.16 by default, 1.3.17 opt-in. +- [en16931-oracles](https://github.com/facturxapi/en16931-oracles) — Replayable fixtures, receipts and mutants for EN16931 1.3.17, plus a BR-FR pack for the French Flux2 rules (France_RFE `v1.4.0.02` / `v1.4.0.03`). - [awesome-einvoicing](https://github.com/facturxapi/awesome-einvoicing) — Sourced map of specs, validators, libraries and corpora. Inclusion is not a ranking. ## Public self-test (24 Aug 2026) @@ -102,11 +116,11 @@ When this repository is checked out as the workflow repo (or vendored): files: invoices/**/*.xml fail-on: failed-assert -# Previous rules — EN16931 1.3.16 on the current release +# Opt in to EN16931 1.3.17 (in force from 15/11/26) - uses: facturxapi/validate-einvoice@v1 with: files: invoices/**/*.xml - version: '1.3.16' + version: '1.3.17' # Mutable — @v1 major tag (follows the latest v1.x.y) - uses: facturxapi/validate-einvoice@v1 @@ -133,8 +147,8 @@ When this repository is checked out as the workflow repo (or vendored): |---|---|---|---| | `files` | yes | — | Glob(s) of XML invoices, relative to the workspace. Separate several globs with a newline or a comma. Zero matches fail the job (exit 2). | | `syntax` | no | `auto` | `auto` reads the document-element namespace. `cii` / `ubl` force one syntax and fail if the document does not match. | -| `fail-on` | no | `failed-assert` | `failed-assert`: any `svrl:failed-assert` fails the job. `never`: report only. Comma-separated ids: fail only if one of those ids fires; an id the selected XSLT does not contain is a configuration error (exit 2). | -| `version` | no | `1.3.17` | `1.3.17` or `1.3.16`, the two vendored releases. Any other value is a configuration error. | +| `fail-on` | no | `failed-assert` | `failed-assert`: any `svrl:failed-assert` fails the job. `never`: report only. Comma-separated ids: fail only if one of those ids fires. An id renamed between 1.3.16 and 1.3.17 is translated with a warning; an id the selected XSLT does not contain under either name is a configuration error (exit 2). | +| `version` | no | `1.3.16` | `1.3.16` or `1.3.17` (opt-in until it takes effect on 15/11/26), the two vendored releases. Any other value is a configuration error. | ## Outputs @@ -160,10 +174,10 @@ A different stylesheet is a different oracle; pins are not auto-updated. | Version | Syntax | Vendored file | SHA256 | |---|---|---|---| -| 1.3.17 (default) | CII | `vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt` | `0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0` | -| 1.3.17 (default) | UBL | `vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt` | `fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c` | -| 1.3.16 | CII | `vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt` | `0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53` | -| 1.3.16 | UBL | `vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt` | `39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd` | +| 1.3.17 (opt-in) | CII | `vendor/en16931-1.3.17/xslt/EN16931-CII-validation.xslt` | `0757f07909938b1b297b8356ab7b66406c89f1b342325385d6a2def998c817f0` | +| 1.3.17 (opt-in) | UBL | `vendor/en16931-1.3.17/xslt/EN16931-UBL-validation.xslt` | `fc4e6cfa8596bba0c2abd19038a98960c6ee9fc1f44566787c115efd4f4aca7c` | +| 1.3.16 (default) | CII | `vendor/en16931-1.3.16/xslt/EN16931-CII-validation.xslt` | `0b234dea2bbfee739b7761e607a992c17fab88773014ef56355b6158cfb1cc53` | +| 1.3.16 (default) | UBL | `vendor/en16931-1.3.16/xslt/EN16931-UBL-validation.xslt` | `39f9d282867f1a49e7708d9e29a53da89643e1ee56f10cec1ebcf1277595fcbd` | Source of those octets: ConnectingEurope `eInvoicing-EN16931` tags [`validation-1.3.17`](https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17) @@ -210,7 +224,7 @@ unit tests, and run the identity gate. Any difference is a failure. - Not Factur-X / ZUGFeRD packaging, not PDF/A-3, not veraPDF. - Not a certification and not a product benchmark. - Not an official ConnectingEurope Action. It only runs the official - ConnectingEurope EN16931 XSLT artefacts (1.3.17, 1.3.16). + ConnectingEurope EN16931 XSLT artefacts (1.3.16, 1.3.17). ## Licence diff --git a/action.yml b/action.yml index 8633ef8..edce158 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,6 @@ name: 'Validate EN16931 e-invoice' description: >- - Run the official ConnectingEurope EN16931 1.3.17 XSLT on Factur-X / + Run the official EN16931 1.3.16 XSLT (1.3.17 opt-in) on Factur-X / ZUGFeRD CII XML and UBL XML; fail on svrl:failed-assert. author: 'euphyra-dev' @@ -24,15 +24,17 @@ inputs: description: >- failed-assert (default): any svrl:failed-assert fails the job. never: write the report only. - Comma-separated rule ids: fail only if one of those ids fires. + Comma-separated rule ids: fail only if one of those ids fires; an id + renamed between 1.3.16 and 1.3.17 is translated with a warning. required: false default: 'failed-assert' version: description: >- - EN16931 XSLT version: 1.3.17 (default) or 1.3.16. Only these vendored, - unmodified ConnectingEurope artefacts are shipped. + EN16931 XSLT version: 1.3.16 (default) or 1.3.17 (opt-in until it + takes effect on 15/11/26). Only these vendored, unmodified + ConnectingEurope artefacts are shipped. required: false - default: '1.3.17' + default: '1.3.16' outputs: verdict: diff --git a/docs/RELEASE_AND_RULESET.md b/docs/RELEASE_AND_RULESET.md index 58d4289..eee6ff4 100644 --- a/docs/RELEASE_AND_RULESET.md +++ b/docs/RELEASE_AND_RULESET.md @@ -6,7 +6,7 @@ This document describes the **expected** GitHub settings for `facturxapi/validat | Artifact | Policy | |---|---| -| Marketplace major tag `v1` | **Mutable** convenience channel, moved to each new `v1.x.y`. It points at `v1.2.0` (EN16931 1.3.17 by default). | +| Marketplace major tag `v1` | **Mutable** convenience channel, moved to each new `v1.x.y`. It points at `v1.2.0` (EN16931 1.3.16 by default, 1.3.17 opt-in). | | Patch tags `v1.x.y` | Immutable once published; never force-move. Release notes name the tagged commit SHA. | | `main` | Integration branch; must pass all CI gates before tag cut. | diff --git a/examples/validate-invoices.yml b/examples/validate-invoices.yml index d77b434..20ad862 100644 --- a/examples/validate-invoices.yml +++ b/examples/validate-invoices.yml @@ -2,7 +2,8 @@ # # Downstream consumers: pin `facturxapi/validate-einvoice@<40-char-sha>` from the # release notes. The moving `@v1` tag is a mutable convenience channel that -# follows the latest v1.x.y. Set `version: '1.3.16'` to keep the previous rules. +# follows the latest v1.x.y. The default rules are EN16931 1.3.16; set +# `version: '1.3.17'` to opt in before 1.3.17 takes effect on 15/11/26. name: Validate EN16931 invoices @@ -25,14 +26,13 @@ jobs: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - name: Run official EN16931 1.3.17 XSLT + - name: Run official EN16931 XSLT id: en16931 uses: ./ with: files: testdata/official/*.xml syntax: auto fail-on: failed-assert - version: '1.3.17' - name: Show verdict if: always() diff --git a/src/validate.py b/src/validate.py index 39b72a7..b5aeb28 100644 --- a/src/validate.py +++ b/src/validate.py @@ -25,7 +25,7 @@ from pathlib import Path from typing import Any, Iterator -DEFAULT_VERSION = "1.3.17" +DEFAULT_VERSION = "1.3.16" ENGINE_NAME = "SaxonC-HE 13.0" ENGINE_PKG_PIN = "saxonche==13.0.0" ENGINE_PKG_PREFIX = "13.0" @@ -40,8 +40,9 @@ UBL_CREDIT_NS = "urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" # Vendored ConnectingEurope releases, unmodified: (path, SHA256) per syntax. -# The default follows the latest release; older ones stay selectable so a -# workflow that pins `version:` keeps the rules it was written against. +# The default is the release in force (the Commission registry lists 1.3.17 +# as effective from 15/11/26); a newer one is selectable before that date and +# older ones stay selectable so a pinned `version:` keeps its rules. VENDORED_XSLT: dict[str, dict[str, tuple[str, str]]] = { "1.3.17": { "CII": ( @@ -65,12 +66,21 @@ }, } -# 1.3.17 renamed the IGIC / IPSI rule families (upstream issue #519) and -# removed CII-SR-471 (#514). A `fail-on` id that no longer exists would -# never fire, so it is refused with the new name instead. -RENAMED_IN_1_3_17 = { - **{f"BR-AF-{n:02d}": f"BR-IP-{n:02d}" for n in range(1, 11)}, - **{f"BR-AG-{n:02d}": f"BR-IG-{n:02d}" for n in range(1, 11)}, +# 1.3.17 renamed the IGIC (BR-AF) and IPSI (BR-AG) rule families (upstream +# issue #519), but not the same way in both syntaxes: IGIC became BR-IG in UBL +# and BR-IP in CII, IPSI the reverse. It also removed CII-SR-471 (#514). +# A `fail-on` id written for the other version is translated per syntax with +# a warning, so a workflow on @v1 keeps its gate; an id that neither version +# knows could never fire, so it is refused. +RENAMED_IN_1_3_17: dict[str, dict[str, str]] = { + "CII": { + **{f"BR-AF-{n:02d}": f"BR-IP-{n:02d}" for n in range(1, 11)}, + **{f"BR-AG-{n:02d}": f"BR-IG-{n:02d}" for n in range(1, 11)}, + }, + "UBL": { + **{f"BR-AF-{n:02d}": f"BR-IG-{n:02d}" for n in range(1, 11)}, + **{f"BR-AG-{n:02d}": f"BR-IP-{n:02d}" for n in range(1, 11)}, + }, } REMOVED_IN_1_3_17 = {"CII-SR-471"} XSLT_RULE_ID_RE = re.compile(r'([^<]+)') @@ -499,32 +509,66 @@ def load_xslt(root: Path, version: str) -> dict[str, dict[str, str | Path]]: return resolved -def xslt_rule_ids(xslt: dict[str, dict[str, str | Path]]) -> set[str]: - ids: set[str] = set() - for info in xslt.values(): - text = Path(info["path"]).read_text(encoding="utf-8") - ids.update(XSLT_RULE_ID_RE.findall(text)) - return ids +def xslt_rule_ids(xslt: dict[str, dict[str, str | Path]]) -> dict[str, set[str]]: + return { + syntax: set(XSLT_RULE_ID_RE.findall(Path(info["path"]).read_text(encoding="utf-8"))) + for syntax, info in xslt.items() + } -def check_fail_on_ids(fail_on: dict[str, Any], known: set[str], version: str) -> None: +def resolve_fail_on_ids( + fail_on: dict[str, Any], known: dict[str, set[str]], version: str +) -> tuple[dict[str, Any], list[str]]: + """Map `fail-on` ids onto each syntax's XSLT; return (fail_on, warnings).""" if fail_on["mode"] != "ids": - return - unknown = [rule for rule in fail_on["ids"] if rule not in known] - if not unknown: - return - notes = [] - for rule in unknown: - if rule in RENAMED_IN_1_3_17 and RENAMED_IN_1_3_17[rule] in known: - notes.append(f"{rule} (renamed {RENAMED_IN_1_3_17[rule]} in 1.3.17)") - elif rule in REMOVED_IN_1_3_17: - notes.append(f"{rule} (removed in 1.3.17)") - else: - notes.append(rule) - raise ConfigError( - f"fail-on id(s) not in the EN16931 {version} XSLT, so they could never fire: " - + ", ".join(notes) - ) + return fail_on, [] + watch: dict[str, list[str]] = {syntax: [] for syntax in known} + warnings: list[str] = [] + unknown: list[str] = [] + for rule in fail_on["ids"]: + found = False + translated: list[str] = [] + for syntax, ids in known.items(): + renamed = RENAMED_IN_1_3_17[syntax] + aliases = {**renamed, **{new: old for old, new in renamed.items()}} + target = rule if rule in ids else aliases.get(rule) + if target not in ids: + continue + found = True + if target != rule: + translated.append(f"{target} in {syntax}") + if target not in watch[syntax]: + watch[syntax].append(target) + if translated: + if any(rule in renamed for renamed in RENAMED_IN_1_3_17.values()): + warnings.append( + f"fail-on: {rule} was renamed in EN16931 1.3.17; filtering on " + f"{' and '.join(translated)}. Use the new id in the workflow." + ) + else: + warnings.append( + f"fail-on: {rule} is a 1.3.17 id; with version {version} " + f"filtering on {' and '.join(translated)}." + ) + elif not found and rule in REMOVED_IN_1_3_17: + warnings.append( + f"fail-on: {rule} was removed in EN16931 1.3.17 and cannot " + f"fire with version {version}; ignored." + ) + elif not found: + unknown.append(rule) + if unknown: + raise ConfigError( + f"fail-on id(s) not in the EN16931 {version} XSLT, so they could never fire: " + + ", ".join(unknown) + ) + return {**fail_on, "watch": watch}, warnings + + +def warning_line(message: str, *, github: bool) -> str: + if github: + return f"::warning title=fail-on::{escape_workflow_data(message)}" + return f"warning: {message}" class SaxonEngine: @@ -612,7 +656,8 @@ def file_triggers_fail(row: dict[str, Any], fail_on: dict[str, Any]) -> bool: ids = list(row["failed_assert_ids"]) if fail_on["mode"] == "failed-assert": return len(ids) > 0 - watched = set(fail_on["ids"]) + watch = fail_on.get("watch") + watched = set(watch[row["syntax"]] if watch else fail_on["ids"]) return any(item in watched for item in ids) @@ -759,7 +804,9 @@ def validate_files( ) -> dict[str, Any]: fail_on = parse_fail_on(fail_on_raw) xslt = load_xslt(root, version) - check_fail_on_ids(fail_on, xslt_rule_ids(xslt), version) + fail_on, fail_on_warnings = resolve_fail_on_ids( + fail_on, xslt_rule_ids(xslt), version + ) engine = SaxonEngine() rows: list[dict[str, Any]] = [] annotations: list[str] = [] @@ -829,6 +876,10 @@ def validate_files( "report_text": report_text, "report_sha256": report_sha, "annotations": annotations, + "warnings": [ + warning_line(message, github=emit_annotations) + for message in fail_on_warnings + ], "exit_code": EXIT_FAIL if verdict == "fail" else EXIT_OK, } @@ -839,6 +890,8 @@ def print_console(result: dict[str, Any]) -> None: emit_line(f"version: {payload['version']}") emit_line(f"syntax : {payload['syntax']}") emit_line(f"fail-on: {payload['fail_on']}") + for line in result["warnings"]: + emit_line(line) emit_line("") emit_line(f"{'file':<42} {'syn':<4} {'n':>3} verdict ids") emit_line("-" * 88) diff --git a/supply-chain/tree.sha256 b/supply-chain/tree.sha256 index 25bb7f7..14908bd 100644 --- a/supply-chain/tree.sha256 +++ b/supply-chain/tree.sha256 @@ -1,10 +1,10 @@ -2b822e8f93016f265f6bca96a70c862ecedf16c49de7e07ece70554653bcec2f .github/workflows/selftest.yml +d1fd7b08d42a8646f0957cc4d11bd8e12ec988a64e4373ebe3df152a6e929959 .github/workflows/selftest.yml 4fc0db0a2924b8d652e3b6c470afa221826ebf70ce5619694da135eda7bf2043 .github/workflows/supply-chain.yml 2579e8013e09725f5e2fe8bbe52e7a2affda62c574cad7a227757a41f9885c76 .github/workflows/upstream-drift.yml fc1787bfc30d6515629905aec97d6c9640ffe3289fcf91033b9e897e743abbe3 SECURITY.md -4e7b5766a1af101271e6c9314483d6b6273d5eeb689aef9a73543fe7049efe82 action.yml -73bf8243dfdb3986e0ad3869ef6cb94a1d128525a612e5b07b53649e5c28e6a4 docs/RELEASE_AND_RULESET.md -485d61c9c79a0a6ee76edeac9f720b1023ae14e060462bf687e5d02e5ed08b37 examples/validate-invoices.yml +e8350a7f131bba7a295bc4a29f21a8b4c4b77dcab3bbd2e807a83e7717f4821b action.yml +6d75f3ff3cc728bb45641f62b70235205553971114b445b271dd06621cd54c0f docs/RELEASE_AND_RULESET.md +919bd6c529562c7429c5908a38519a6fa6b6b714d187a39541d70708aab6b1c5 examples/validate-invoices.yml edb6cbad1392b557221ec706c3348aa62cc8e9a95b6eff9e8852c4df209acb24 requirements.lock 541d1b0f2bc68aedb17c6adae7188117643cefe0e719c4b113ece67df4b7e035 requirements.txt c473a9139b9beb7686fa5bfd6212e6e074ea45024bfe61472d0aaf529f38586e scripts/check_supply_chain.py diff --git a/tests/test_cross_os_report.py b/tests/test_cross_os_report.py index 1e02f67..dd82ebd 100644 --- a/tests/test_cross_os_report.py +++ b/tests/test_cross_os_report.py @@ -20,8 +20,17 @@ import validate # noqa: E402 -LINUX_OFFICIAL_REPORT = "5ab42d1f115a524f9ce524f65b8755bfab9cdc750d30d1b35548264716b3b95e" -LINUX_MUTANT_REPORT = "35cb6995e323611b8e774be6b4e59e885bb8ea7b10a330a5d59b8c550c6ab803" +# (official, mutants) canonical report SHA256 per vendored version. +LINUX_REPORTS = { + "1.3.16": ( + "d46955b924e88ce203ea39e5498669aa5d3204c22a87cae68f89236718382e0d", + "26b49d80dcf82e0b256a415564cc67bf68362ce2903c2e41d6cf9b79d85050b6", + ), + "1.3.17": ( + "5ab42d1f115a524f9ce524f65b8755bfab9cdc750d30d1b35548264716b3b95e", + "35cb6995e323611b8e774be6b4e59e885bb8ea7b10a330a5d59b8c550c6ab803", + ), +} def sha256_bytes(data: bytes) -> str: @@ -36,9 +45,11 @@ def testdata_xml() -> list[Path]: return sorted((ROOT / "testdata").rglob("*.xml")) -def file_row(kind: str, name: str, file_sha: str, ids: list[str]) -> dict: +def file_row( + kind: str, name: str, file_sha: str, ids: list[str], version: str = validate.DEFAULT_VERSION +) -> dict: syntax = "UBL" if name.startswith("ubl-") else "CII" - xslt, xslt_sha = validate.VENDORED_XSLT[validate.DEFAULT_VERSION][syntax] + xslt, xslt_sha = validate.VENDORED_XSLT[version][syntax] return { "failed_assert_count": len(ids), "failed_assert_ids": list(ids), @@ -51,13 +62,15 @@ def file_row(kind: str, name: str, file_sha: str, ids: list[str]) -> dict: } -def reconstruct_report(kind: str, expected: dict[str, list[str]], *, crlf: bool) -> tuple[str, str]: +def reconstruct_report( + kind: str, expected: dict[str, list[str]], *, crlf: bool, version: str = validate.DEFAULT_VERSION +) -> tuple[str, str]: names = sorted(path.name for path in (ROOT / "testdata" / "official").glob("*.xml")) rows = [] for name in names: raw = (ROOT / "testdata" / kind / name).read_bytes() on_disk = lf_to_crlf(raw) if crlf else raw - rows.append(file_row(kind, name, sha256_bytes(on_disk), expected[name])) + rows.append(file_row(kind, name, sha256_bytes(on_disk), expected[name], version)) rows.sort(key=lambda item: item["path"]) payload = { "engine": validate.ENGINE_NAME, @@ -67,7 +80,7 @@ def reconstruct_report(kind: str, expected: dict[str, list[str]], *, crlf: bool) "files": rows, "syntax": "auto", "verdict": "fail" if any(row["verdict"] == "fail" for row in rows) else "pass", - "version": validate.DEFAULT_VERSION, + "version": version, } text = validate.canonical_json(payload) return text, validate.sha256_text(text) @@ -197,16 +210,18 @@ def test_official_and_mutant_reports_match_known_lf_hashes(self) -> None: names = sorted(path.name for path in (ROOT / "testdata" / "official").glob("*.xml")) self.assertEqual(len(names), 10) expected_off = {name: [] for name in names} - text_off, hash_off = reconstruct_report("official", expected_off, crlf=False) - text_mut, hash_mut = reconstruct_report("mutants", expected_mut, crlf=False) - self.assertNotIn("\r", text_off) - self.assertNotIn("\r", text_mut) - self.assertEqual(hash_off, LINUX_OFFICIAL_REPORT) - self.assertEqual(hash_mut, LINUX_MUTANT_REPORT) - _, hash_off_crlf = reconstruct_report("official", expected_off, crlf=True) - _, hash_mut_crlf = reconstruct_report("mutants", expected_mut, crlf=True) - self.assertNotEqual(hash_off, hash_off_crlf) - self.assertNotEqual(hash_mut, hash_mut_crlf) + self.assertEqual(set(LINUX_REPORTS), set(validate.VENDORED_XSLT)) + for version, (want_off, want_mut) in LINUX_REPORTS.items(): + text_off, hash_off = reconstruct_report("official", expected_off, crlf=False, version=version) + text_mut, hash_mut = reconstruct_report("mutants", expected_mut, crlf=False, version=version) + self.assertNotIn("\r", text_off) + self.assertNotIn("\r", text_mut) + self.assertEqual(hash_off, want_off, version) + self.assertEqual(hash_mut, want_mut, version) + _, hash_off_crlf = reconstruct_report("official", expected_off, crlf=True, version=version) + _, hash_mut_crlf = reconstruct_report("mutants", expected_mut, crlf=True, version=version) + self.assertNotEqual(hash_off, hash_off_crlf) + self.assertNotEqual(hash_mut, hash_mut_crlf) class SelftestGateScriptTests(unittest.TestCase): diff --git a/tests/test_validate.py b/tests/test_validate.py index 8e72e49..df154e9 100644 --- a/tests/test_validate.py +++ b/tests/test_validate.py @@ -5,9 +5,11 @@ import json import os +import re import sys import tempfile import unittest +import unittest.mock from pathlib import Path ROOT = Path(__file__).resolve().parent.parent @@ -113,17 +115,18 @@ def test_vendored_sha256(self) -> None: self.assertEqual(mapping[syntax]["sha256"], sha, version) self.assertEqual(mapping[syntax]["logical"], logical) - def test_default_is_latest_vendored(self) -> None: - self.assertEqual(validate.DEFAULT_VERSION, "1.3.17") - self.assertIn("1.3.16", validate.VENDORED_XSLT) + def test_default_is_the_release_in_force(self) -> None: + # 1.3.17 is effective from 15/11/26 (Commission registry): opt-in until then. + self.assertEqual(validate.DEFAULT_VERSION, "1.3.16") + self.assertIn("1.3.17", validate.VENDORED_XSLT) - def test_upstream_pin_matches_default(self) -> None: + def test_upstream_pin_is_newest_vendored(self) -> None: pins = json.loads((ROOT / "vendor" / "upstream.json").read_text(encoding="utf-8")) - self.assertEqual(pins["pinned_version"], validate.DEFAULT_VERSION) + self.assertEqual(pins["pinned_version"], "1.3.17") for syntax, key in (("CII", "cii"), ("UBL", "ubl")): self.assertEqual( pins["assets"][key]["xslt_sha256"], - validate.VENDORED_XSLT[validate.DEFAULT_VERSION][syntax][1], + validate.VENDORED_XSLT[pins["pinned_version"]][syntax][1], ) def test_unknown_version(self) -> None: @@ -189,42 +192,183 @@ def flush(self) -> None: self.assertTrue(any("sum" in chunk for chunk in sink.chunks)) -class FailOnIdCheckTests(unittest.TestCase): - def ids(self, version: str) -> set[str]: - return validate.xslt_rule_ids(validate.load_xslt(ROOT, version)) +RULE_TEXT_RE = re.compile( + r'([^<]+).*?(.*?)', + re.DOTALL, +) - def test_renamed_id_is_refused_with_new_name(self) -> None: - fail_on = validate.parse_fail_on("BR-AF-05,BR-02") - with self.assertRaisesRegex(validate.ConfigError, r"BR-AF-05 \(renamed BR-IP-05 in 1\.3\.17\)"): - validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") - def test_removed_id_is_refused(self) -> None: - fail_on = validate.parse_fail_on("CII-SR-471") - with self.assertRaisesRegex(validate.ConfigError, r"CII-SR-471 \(removed in 1\.3\.17\)"): - validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") +def rule_texts(version: str, syntax: str) -> dict[str, str]: + text = (ROOT / validate.VENDORED_XSLT[version][syntax][0]).read_text(encoding="utf-8") + rules: dict[str, str] = {} + for rule, message in RULE_TEXT_RE.findall(text): + message = re.sub(r"\s+", " ", message).strip() + rules.setdefault(rule, message.replace(f"[{rule}]", "", 1)) + return rules - def test_typo_is_refused(self) -> None: - fail_on = validate.parse_fail_on("BR-CO-1O") - with self.assertRaisesRegex(validate.ConfigError, "BR-CO-1O"): - validate.check_fail_on_ids(fail_on, self.ids("1.3.17"), "1.3.17") - def test_known_ids_pass_per_version(self) -> None: - validate.check_fail_on_ids(validate.parse_fail_on("BR-IG-05,BR-IP-10"), self.ids("1.3.17"), "1.3.17") - validate.check_fail_on_ids(validate.parse_fail_on("BR-AF-05,CII-SR-471"), self.ids("1.3.16"), "1.3.16") +class FailOnIdResolveTests(unittest.TestCase): + def ids(self, version: str) -> dict[str, set[str]]: + return validate.xslt_rule_ids(validate.load_xslt(ROOT, version)) - def test_modes_without_ids_are_not_checked(self) -> None: + def resolve(self, raw: str, version: str) -> tuple[dict, list[str]]: + return validate.resolve_fail_on_ids(validate.parse_fail_on(raw), self.ids(version), version) + + def test_renamed_id_warns_and_filters_on_new_name_per_syntax(self) -> None: + fail_on, warnings = self.resolve("BR-AF-05,BR-02", "1.3.17") + self.assertEqual(fail_on["watch"]["CII"], ["BR-IP-05", "BR-02"]) + self.assertEqual(fail_on["watch"]["UBL"], ["BR-IG-05", "BR-02"]) + self.assertEqual(len(warnings), 1) + self.assertIn("BR-AF-05 was renamed in EN16931 1.3.17", warnings[0]) + self.assertIn("BR-IP-05 in CII and BR-IG-05 in UBL", warnings[0]) + + def test_new_id_on_previous_version_warns_and_filters_on_old_name(self) -> None: + fail_on, warnings = self.resolve("BR-IG-05", "1.3.16") + self.assertEqual(fail_on["watch"], {"CII": ["BR-AG-05"], "UBL": ["BR-AF-05"]}) + self.assertEqual(len(warnings), 1) + self.assertIn("BR-IG-05 is a 1.3.17 id; with version 1.3.16", warnings[0]) + + def test_removed_id_warns_and_is_ignored(self) -> None: + fail_on, warnings = self.resolve("CII-SR-471,BR-02", "1.3.17") + self.assertEqual(fail_on["watch"], {"CII": ["BR-02"], "UBL": ["BR-02"]}) + self.assertEqual(len(warnings), 1) + self.assertIn("CII-SR-471 was removed in EN16931 1.3.17", warnings[0]) + + def test_unknown_id_is_refused(self) -> None: + for version in validate.VENDORED_XSLT: + with self.assertRaisesRegex(validate.ConfigError, r"could never fire: BR-CO-1O$"): + self.resolve("BR-02,BR-CO-1O", version) + + def test_known_ids_resolve_silently(self) -> None: + fail_on, warnings = self.resolve("BR-IG-05,BR-IP-10,CII-SR-100", "1.3.17") + self.assertEqual(warnings, []) + self.assertEqual(fail_on["watch"]["CII"], ["BR-IG-05", "BR-IP-10", "CII-SR-100"]) + self.assertEqual(fail_on["watch"]["UBL"], ["BR-IG-05", "BR-IP-10"]) + fail_on, warnings = self.resolve("BR-AF-05,CII-SR-471", "1.3.16") + self.assertEqual(warnings, []) + self.assertEqual(fail_on["watch"]["CII"], ["BR-AF-05", "CII-SR-471"]) + + def test_duplicates_after_translation_are_watched_once(self) -> None: + fail_on, _ = self.resolve("BR-AF-05,BR-IP-05", "1.3.17") + self.assertEqual(fail_on["watch"]["CII"], ["BR-IP-05"]) + self.assertEqual(fail_on["watch"]["UBL"], ["BR-IG-05", "BR-IP-05"]) + + def test_modes_without_ids_are_not_resolved(self) -> None: for raw in ("failed-assert", "never"): - validate.check_fail_on_ids(validate.parse_fail_on(raw), set(), "1.3.17") - - def test_rename_table_matches_vendored_xslt(self) -> None: + fail_on, warnings = validate.resolve_fail_on_ids(validate.parse_fail_on(raw), {}, "1.3.17") + self.assertNotIn("watch", fail_on) + self.assertEqual(warnings, []) + + def test_rename_table_maps_each_rule_to_the_same_rule(self) -> None: + for syntax, renamed in validate.RENAMED_IN_1_3_17.items(): + old, new = rule_texts("1.3.16", syntax), rule_texts("1.3.17", syntax) + self.assertEqual(len(renamed), 20) + for before, after in renamed.items(): + self.assertNotIn(before, new, syntax) + self.assertNotIn(after, old, syntax) + self.assertEqual(old[before], new[after], f"{syntax} {before}->{after}") old, new = self.ids("1.3.16"), self.ids("1.3.17") - for before, after in validate.RENAMED_IN_1_3_17.items(): - self.assertIn(before, old) - self.assertNotIn(before, new) - self.assertIn(after, new) for removed in validate.REMOVED_IN_1_3_17: - self.assertIn(removed, old) - self.assertNotIn(removed, new) + self.assertIn(removed, old["CII"]) + self.assertNotIn(removed, new["CII"]) + + def test_warning_line_shapes(self) -> None: + message = "fail-on: BR-AF-05 was renamed" + self.assertEqual( + validate.warning_line(message, github=True), + "::warning title=fail-on::fail-on: BR-AF-05 was renamed", + ) + self.assertEqual(validate.warning_line(message, github=False), f"warning: {message}") + + +class FailOnRenamedEndToEndTests(unittest.TestCase): + """An IGIC line fires BR-AF-* in 1.3.16, BR-IP-* (CII) / BR-IG-* (UBL) in 1.3.17.""" + + def igic_invoices(self, tmp: Path) -> list[Path]: + cii = (ROOT / "testdata" / "official" / "CII_example1.xml").read_text(encoding="utf-8") + cii = cii.replace("S", "L", 1) + ubl = (ROOT / "testdata" / "official" / "ubl-tc434-creditnote1.xml").read_text(encoding="utf-8") + line = ubl.index("") + start = ubl.index("", line) + len("") + ubl = ubl[:start] + "L" + ubl[ubl.index("", start):] + paths = [tmp / "cii-igic.xml", tmp / "ubl-igic.xml"] + paths[0].write_text(cii, encoding="utf-8") + paths[1].write_text(ubl, encoding="utf-8") + return paths + + def run_files(self, fail_on: str, version: str, *, github: bool = False) -> dict: + with tempfile.TemporaryDirectory() as tmp: + files = self.igic_invoices(Path(tmp)) + return validate.validate_files( + files, + syntax="auto", + fail_on_raw=fail_on, + version=version, + root=ROOT, + cwd=Path(tmp), + emit_annotations=github, + ) + + def ids_by_file(self, result: dict) -> dict[str, list[str]]: + return {row["path"]: row["failed_assert_ids"] for row in result["payload"]["files"]} + + def test_fixture_fires_the_renamed_rules(self) -> None: + old = self.ids_by_file(self.run_files("never", "1.3.16")) + new = self.ids_by_file(self.run_files("never", "1.3.17")) + self.assertIn("BR-AF-01", old["cii-igic.xml"]) + self.assertIn("BR-AF-01", old["ubl-igic.xml"]) + self.assertIn("BR-IP-01", new["cii-igic.xml"]) + self.assertIn("BR-IG-01", new["ubl-igic.xml"]) + + def test_old_id_still_fails_the_job_on_1_3_17(self) -> None: + result = self.run_files("BR-AF-01", "1.3.17", github=True) + self.assertEqual(result["exit_code"], validate.EXIT_FAIL) + self.assertEqual(result["payload"]["verdict"], "fail") + self.assertEqual(result["payload"]["fail_on"], "BR-AF-01") + self.assertEqual(len(result["warnings"]), 1) + self.assertTrue(result["warnings"][0].startswith("::warning title=fail-on::fail-on: BR-AF-01")) + self.assertIn("BR-IP-01 in CII and BR-IG-01 in UBL", result["warnings"][0]) + + def test_filter_follows_the_syntax(self) -> None: + # BR-IP-01 is the IGIC rule in CII but the IPSI rule in UBL: only the CII file trips it. + result = self.run_files("BR-IP-01", "1.3.17") + self.assertEqual(result["exit_code"], validate.EXIT_FAIL) + self.assertEqual(result["warnings"], []) + self.assertTrue(validate.file_triggers_fail( + {"syntax": "CII", "failed_assert_ids": ["BR-IP-01"]}, + validate.resolve_fail_on_ids( + validate.parse_fail_on("BR-AF-01"), + validate.xslt_rule_ids(validate.load_xslt(ROOT, "1.3.17")), + "1.3.17", + )[0], + )) + self.assertFalse(validate.file_triggers_fail( + {"syntax": "UBL", "failed_assert_ids": ["BR-IP-01"]}, + validate.resolve_fail_on_ids( + validate.parse_fail_on("BR-AF-01"), + validate.xslt_rule_ids(validate.load_xslt(ROOT, "1.3.17")), + "1.3.17", + )[0], + )) + + def test_unwatched_rules_do_not_fail(self) -> None: + result = self.run_files("BR-AG-01", "1.3.17") + self.assertEqual(result["exit_code"], validate.EXIT_OK) + self.assertEqual(len(result["warnings"]), 1) + + def test_main_prints_the_warning_and_exits_on_the_verdict(self) -> None: + with tempfile.TemporaryDirectory() as tmp: + files = self.igic_invoices(Path(tmp)) + env = {"GITHUB_ACTIONS": "", "INPUT_VERSION": "", "INPUT_FAIL_ON": ""} + with unittest.mock.patch.dict(os.environ, env), unittest.mock.patch.object( + validate, "emit_line" + ) as emit: + code = validate.main( + ["--files", str(files[0]), "--fail-on", "BR-AF-01", "--version", "1.3.17"] + ) + printed = [call.args[0] for call in emit.call_args_list] + self.assertEqual(code, validate.EXIT_FAIL) + self.assertTrue(any(line.startswith("warning: fail-on: BR-AF-01 was renamed") for line in printed)) if __name__ == "__main__":