{
  "phase_a": {
    "round": 10,
    "completed_utc": "2026-11-03T20:30:52.010718+00:00",
    "phase": "A",
    "mandate": {
      "source": "https://legislatie.just.ro/Public/DetaliiDocument/310662",
      "verified_on": "2026-11-03",
      "B2G": "2022-07-01, statutory scope",
      "B2B": "2024-07-01, established taxable persons and domestic supplies; statutory exceptions apply",
      "B2C": "2025-01-01, statutory scope; not a requirement for every private individual to create an SPV account",
      "2026_deadline": "From 2026-01-01: 5 working days from issue, no later than 5 working days from legal issue deadline; Articles 10(7) and 10^1(2^1).",
      "2026_exceptions": "Consolidated 2026-06-01 text includes special farmer and CNP provisions; no blanket all-businesses claim.",
      "corroboration": "https://static.anaf.ro/static/3/Ploiesti/20260115111226_comunicat%20ajfp%20arges%20-%20modificari%20ro%20e-factura%20site.pdf"
    },
    "schema": {
      "package": "ANAF ro16931-ubl 1.0.9",
      "cius_identifier": "CIUS-RO:1.0.1",
      "archive_url": "https://www.mfinante.gov.ro/static/10/eFactura/ro16931-ubl-1.0.9.zip",
      "archive_sha256": "818e7dd77e429f5dbde7c60b43dddbdf1a9a82a1773c359caa80a36ef89ea7f2",
      "archive_timestamp_note": "Archive includes 2024-06-03 entries; malformed upstream comment 2024-05-78 is not presented as a date.",
      "combined_rules": "The EN16931 rules embedded in ANAF package 1.0.9; not falsely labelled EN16931 release 1.3.16.",
      "syntax": "UBL 2.1 Invoice and CreditNote; CII not supported by standard=ro."
    },
    "licenses": [
      {
        "id": "anaf-composite",
        "url": "https://www.mfinante.gov.ro/static/10/eFactura/ro16931-ubl-1.0.9.zip",
        "quote": "Licensed under European Union Public Licence (EUPL) version 1.2.",
        "verdict": "meeleveren",
        "scope": "EN16931-CIUS_RO-UBL-validation.sch and its six explicit includes as the composite ANAF validation work.",
        "qualification": "National cius-ro/RO16931-rules.sch has no separate licence header. Applying the entrypoint EUPL notice to its explicitly included national pattern is a documented composite-work interpretation, not a separately asserted licence grant. Original files, complete source, EUPL and notices accompany the compiled derivative.",
        "not_inferred_from": "phive-rules Apache licence does not relicense ANAF source."
      },
      {
        "id": "ubl",
        "url": "https://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/maindoc/UBL-Invoice-2.1.xsd",
        "quote": "This document and translations of it may be copied and furnished to others",
        "verdict": "meeleveren",
        "scope": "Existing original UBL 2.1 XSD files and embedded OASIS notices retained; same resolver as rounds 3–9."
      },
      {
        "id": "skeleton",
        "url": "https://github.com/Schematron/schematron/tree/77dcd36c53d12ed786c144ece3b2af7694abdc56/trunk/schematron/code",
        "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy",
        "verdict": "meeleveren",
        "scope": "MIT ISO Schematron compiler; source and embedded notices retained."
      },
      {
        "id": "legal",
        "url": "https://legislatie.just.ro/Public/DetaliiDocument/310662",
        "quote": "Termenul-limită pentru transmiterea facturilor",
        "verdict": "alleen linken",
        "scope": "Original summaries only; no republication of CEN standard text, ANAF brochures or official sample invoices."
      }
    ],
    "artifacts": [
      {
        "path": "source/EN16931-CIUS_RO-UBL-validation.sch",
        "bytes": 2052,
        "sha256": "f0510956fbec21ef501fdfbba51fb533f96fde0227c3280c229e7ad081dccde4",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/UBL/EN16931-UBL-model.sch",
        "bytes": 72712,
        "sha256": "c88b3be63f3272c9723d0e582f7b4407d8042821285be85ad80d4de87a7e1f42",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/UBL/EN16931-UBL-syntax.sch",
        "bytes": 77322,
        "sha256": "2fe1c7a89e4ea0571d861c2b96c5f2033ac1d54d0a078f7a893e3784fcab83a0",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/abstract/EN16931-model.sch",
        "bytes": 53172,
        "sha256": "0f5143f21cef1d4cbd5924d30dd0728bab388a905eef41d8f7135e8a94fa6974",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/abstract/EN16931-syntax.sch",
        "bytes": 121915,
        "sha256": "3b5da7bffc8d6b2a3ebd908ce50bdf0cb44e6057e5bf9bfa7377ef6b1e9bc6cd",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/cius-ro/RO16931-rules.sch",
        "bytes": 55392,
        "sha256": "dc868ca1de1fb875b631941c3769699544fa933439e638ec01f3d80021587fad",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/codelist/EN16931-UBL-codes.sch",
        "bytes": 41451,
        "sha256": "544b3f4b96ea2552ab6e6846dd0b2dada112d74815c6db99067dae96f45e6466",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/preprocessed/EN16931-UBL-validation-preprocessed.sch",
        "bytes": 307650,
        "sha256": "9beb10330e9abf342206e398fd3bd9912e7ca056e89795890b1a68f96426d558",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/preprocessed/ROeFactura-UBL-validation-Invoice_v1.0.5.sch",
        "bytes": 50718,
        "sha256": "3e0bdf71be55e9bd8324f6e229c0660a4c39f9ccf554a3343e89f4d9e9fcd258",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      },
      {
        "path": "source/preprocessed/ROeFactura-UBL-validation-Invoice_v1.0.8.sch",
        "bytes": 52513,
        "sha256": "a1a9ac3b9047b2a7012a68d63164cecf8e4fdb2fbee7888907bfd32c195cd46e",
        "license_ref": "anaf-composite",
        "verdict": "meeleveren"
      }
    ],
    "autocomplete": {
      "requests": 20,
      "nonempty": 7,
      "minimum_interval_seconds": 1.25,
      "interpretation": "Demand signal, not volume or error frequency."
    },
    "decision": "proceed",
    "excluded": [
      "ANAF submission/SPV authentication",
      "Ministerial seal/signature validation",
      "Registry checks/CUI checksum",
      "Tax advice and certification",
      "CII under standard=ro"
    ]
  },
  "compile": {
    "phase": "#ALL",
    "steps": [
      {
        "compiler": "iso_dsdl_include.xsl",
        "output": "included.sch",
        "sha256": "faabddf489b966d9b307c76f8abb767e759aa4dd9692b90b092d2efb9ee01e4e"
      },
      {
        "compiler": "iso_abstract_expand.xsl",
        "output": "expanded.sch",
        "sha256": "8a85987e5bcf18fbe60fc030631e0d0edc86725b199a578390821e3ffc6b1fa6"
      },
      {
        "compiler": "iso_svrl_for_xslt2.xsl",
        "output": "validation.xsl",
        "sha256": "470eddff581e4d717db02de3d57b12a726d9472006bae26e87ba4c34fe898168"
      }
    ]
  },
  "engine": {
    "pairs": [
      {
        "code": "BR-S-08",
        "target": "/*/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6722,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-S-08",
                  "message": "[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).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxSubtotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7022,
            "sha256": "d0c1aae60728241b4420b72caf129a102821e347e55fbd80b5f93d92835ae404"
          }
        }
      },
      {
        "code": "BR-CO-10",
        "target": "/*/cac:LegalMonetaryTotal/cbc:LineExtensionAmount",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7051,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-CO-10",
                  "message": "[BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:LegalMonetaryTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-CO-13",
                  "message": "[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).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:LegalMonetaryTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7149,
            "sha256": "9ee97861fb1a6fc2a20abef68aa956f08b0d7bdaffe5423f2327601e6c483482"
          }
        }
      },
      {
        "code": "BR-CO-04",
        "target": "/*/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7216,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-S-01",
                  "message": "[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\".",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-S-08",
                  "message": "[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).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxSubtotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-CO-04",
                  "message": "[BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7203,
            "sha256": "ac20cb585c3116c896b87b2493fda0c38e05719ac3b03b0032a73619b8fa885a"
          }
        }
      },
      {
        "code": "BR-25",
        "target": "/*/cac:InvoiceLine/cac:Item/cbc:Name",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7436,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-25",
                  "message": "[BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6262,
            "sha256": "eab4f22681acd1c3d165aaee472f399f7b6dd6488593a89a93ac56b27fd86b7d"
          }
        }
      },
      {
        "code": "BR-21",
        "target": "/*/cac:InvoiceLine/cbc:ID",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6812,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-21",
                  "message": "[BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6259,
            "sha256": "a863ebc23df8885fef9f0232cc3d20f863b84c893e2f6ba3ddaf49ae1641e5d4"
          }
        }
      },
      {
        "code": "BR-27",
        "target": "/*/cac:InvoiceLine/cac:Price/cbc:PriceAmount",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7202,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-27",
                  "message": "[BR-27]-Preţul net al articolului (BT-146) trebuie să NU fie negativ.\n\t\t\t#The Item net price (BT-146) shall NOT be negative. (cbc:PriceAmount = '-1')",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:Price[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:PriceAmount[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6998,
            "sha256": "a959d8530ecc728d18466c36b56ad39d21d9de57fb92b01471a84cf1b5e15383"
          }
        }
      },
      {
        "code": "BR-S-05",
        "target": "/*/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6115,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-S-08",
                  "message": "[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).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxSubtotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-S-05",
                  "message": "[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.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:Item[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:ClassifiedTaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6191,
            "sha256": "3ad62b7bbe9e6bce3084fe0a4990f9e0a6edb04cf23eb17f12bfc100575b357f"
          }
        }
      },
      {
        "code": "BR-CO-15",
        "target": "/*/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.695,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-CO-15",
                  "message": "[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-CO-16",
                  "message": "[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:LegalMonetaryTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6903,
            "sha256": "cd17825149271a0ff4f4ee54456dd0b62f326e25b4f91a70ad0c0115bd68ff3b"
          }
        }
      },
      {
        "code": "BR-22",
        "target": "/*/cac:InvoiceLine/cbc:InvoicedQuantity",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6474,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-22",
                  "message": "[BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-23",
                  "message": "[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7138,
            "sha256": "17bf57f88d181cb25ff3dcdf3471e1c591a2d4e3a894f9605826450d89936942"
          }
        }
      },
      {
        "code": "BR-CO-17",
        "target": "/*/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6946,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-CO-14",
                  "message": "[BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-CO-17",
                  "message": "[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.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxSubtotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-S-09",
                  "message": "[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).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:TaxTotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxSubtotal[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:TaxCategory[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6834,
            "sha256": "a7891ef73580d1a7b0bb53f9b1f7b3423b4cec6e1600872e888fca681dddd374"
          }
        }
      },
      {
        "code": "BR-RO-001",
        "target": "/*/cbc:CustomizationID",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6799,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-001",
                  "message": "[BR-RO-001]-Identificatorul specificatie (BT-24) trebuie sa corespunda sintactic cu valoarea precizata in Specificatii tehnice și de utilizare a elementelor de baza ale facturii electronice - RO_CIUS - și a regulilor operationale specifice aplicabile la nivel national.\n\t\t\t\t\t\t\t#The specification identifier (BT-24) must syntactically correspond to the value specified in the Technical and Usage Specifications of the basic elements of the electronic invoice - RO_CIUS - and the specific operational rules applicable at national level(urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6686,
            "sha256": "d85c49694d22024d9a4e92cd6b480f04359b71cc3bc5273ec37950d60c1a371e"
          }
        }
      },
      {
        "code": "BR-RO-020_1",
        "target": "/*/cbc:InvoiceTypeCode",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6221,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-CL-01",
                  "message": "[BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceTypeCode[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-RO-020_1",
                  "message": "[BR-RO-020]-Codul tipului facturii (BT-3) trebuie sa fie unul dintre urmatoarele coduri din lista de coduri UNTDID 1001: 380 (Factura), 389 (Autofactura), 384 (Factura corectata), 381 (Nota de creditare), 751 (Factura — informatii în scopuri contabile).\n\t\t\t#The invoice type code (BT-3) must be one of the following codes in the UNTDID 1001 code list: 380 (Invoice), 389 (Self-invoice), 384 (Corrected invoice), 381 (Credit note), 751 (Invoice - information for accounting purposes).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:InvoiceTypeCode[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.648,
            "sha256": "cd13081f8b624175fd545c8e712dd3b737c5bb05d4fe9285e5ed4e482072bdcf"
          }
        }
      },
      {
        "code": "BR-RO-100",
        "target": "/*/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6439,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-100",
                  "message": "[BR-RO-100]-Daca Codul tarii Vanzatorului (BT-40) este RO si Subdiviziunea tarii Vanzatorului (BT-39) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Vanzatorului (BT-37) trebuie sa fie codificata folosind lista de coduri SECTOR-RO.\n\t\t\t\t#If the Seller's country Code (BT-40) is RO and the Seller's country subdivision (BT-39) is RO-B (corresponding to Bucharest Municipality), then the Seller city (BT-37) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.615,
            "sha256": "32e52141504c6853d908411297ab614b92a00faa87be7d0b5db523997baa9d69"
          }
        }
      },
      {
        "code": "BR-RO-101",
        "target": "/*/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6508,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-101",
                  "message": "[BR-RO-100]-Daca Codul tarii Cumparatorului (BT-55) este RO si Subdiviziunea tarii Cumparatorului (BT-54) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Cumparatorului (BT-52) trebuie sa fie codificata folosind lista de coduri SECTOR-RO.\n\t\t\t\t#If the Buyer's country Code (BT-55) is RO and the Buyer's country subdivision (BT-54) is RO-B (corresponding to Bucharest Municipality), then the Buyer city (BT-52) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.5826,
            "sha256": "2782cb8ab810bf088766fec62e7670ed88335aaa8a706ff1e2987bc7de28f470"
          }
        }
      },
      {
        "code": "BR-RO-110",
        "target": "/*/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.658,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-110",
                  "message": "[BR-RO-110]-Daca Codul tarii Vanzatorului (BT-40) este RO, atunci Subdiviziunea tarii Vanzatorului (BT-39) trebuie sa fie codificata folosind lista de coduri ISO 3166-2:RO (ex. \"RO-B\" pentru Municipiul Bucuresti, \"RO-AB\" pentru judetul Alba...).\n\t\t\t\t#If the Seller's country Code (BT-40) is RO, then the Seller's country subdivision (BT-39) must be coded using the ISO 3166-2: RO code list (ex. \"RO-B\" for Bucharest, \"RO-AB\" for Alba County...).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7111,
            "sha256": "35f3a1c103256dbfc0638902474e18b54263652e70412e074a11f41a9443c8b7"
          }
        }
      },
      {
        "code": "BR-RO-111",
        "target": "/*/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7121,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-111",
                  "message": "[BR-RO-110]-Daca Codul tarii Cumparatorului (BT-55) este RO, atunci Subdiviziunea tarii Cumparatorului (BT-54) trebuie sa fie codificata folosind lista de coduri ISO 3166-2:RO (ex. \"RO-B\" pentru Municipiul Bucuresti, \"RO-AB\" pentru judetul Alba...).\n\t\t\t\t#If the Buyer's country Code (BT-55) is RO, then the Buyer's country subdivision (BT-54) must be coded using the ISO 3166-2: RO code list (ex. \"RO-B\" for Bucharest, \"RO-AB\" for Alba County...).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6848,
            "sha256": "db083f175fbd07ba45f5bbcfb0a694795eebb3759615687c408b03c5bea44739"
          }
        }
      },
      {
        "code": "BR-RO-081",
        "target": "/*/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7571,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-081",
                  "message": "[BR-RO-080]-Adresa Vanzatorului - Linia 1 (BT-35) trebuie furnizata.\n\t\t\t\t\t\t\t#Seller address line 1(BT-35) must be provided.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.9038,
            "sha256": "659d9e268b159ee51c056ab672a8426512998e06f653c584c25f5a3cd6605c32"
          }
        }
      },
      {
        "code": "BR-RO-082",
        "target": "/*/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 1.0971,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-082",
                  "message": "[BR-RO-080]-Adresa Cumparatorului - Linia 1 (BT-50) trebuie furnizata.\n\t\t\t\t\t\t\t#Buyer address line 1(BT-50) must be provided.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.793,
            "sha256": "4f27481e87dcdcb73e626d6a3c7d686918cc435caffbe4ec56e8d98051762b97"
          }
        }
      },
      {
        "code": "BR-RO-091",
        "target": "/*/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7008,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-091",
                  "message": "[BR-RO-090]-Localitatea Vanzatorului (BT-37) trebuie furnizata.\n\t\t\t\t\t\t\t#Seller city(BT-37) must be provided.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-RO-100",
                  "message": "[BR-RO-100]-Daca Codul tarii Vanzatorului (BT-40) este RO si Subdiviziunea tarii Vanzatorului (BT-39) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Vanzatorului (BT-37) trebuie sa fie codificata folosind lista de coduri SECTOR-RO.\n\t\t\t\t#If the Seller's country Code (BT-40) is RO and the Seller's country subdivision (BT-39) is RO-B (corresponding to Bucharest Municipality), then the Seller city (BT-37) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7447,
            "sha256": "ca3cc51737b47015e0355fa4b5d0072282aeac037b032fe50c1abd15ec8a3b99"
          }
        }
      },
      {
        "code": "BR-RO-092",
        "target": "/*/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7001,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-092",
                  "message": "[BR-RO-090]-Localitatea Cumparatorului (BT-52) trebuie furnizata.\n\t\t\t\t\t\t\t#Buyer city(BT-37) must be provided.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-RO-101",
                  "message": "[BR-RO-100]-Daca Codul tarii Cumparatorului (BT-55) este RO si Subdiviziunea tarii Cumparatorului (BT-54) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Cumparatorului (BT-52) trebuie sa fie codificata folosind lista de coduri SECTOR-RO.\n\t\t\t\t#If the Buyer's country Code (BT-55) is RO and the Buyer's country subdivision (BT-54) is RO-B (corresponding to Bucharest Municipality), then the Buyer city (BT-52) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "successful-report"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.7289,
            "sha256": "a83219d4854eb7b120f215545d587443e26c1963ba6b2041019a697c384dd58e"
          }
        }
      },
      {
        "code": "BR-RO-L155",
        "target": "/*/cbc:ID",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6782,
            "sha256": "29b739825105af0ac98a22b008298b6cc0f190f634a83861099f4274161b04c1"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-L155",
                  "message": "[BR-RO-L200]-Numarul maxim permis de caractere pentru Numarul facturii (BT-1) este 200.\n\t\t\t\t\t\t\t#The allowed maximum number of characters for the Invoice number (BT-1) is 200.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                },
                {
                  "code": "BR-RO-010",
                  "message": "[BR-RO-010]-Numarul facturii (BT-1) trebuie sa includa cel putin un caracter numeric (0—9).\t\t\n\t\t\t\t\t\t\t#Invoice number (BT-1) must include at least one numeric character (0-9).",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6724,
            "sha256": "27e6008b50064f3218cfa295c58fc99448d9991da1cf7006b09612dd3d20d837"
          }
        }
      },
      {
        "code": "BR-RO-A020",
        "target": "/*/cbc:Note",
        "variants": {
          "good": {
            "result": {
              "ok": true,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6959,
            "sha256": "1b5cde6376ffaa911e5c5303dc4a171c754908ddc57233349288021ab59bde81"
          },
          "bad": {
            "result": {
              "ok": false,
              "stage": "Business rules",
              "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
              "syntax": "UBL",
              "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
              "errors": [
                {
                  "code": "BR-RO-A020",
                  "message": "[BR-RO-A020]-O factura trebuie sa contina maximum 20 de aparitii ale grupului Comentariu in factura (BG-1).\n\t\t\t\t\t\t\t#The allowed maximum number of occurences of Invoice note (BG-1) is 20.",
                  "path": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]",
                  "svrl_kind": "failed-assert"
                }
              ],
              "warnings": [],
              "truncated": false
            },
            "seconds": 0.6403,
            "sha256": "92a3e12d45666c2c1411d370aa50ed3a7f71b42d20f2b285ba12918891980798"
          }
        }
      }
    ],
    "security": [
      {
        "case": "consent",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0588
      },
      {
        "case": "unknown standard",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0557
      },
      {
        "case": "DTD",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0577
      },
      {
        "case": "remote schema key",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0621
      },
      {
        "case": "local schema key",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0611
      },
      {
        "case": "oversize",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.1387
      },
      {
        "case": "malformed",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0579
      },
      {
        "case": "CII root",
        "result": {
          "ok": false,
          "stage": "Input or resource limit",
          "errors": [
            {
              "message": "The invoice could not be checked. Check XML, fixed standard and input/resource limits."
            }
          ],
          "warnings": []
        },
        "seconds": 0.0569
      }
    ],
    "syntax": [
      {
        "name": "valid",
        "result": {
          "ok": true,
          "stage": "Business rules",
          "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
          "syntax": "UBL",
          "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
          "errors": [],
          "warnings": [],
          "truncated": false
        },
        "seconds": 0.7495
      },
      {
        "name": "creditnote",
        "result": {
          "ok": true,
          "stage": "Business rules",
          "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
          "syntax": "UBL",
          "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
          "errors": [],
          "warnings": [],
          "truncated": false
        },
        "seconds": 0.626
      }
    ],
    "scope": [
      {
        "case": "CUI checksum not verified",
        "result": {
          "ok": true,
          "stage": "Business rules",
          "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
          "syntax": "UBL",
          "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
          "errors": [],
          "warnings": [],
          "truncated": false
        },
        "seconds": 0.6427
      },
      {
        "case": "no remote schema resolution",
        "result": {
          "ok": true,
          "stage": "Business rules",
          "rules": "RO e-Factura: UBL 2.1 + ANAF EN16931/CIUS-RO 1.0.9 (CIUS-RO:1.0.1)",
          "syntax": "UBL",
          "engine": "SaxonC-HE 13.1 / saxonche 13.1.1",
          "errors": [],
          "warnings": [],
          "truncated": false
        },
        "seconds": 0.6507
      }
    ]
  },
  "predicates": {
    "BR-S-08": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
        "test": "every $rate in xs:decimal(cbc:Percent) satisfies (((exists(//cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID) = 'S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]) or exists(//cac:AllowanceCharge[cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate])) and ((../xs:decimal(cbc:TaxableAmount - 1) < (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) > (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))))) or (exists(//cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID) = 'S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]) or exists(//cac:AllowanceCharge[cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate])) and ((../xs:decimal(cbc:TaxableAmount - 1) < (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) > (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='S'][cac:Item/cac:ClassifiedTaxCategory/xs:decimal(cbc:Percent) =$rate]/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='S'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount))))))",
        "message": "[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-CO-10": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:LegalMonetaryTotal",
        "test": "(xs:decimal(cbc:LineExtensionAmount) = xs:decimal(round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))",
        "message": "[BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131)."
      }
    ],
    "BR-CO-04": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:InvoiceLine | cac:CreditNoteLine",
        "test": "(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID)",
        "message": "[BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151)."
      }
    ],
    "BR-25": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:InvoiceLine | cac:CreditNoteLine",
        "test": "(cac:Item/cbc:Name) != ''",
        "message": "[BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153)."
      }
    ],
    "BR-21": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:InvoiceLine | cac:CreditNoteLine",
        "test": "(cbc:ID) != ''",
        "message": "[BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126)."
      }
    ],
    "BR-27": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cbc:PriceAmount",
        "test": "(.) >=0",
        "message": "[BR-27]-Preţul net al articolului (BT-146) trebuie să NU fie negativ. #The Item net price (BT-146) shall NOT be negative. ( = ' ')"
      }
    ],
    "BR-S-05": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
        "test": "(cbc:Percent) > 0",
        "message": "[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-CO-15": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "every $Currency in cbc:DocumentCurrencyCode satisfies (count(cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) eq 1) and (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxInclusiveAmount) = round( (cac:LegalMonetaryTotal/xs:decimal(cbc:TaxExclusiveAmount) + cac:TaxTotal/xs:decimal(cbc:TaxAmount[@currencyID=$Currency])) * 10 * 10) div 100)",
        "message": "[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110)."
      }
    ],
    "BR-22": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:InvoiceLine | cac:CreditNoteLine",
        "test": "exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)",
        "message": "[BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129)."
      }
    ],
    "BR-CO-17": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cac:TaxTotal/cac:TaxSubtotal",
        "test": "(round(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent)) = 0 and (round(xs:decimal(cbc:TaxAmount)) = 0)) or (round(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent)) != 0 and ((abs(xs:decimal(cbc:TaxAmount)) - 1 < round(abs(xs:decimal(cbc:TaxableAmount)) * (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent) div 100) * 10 * 10) div 100 ) and (abs(xs:decimal(cbc:TaxAmount)) + 1 > round(abs(xs:decimal(cbc:TaxableAmount)) * (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent) div 100) * 10 * 10) div 100 )))  or (not(exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/xs:decimal(cbc:Percent))) and (round(xs:decimal(cbc:TaxAmount)) = 0))",
        "message": "[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-RO-001": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "cbc:CustomizationID = $RO-CIUS-ID",
        "message": "[BR-RO-001]-Identificatorul specificatie (BT-24) trebuie sa corespunda sintactic cu valoarea precizata in Specificatii tehnice și de utilizare a elementelor de baza ale facturii electronice - RO_CIUS - și a regulilor operationale specifice aplicabile la nivel national. #The specification identifier (BT-24) must syntactically correspond to the value specified in the Technical and Usage Specifications of the basic elements of the electronic invoice - RO_CIUS - and the specific operational rules applicable at national level( )."
      }
    ],
    "BR-RO-020_1": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "cbc:InvoiceTypeCode",
        "test": "(. and ((not(contains(normalize-space(.), ' ')) and contains(' 380 384 389 751 ', concat(' ', normalize-space(.), ' ')))))",
        "message": "[BR-RO-020]-Codul tipului facturii (BT-3) trebuie sa fie unul dintre urmatoarele coduri din lista de coduri UNTDID 1001: 380 (Factura), 389 (Autofactura), 384 (Factura corectata), 381 (Nota de creditare), 751 (Factura — informatii în scopuri contabile). #The invoice type code (BT-3) must be one of the following codes in the UNTDID 1001 code list: 380 (Invoice), 389 (Self-invoice), 384 (Corrected invoice), 381 (Credit note), 751 (Invoice - information for accounting purposes)."
      }
    ],
    "BR-RO-100": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "report",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = 'RO-B' and not(normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName) = $SECTOR-RO-CODES)",
        "message": "[BR-RO-100]-Daca Codul tarii Vanzatorului (BT-40) este RO si Subdiviziunea tarii Vanzatorului (BT-39) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Vanzatorului (BT-37) trebuie sa fie codificata folosind lista de coduri SECTOR-RO. #If the Seller's country Code (BT-40) is RO and the Seller's country subdivision (BT-39) is RO-B (corresponding to Bucharest Municipality), then the Seller city (BT-37) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6)."
      }
    ],
    "BR-RO-101": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "report",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = 'RO-B' and not(normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName) = $SECTOR-RO-CODES)",
        "message": "[BR-RO-100]-Daca Codul tarii Cumparatorului (BT-55) este RO si Subdiviziunea tarii Cumparatorului (BT-54) este RO-B (corespunzator Municipiului Bucuresti), atunci Localitatea Cumparatorului (BT-52) trebuie sa fie codificata folosind lista de coduri SECTOR-RO. #If the Buyer's country Code (BT-55) is RO and the Buyer's country subdivision (BT-54) is RO-B (corresponding to Bucharest Municipality), then the Buyer city (BT-52) must be coded using the code list SECTOR-RO(SECTOR1, SECTOR2, SECTOR3, SECTOR4, SECTOR5, SECTOR6)."
      }
    ],
    "BR-RO-110": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "report",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and not(normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = $ISO-3166-RO-CODES)",
        "message": "[BR-RO-110]-Daca Codul tarii Vanzatorului (BT-40) este RO, atunci Subdiviziunea tarii Vanzatorului (BT-39) trebuie sa fie codificata folosind lista de coduri ISO 3166-2:RO (ex. \"RO-B\" pentru Municipiul Bucuresti, \"RO-AB\" pentru judetul Alba...). #If the Seller's country Code (BT-40) is RO, then the Seller's country subdivision (BT-39) must be coded using the ISO 3166-2: RO code list (ex. \"RO-B\" for Bucharest, \"RO-AB\" for Alba County...)."
      }
    ],
    "BR-RO-111": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "report",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) = 'RO' and not(normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity) = $ISO-3166-RO-CODES)",
        "message": "[BR-RO-110]-Daca Codul tarii Cumparatorului (BT-55) este RO, atunci Subdiviziunea tarii Cumparatorului (BT-54) trebuie sa fie codificata folosind lista de coduri ISO 3166-2:RO (ex. \"RO-B\" pentru Municipiul Bucuresti, \"RO-AB\" pentru judetul Alba...). #If the Buyer's country Code (BT-55) is RO, then the Buyer's country subdivision (BT-54) must be coded using the ISO 3166-2: RO code list (ex. \"RO-B\" for Bucharest, \"RO-AB\" for Alba County...)."
      }
    ],
    "BR-RO-081": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName[boolean(normalize-space(.))]",
        "message": "[BR-RO-080]-Adresa Vanzatorului - Linia 1 (BT-35) trebuie furnizata. #Seller address line 1(BT-35) must be provided."
      }
    ],
    "BR-RO-082": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName[boolean(normalize-space(.))]",
        "message": "[BR-RO-080]-Adresa Cumparatorului - Linia 1 (BT-50) trebuie furnizata. #Buyer address line 1(BT-50) must be provided."
      }
    ],
    "BR-RO-091": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName[boolean(normalize-space(.))]",
        "message": "[BR-RO-090]-Localitatea Vanzatorului (BT-37) trebuie furnizata. #Seller city(BT-37) must be provided."
      }
    ],
    "BR-RO-092": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName[boolean(normalize-space(.))]",
        "message": "[BR-RO-090]-Localitatea Cumparatorului (BT-52) trebuie furnizata. #Buyer city(BT-37) must be provided."
      }
    ],
    "BR-RO-L155": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "string-length(normalize-space(cbc:ID)) <= 200",
        "message": "[BR-RO-L200]-Numarul maxim permis de caractere pentru Numarul facturii (BT-1) este 200. #The allowed maximum number of characters for the Invoice number (BT-1) is 200."
      }
    ],
    "BR-RO-A020": [
      {
        "file": "expanded.sch (generated from original ANAF includes)",
        "kind": "assert",
        "context": "/ubl:Invoice | /cn:CreditNote",
        "test": "count(cbc:Note) <= 20",
        "message": "[BR-RO-A020]-O factura trebuie sa contina maximum 20 de aparitii ale grupului Comentariu in factura (BG-1). #The allowed maximum number of occurences of Invoice note (BG-1) is 20."
      }
    ]
  }
}
