[
  {
    "id": "BR-65",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier.",
    "context": "//ram:DesignatedProductClassification",
    "test": "normalize-space(ram:ClassCode/@listID) != '' or not (ram:ClassCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-52",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122).",
    "context": "//ram:AdditionalReferencedDocument",
    "test": "normalize-space(ram:IssuerAssignedID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-51",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:ApplicableTradeSettlementFinancialCard",
    "test": "string-length(normalize-space(ram:ID)) \u003c= 10",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-50",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-50]-A Payment account identifier (BT-84) shall be present if Credit transfer (BG-16) information is provided in the Invoice.",
    "context": "//ram:SpecifiedTradeSettlementPaymentMeans[ram:TypeCode='30' or ram:TypeCode='58']/ram:PayeePartyCreditorFinancialAccount",
    "test": "normalize-space(ram:IBANID) != '' or normalize-space(ram:ProprietaryID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-61",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeSettlementPaymentMeans[ram:TypeCode='30' or ram:TypeCode='58']/ram:PayeePartyCreditorFinancialAccount",
    "test": "(ram:IBANID) or (ram:ProprietaryID)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-57",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-57]-Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "(ram:ShipToTradeParty/ram:PostalTradeAddress and normalize-space(ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID) != '') or not (ram:ShipToTradeParty/ram:PostalTradeAddress)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-31",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-31]-Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "(../ram:ActualAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-32",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-32]-Each Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "(../ram:CategoryTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-33",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-05]-Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-21",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-01]-The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "string-length(substring-after(../ram:ActualAmount[1],'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-02]-The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='false']",
    "test": "string-length(substring-after(../ram:BasisAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-36",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-36]-Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "(../ram:ActualAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-37",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-37]-Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "(../ram:CategoryTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-38",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-06]-Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-22",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-05]-The allowed maximum number of decimals for the Document level charge amount (BT-99) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "string-length(substring-after(../ram:ActualAmount[1],'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-06]-The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator='true']",
    "test": "string-length(substring-after(../ram:BasisAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-12",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-12]-An Invoice shall have the Sum of Invoice line net amount (BT-106).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(ram:LineTotalAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-13",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-13]-An Invoice shall have the Invoice total amount without VAT (BT-109).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(ram:TaxBasisTotalAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-14",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-14]-An Invoice shall have the Invoice total amount with VAT (BT-112).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(ram:GrandTotalAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-15",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-15]-An Invoice shall have the Amount due for payment (BT-115).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(ram:DuePayableAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-53",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) or (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode and (ram:TaxTotalAmount/@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) and not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "xs:decimal(ram:LineTotalAmount) = round(sum(../../ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount/xs:decimal(.)) * xs:decimal(100)) div xs:decimal(100)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-11]-Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()])and not (ram:AllowanceTotalAmount)) or ram:AllowanceTotalAmount = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:ActualAmount[1]/xs:decimal(.))* 10 * 10 ) div 100)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-12",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()])and not (ram:ChargeTotalAmount)) or ram:ChargeTotalAmount = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:ActualAmount[1]/xs:decimal(.))* 10 * 10 ) div 100)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-13",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(xs:decimal(ram:TaxBasisTotalAmount[1]) = round((xs:decimal(ram:LineTotalAmount[1]) - xs:decimal(ram:AllowanceTotalAmount[1]) + xs:decimal(ram:ChargeTotalAmount[1])) * 10 * 10) div 100)     or ((xs:decimal(ram:TaxBasisTotalAmount[1]) = round((xs:decimal(ram:LineTotalAmount[1]) - xs:decimal(ram:AllowanceTotalAmount[1])) * 10 * 10) div 100) and not(ram:ChargeTotalAmount))     or ((xs:decimal(ram:TaxBasisTotalAmount[1]) = round((xs:decimal(ram:LineTotalAmount[1]) + xs:decimal(ram:ChargeTotalAmount[1])) * 10 * 10) div 100) and not(ram:AllowanceTotalAmount))     or ((xs:decimal(ram:TaxBasisTotalAmount[1]) = round((xs:decimal(ram:LineTotalAmount[1])) * 10 * 10) div 100) and not(ram:ChargeTotalAmount) and not(ram:AllowanceTotalAmount))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-16",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "(xs:decimal(ram:DuePayableAmount[1]) = xs:decimal(ram:GrandTotalAmount[1]) - xs:decimal(ram:TotalPrepaidAmount[1]) + xs:decimal(ram:RoundingAmount[1]))     or ((xs:decimal(ram:DuePayableAmount[1]) = xs:decimal(ram:GrandTotalAmount[1]) + xs:decimal(ram:RoundingAmount[1])) and not(ram:TotalPrepaidAmount))     or ((xs:decimal(ram:DuePayableAmount[1]) = xs:decimal(ram:GrandTotalAmount[1]) - xs:decimal(ram:TotalPrepaidAmount[1])) and not(ram:RoundingAmount))     or ((xs:decimal(ram:DuePayableAmount[1]) = xs:decimal(ram:GrandTotalAmount[1])) and not(ram:TotalPrepaidAmount) and not(ram:RoundingAmount))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-09]-The allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:LineTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-10]-The allowed maximum number of decimals for the Sum of allowanced on document level (BT-107) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:AllowanceTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-11]-The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:ChargeTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-12",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-12]-The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:TaxBasisTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-14",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-14]-The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:GrandTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-13",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-13]-The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TaxTotalAmount) or ram:TaxTotalAmount[(@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode and xs:decimal(.) = round(xs:decimal(.) * 100) div 100) or not(@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode)]",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-15",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-15]-The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TaxTotalAmount) or ram:TaxTotalAmount[(@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode and xs:decimal(.) = round(xs:decimal(.) * 100) div 100) or not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode)]",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-16",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-16]-The allowed maximum number of decimals for the Paid amount (BT-113) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:TotalPrepaidAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-17",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-17]-The allowed maximum number of decimals for the Rounding amount (BT-114) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:RoundingAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-18",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-18]-The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "string-length(substring-after(ram:DuePayableAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-01]-An Invoice shall have a Specification identifier (BT-24).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-02]-An Invoice shall have an Invoice number (BT-1).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:ExchangedDocument/ram:ID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-03]-An Invoice shall have an Invoice issue date (BT-2).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString[@format='102']) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-04]-An Invoice shall have an Invoice type code (BT-3).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:ExchangedDocument/ram:TypeCode) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-05]-An Invoice shall have an Invoice currency code (BT-5).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-06]-An Invoice shall contain the Seller name (BT-27).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:Name) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-07]-An Invoice shall contain the Buyer name (BT-44).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:Name) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-08]-An Invoice shall contain the Seller postal address (BG-5).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-10]-An Invoice shall contain the Buyer postal address (BG-8).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-11]-The Buyer postal address shall contain a Buyer country code (BT-55).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-16",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-16]-An Invoice shall have at least one Invoice line (BG-25).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "//ram:IncludedSupplyChainTradeLineItem",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-62",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-62]-The Seller electronic address (BT-34) shall have a Scheme identifier.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:URIUniversalCommunication[1]/ram:URIID/@schemeID) != '' or not (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:URIUniversalCommunication)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-63",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication[1]/ram:URIID/@schemeID) != '' or not (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-15",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "every $Currency in /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode     satisfies     (     (     count(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID = $Currency]) = 1     and     xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount)[1])     =     round(     (     xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount)[1])     +     xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID = $Currency])[1])     ) * 100     ) div 100     )     or     (     xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount)[1])     =     xs:decimal((/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount)[1])     )     )",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "((count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='S']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='S'])) \u003e=2 or not (//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='S'])) and      ((count(//ram:CategoryTradeTax[ram:CategoryCode='S']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='S'])) \u003e=2 or not (//ram:CategoryTradeTax[ram:CategoryCode='S']))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='Z'])=0 and count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='Z'])=0 and count(//ram:CategoryTradeTax[ram:CategoryCode='Z'])=0) or ( count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='Z'])=1 and (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='Z']) or exists(//ram:CategoryTradeTax[ram:CategoryCode='Z'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='E'])=0 and count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='E'])=0 and count(//ram:CategoryTradeTax[ram:CategoryCode='E'])=0) or ( count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='E'])=1 and (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='E']) or exists(//ram:CategoryTradeTax[ram:CategoryCode='E'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='AE'])=0 and count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='AE'])=0 and count(//ram:CategoryTradeTax[ram:CategoryCode='AE'])=0) or ( count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='AE'])=1 and (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='AE']) or exists(//ram:CategoryTradeTax[ram:CategoryCode='AE'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='K'])=0 and count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='K'])=0 and count(//ram:CategoryTradeTax[ram:CategoryCode='K'])=0) or ( count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='K'])=1 and (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='K']) or exists(//ram:CategoryTradeTax[ram:CategoryCode='K'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='G'])=0 and count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='G'])=0 and count(//ram:CategoryTradeTax[ram:CategoryCode='G'])=0) or ( count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='G'])=1 and (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='G']) or exists(//ram:CategoryTradeTax[ram:CategoryCode='G'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "not(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='O']) or (      count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='O'])=1 and      (exists(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='O']) or     exists(//ram:CategoryTradeTax[ram:CategoryCode='O'])))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "((count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) \u003e=2 or not (//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) and      ((count(//ram:CategoryTradeTax[ram:CategoryCode='L']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) \u003e=2 or not (//ram:CategoryTradeTax[ram:CategoryCode='L']))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "((count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='M']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='M'])) \u003e=2 or not (//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='M'])) and      ((count(//ram:CategoryTradeTax[ram:CategoryCode='M']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='M'])) \u003e=2 or not (//ram:CategoryTradeTax[ram:CategoryCode='M']))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-B-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(not(//ram:CountryID != 'IT') and //ram:CategoryCode ='B') or (not(//ram:CategoryCode ='B'))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-B-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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”.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "(//ram:CategoryCode ='B' and (not(//ram:CategoryCode ='S'))) or (not(//ram:CategoryCode ='B'))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-21",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "normalize-space(ram:AssociatedDocumentLineDocument/ram:LineID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-22",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeDelivery/ram:BilledQuantity)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-23",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-24",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-24]-Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-25",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "normalize-space(ram:SpecifiedTradeProduct/ram:Name) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-26",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-26]-Each Invoice line (BG-25) shall contain the Item net price (BT-146).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-27",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-27]-The Item net price (BT-146) shall NOT be negative.",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount) \u003e= 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-28",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-28]-The Item gross price (BT-148) shall NOT be negative.",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:ChargeAmount \u003e= 0) or not(ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:ChargeAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-64",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-64]-The Item standard identifier (BT-157) shall have a Scheme identifier.",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "normalize-space(ram:SpecifiedTradeProduct/ram:GlobalID/@schemeID) != '' or not (ram:SpecifiedTradeProduct/ram:GlobalID)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "(ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-18",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-18]-An Invoice shall at least have one VAT breakdown group (BG-23).",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-23",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.",
    "context": "//ram:IncludedSupplyChainTradeLineItem",
    "test": "string-length(substring-after(ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-41",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-41]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "(../ram:ActualAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-42",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-23",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-24",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-24]-The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "string-length(substring-after(../ram:ActualAmount[1],'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-25",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-25]-The allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'false']",
    "test": "string-length(substring-after(../ram:BasisAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-43",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-43]-Each Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141).",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "(../ram:ActualAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-44",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-24",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "(../ram:Reason) or (../ram:ReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-27",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-27]-The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "string-length(substring-after(../ram:ActualAmount[1],'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-28",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-28]-The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator = 'true']",
    "test": "string-length(substring-after(../ram:BasisAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-30",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod",
    "test": "(ram:EndDateTime/udt:DateTimeString[@format = '102']) \u003e= (ram:StartDateTime/udt:DateTimeString[@format = '102']) or not (ram:EndDateTime) or not (ram:StartDateTime)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-20",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod",
    "test": "(ram:StartDateTime) or (ram:EndDateTime)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-29",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod",
    "test": "(ram:EndDateTime/udt:DateTimeString[@format = '102']) \u003e= (ram:StartDateTime/udt:DateTimeString[@format = '102']) or not (ram:EndDateTime) or not (ram:StartDateTime)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-19",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod",
    "test": "(ram:StartDateTime) or (ram:EndDateTime)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-54",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-54]-Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161).",
    "context": "//ram:ApplicableProductCharacteristic",
    "test": "(ram:Description) and (ram:Value)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-17",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:PayeeTradeParty",
    "test": "(ram:Name) and (not(ram:Name = ../../ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:Name) and not(ram:ID = ../../ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:ID) and not(ram:SpecifiedLegalOrganization/ram:ID = ../../ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-49",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-49]-A Payment instruction (BG-16) shall specify the Payment means type code (BT-81).",
    "context": "//ram:SpecifiedTradeSettlementPaymentMeans",
    "test": "(ram:TypeCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-55",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-55]-Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument",
    "test": "normalize-space(ram:IssuerAssignedID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-26",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SellerTradeParty",
    "test": "(ram:ID) or (ram:GlobalID) or (ram:SpecifiedLegalOrganization/ram:ID) or (ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-18",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SellerTaxRepresentativeTradeParty",
    "test": "normalize-space(ram:Name) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-19",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SellerTaxRepresentativeTradeParty",
    "test": "(ram:PostalTradeAddress)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-20",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SellerTaxRepresentativeTradeParty",
    "test": "normalize-space(ram:PostalTradeAddress/ram:CountryID) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-56",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-56]-Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63).",
    "context": "//ram:SellerTaxRepresentativeTradeParty",
    "test": "normalize-space(ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA']) != ''",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-14",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).",
    "context": "//ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount[@currencyID=/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode]",
    "test": ". = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount/xs:decimal(.))*10*10)div 100)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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’.",
    "context": "//ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA']",
    "test": "contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BL BJ BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', substring(.,1,2), ' '))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'AE'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(xs:decimal(../ram:BasisAmount) -1 \u003c (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'AE']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='AE']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='AE']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)) and (../ram:BasisAmount +1 \u003e (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'AE']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='AE']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='AE']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'AE'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "../ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'AE'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(../ram:ExemptionReason) or (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-AE-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'AE'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "every $rate in ../ram:RateApplicablePercent/xs:decimal(.) satisfies (xs:decimal(../ram:BasisAmount) = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'L' and ram:ApplicableTradeTax/xs:decimal(ram:RateApplicablePercent) =$rate]/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount)) * 10 * 10) div 100 + round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='L' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100 - round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='L' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(ram:ExemptionReason) and not (ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IP-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'L'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "every $rate in ../ram:RateApplicablePercent/xs:decimal(.) satisfies (xs:decimal(../ram:BasisAmount) = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'M' and ram:ApplicableTradeTax/xs:decimal(ram:RateApplicablePercent) =$rate]/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount)) * 10 * 10) div 100 + round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='M' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100 - round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='M' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "true()",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(ram:ExemptionReason) and not (ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e= 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e= 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IG-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'M'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e= 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'E'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(xs:decimal(../ram:BasisAmount) - 1 \u003c (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'E']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='E']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='E']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)) and (../ram:BasisAmount + 1 \u003e (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'E']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='E']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='E']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'E'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "../ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'E'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(../ram:ExemptionReason) or (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-E-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'E'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'G'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(xs:decimal(../ram:BasisAmount) -1 \u003c (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'G']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='G']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='G']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)) and (../ram:BasisAmount +1 \u003e (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'G']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='G']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='G']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'G'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "../ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'G'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(../ram:ExemptionReason) or (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-G-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'G'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.= 'K'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(xs:decimal(../ram:BasisAmount) - 1 \u003c (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'K']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='K']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='K']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)) and (../ram:BasisAmount + 1 \u003e (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'K']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='K']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='K']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.= 'K'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "../ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.= 'K'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(../ram:ExemptionReason) or (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.= 'K'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeString) or (../../ram:BillingSpecifiedPeriod/ram:StartDateTime) or (../../ram:BillingSpecifiedPeriod/ram:EndDateTime)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-12",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.= 'K'][upper-case(../ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and //ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and //ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(//ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and //ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-IC-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'K'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "xs:decimal(ram:BasisAmount) = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'O']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=true() and ram:CategoryTradeTax/ram:CategoryCode='O']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=false() and ram:CategoryTradeTax/ram:CategoryCode='O']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "(ram:ExemptionReason) or (ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(//ram:ApplicableTradeTax[ram:CategoryCode != 'O'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-12",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(//ram:ApplicableTradeTax[ram:CategoryCode != 'O'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-13",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(//ram:CategoryTradeTax[ram:CategoryCode != 'O'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-14",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(//ram:CategoryTradeTax[ram:CategoryCode != 'O'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(ram:RateApplicablePercent)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(ram:RateApplicablePercent)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-O-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'O'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "not(ram:RateApplicablePercent)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.='S']",
    "test": "every $rate in ../ram:RateApplicablePercent/xs:decimal(.) satisfies (xs:decimal(../ram:BasisAmount) = (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'S' and ram:ApplicableTradeTax/xs:decimal(ram:RateApplicablePercent) =$rate]/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount)) * 10 * 10) div 100 + round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true() and ram:CategoryTradeTax/ram:CategoryCode='S' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100 - round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false() and ram:CategoryTradeTax/ram:CategoryCode='S' and ram:CategoryTradeTax/xs:decimal(ram:RateApplicablePercent)=$rate]/xs:decimal(ram:ActualAmount[1])) * 10 * 10) div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.='S']",
    "test": "(abs(xs:decimal(../ram:CalculatedAmount)) - 1 \u003c round(abs(xs:decimal(../ram:BasisAmount)) * xs:decimal(../ram:RateApplicablePercent)) div 100 ) and (abs(xs:decimal(../ram:CalculatedAmount)) + 1 \u003e round(abs(xs:decimal(../ram:BasisAmount)) * xs:decimal(../ram:RateApplicablePercent)) div 100 )",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[.='S']",
    "test": "not(../ram:ExemptionReason) and not (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-S-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'S'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent \u003e 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'Z']",
    "test": "(xs:decimal(../ram:BasisAmount) -1 \u003c (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'Z']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=true() and ram:CategoryTradeTax/ram:CategoryCode='Z']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=false() and ram:CategoryTradeTax/ram:CategoryCode='Z']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100)) and (../ram:BasisAmount +1 \u003e (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement[ram:ApplicableTradeTax/ram:CategoryCode = 'Z']/ram:SpecifiedTradeSettlementLineMonetarySummation/xs:decimal(ram:LineTotalAmount))*10*10)div 100) + (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=true() and ram:CategoryTradeTax/ram:CategoryCode='Z']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100) - (round(sum(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[(ram:ChargeIndicator/udt:Indicator cast as xs:boolean)=false() and ram:CategoryTradeTax/ram:CategoryCode='Z']/xs:decimal(ram:ActualAmount[1]))*10*10)div 100))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-09",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'Z']",
    "test": "../ram:CalculatedAmount = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode[. = 'Z']",
    "test": "not(../ram:ExemptionReason) and not (../ram:ExemptionReasonCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=false()]/ram:CategoryTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:CategoryTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-02",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-Z-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode = 'Z'][upper-case(ram:TypeCode) = 'VAT']",
    "test": "ram:RateApplicablePercent = 0",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-45",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-45]-Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "(ram:BasisAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-46",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-46]-Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "(ram:CalculatedAmount)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-47",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-47]-Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118).",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "(.[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode)",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-48",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-48]-Each VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "(.[upper-case(ram:TypeCode) = 'VAT']/ram:RateApplicablePercent) or (.[upper-case(ram:TypeCode) = 'VAT']/ram:CategoryCode = 'O')",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-03]-Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "((//ram:TaxPointDate) and not(//ram:DueDateTypeCode)) or (not (//ram:TaxPointDate) and (//ram:DueDateTypeCode)) or (not (//ram:TaxPointDate) and not (//ram:DueDateTypeCode))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-CO-17",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "(round(.[normalize-space(upper-case(ram:TypeCode)) = 'VAT']/xs:decimal(ram:RateApplicablePercent)) = 0 and (round(xs:decimal(ram:CalculatedAmount)) = 0)) or (round(.[normalize-space(upper-case(ram:TypeCode)) = 'VAT']/xs:decimal(ram:RateApplicablePercent)) != 0 and ((abs(xs:decimal(ram:CalculatedAmount)) - 1 \u003c= round(abs(xs:decimal(ram:BasisAmount)) * (.[normalize-space(upper-case(ram:TypeCode)) = 'VAT']/xs:decimal(ram:RateApplicablePercent) div 100) * 10 * 10) div 100 ) and (abs(xs:decimal(ram:CalculatedAmount)) + 1 \u003e= round(abs(xs:decimal(ram:BasisAmount)) * (.[normalize-space(upper-case(ram:TypeCode)) = 'VAT']/xs:decimal(ram:RateApplicablePercent) div 100) * 10 * 10) div 100 ))) or (not(exists(.[normalize-space(upper-case(ram:TypeCode))='VAT']/xs:decimal(ram:RateApplicablePercent))) and (round(xs:decimal(ram:CalculatedAmount)) = 0))",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-19",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "string-length(substring-after(ram:BasisAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "BR-DEC-20",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-20]-The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.",
    "context": "//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax",
    "test": "string-length(substring-after(ram:CalculatedAmount,'.'))\u003c=2",
    "phases": [
      "EN16931-model-phase"
    ]
  },
  {
    "id": "CII-SR-464",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-464] - PayerSpecifiedDebtorFincancialInstitution should not be used.",
    "context": "//ram:SpecifiedTradeSettlementPaymentMeans",
    "test": "not(ram:PayerSpecifiedDebtorFinancialInstitution)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-001",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-001] - SpecifiedTransactionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:SpecifiedTransactionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-002",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-002] - TestIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:TestIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-003",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-003] - BusinessProcessSpecifiedDocumentContextParameter should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "(count(ram:BusinessProcessSpecifiedDocumentContextParameter) \u003c= 1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-006",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-006] - BIMSpecifiedDocumentContextParameter should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:BIMSpecifiedDocumentContextParameter)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-007",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-007] - ScenarioSpecifiedDocumentContextParameter should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:ScenarioSpecifiedDocumentContextParameter)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-008",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-008] - ApplicationSpecifiedDocumentContextParameter should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:ApplicationSpecifiedDocumentContextParameter)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-009",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-009] - GuidelineSpecifiedDocumentContextParameter must exist exactly once",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "count(ram:GuidelineSpecifiedDocumentContextParameter) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-010",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-010] - ID must exist exactly once",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "count(ram:GuidelineSpecifiedDocumentContextParameter/ram:ID) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-011",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-011] - SubsetSpecifiedDocumentContextParameter should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:SubsetSpecifiedDocumentContextParameter)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-012",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-012] - MessageStandardSpecifiedDocumentContextParameter should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext",
    "test": "not(ram:MessageStandardSpecifiedDocumentContextParameter)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-013",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-013] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-014",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-014] - TypeCode must exist exactly once",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "count(ram:TypeCode) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-015",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-015] - DateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:IssueDateTime/udt:DateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-016",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-016] - CopyIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:CopyIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-017",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-017] - Purpose should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:Purpose)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-018",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-018] - ControlRequirementIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:ControlRequirementIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-019",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-019] - LanguageID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:LanguageID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-020",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-020] - PurposeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:PurposeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-021",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-021] - RevisionDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:RevisionDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-022",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-022] - VersionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:VersionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-023",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-023] - GlobalID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:GlobalID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-024",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-024] - RevisionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:RevisionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-025",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-025] - PreviousRevisionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:PreviousRevisionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-026",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-026] - CategoryCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:CategoryCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-027",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-027] - Subject should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:IncludedNote/ram:Subject)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-028",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-028] - ContentCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:IncludedNote/ram:ContentCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-032",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-032] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:IncludedNote/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-033",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-033] - EffectiveSpecifiedPeriod should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:EffectiveSpecifiedPeriod)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-034",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-034] - IssuerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument",
    "test": "not(ram:IssuerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-030",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-030] - Content should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote",
    "test": "count(ram:Content) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-035",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-035] - DescriptionCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:DescriptionCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-036",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-036] - ParentLineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:ParentLineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-037",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-037] - LineStatusCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:LineStatusCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-038",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-038] - LineStatusReasonCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:LineStatusReasonCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-221",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-221] - IncludedSubordinateTradeLineItem should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:IncludedSubordinateTradeLineItem)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-039",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-039] - IncludedNote should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "count(ram:IncludedNote) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-040",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-040] - Content should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "count(ram:IncludedNote/ram:Content) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-041",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-041] - SubjectCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:IncludedNote/ram:SubjectCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-042",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-042] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:IncludedNote/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-043",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-043] - CategoryCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:IncludedNote/ram:Subject)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-044",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-044] - Subject should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument",
    "test": "not(ram:IncludedNote/ram:ContentCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-045",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-045] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-046",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-046] - schemeID must be present if GlobalID is present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:GlobalID) or (ram:GlobalID/@schemeID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-048",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-048] - ManufacturerAssignedID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ManufacturerAssignedID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-049",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-049] - TradeName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:TradeName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-050",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-050] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-051",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-051] - NetWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:NetWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-052",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-052] - GrossWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:GrossWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-053",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-053] - ProductGroupID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ProductGroupID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-054",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-054] - EndItemTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:EndItemTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-055",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-055] - EndItemName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:EndItemName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-056",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-056] - AreaDensityMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:AreaDensityMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-057",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-057] - UseDescription should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:UseDescription)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-058",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-058] - BrandName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:BrandName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-059",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-059] - SubBrandName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:SubBrandName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-060",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-060] - DrainedNetWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DrainedNetWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-061",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-061] - VariableMeasureIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:VariableMeasureIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-062",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-062] - ColourCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ColourCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-063",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-063] - ColourDescription should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ColourDescription)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-064",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-064] - Designation should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:Designation)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-065",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-065] - FormattedCancellationAnnouncedLaunchDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:FormattedCancellationAnnouncedLaunchDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-066",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-066] - FormattedLatestProductDataChangeDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:FormattedLatestProductDataChangeDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-067",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-067] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-068",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-068] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-070",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-070] - ValueMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ValueMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-071",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-071] - MeasurementMethodCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:MeasurementMethodCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-073",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-073] - ValueCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ValueCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-074",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-074] - ValueDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ValueDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-075",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-075] - ValueIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ValueIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-076",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-076] - ContentTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ContentTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-077",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-077] - ValueSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ValueSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-078",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-078] - ApplicableProductCharacteristicCondition should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ApplicableProductCharacteristicCondition)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-079",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-079] - ApplicableReferencedStandard should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableProductCharacteristic/ram:ApplicableReferencedStandard)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-080",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-080] - ApplicableMaterialGoodsCharacteristic should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ApplicableMaterialGoodsCharacteristic)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-081",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-081] - SystemID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:SystemID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-082",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-082] - SystemName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:SystemName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-083",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-083] - ClassName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:ClassName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-084",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-084] - SubClassCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:SubClassCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-085",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-085] - ClassProductCharacteristic should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:ClassProductCharacteristic)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-086",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-086] - ApplicableReferencedStandard should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:DesignatedProductClassification/ram:ApplicableReferencedStandard)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-087",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-087] - IndividualTradeProductInstance should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:IndividualTradeProductInstance)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-088",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-088] - CertificationEvidenceReferenceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:CertificationEvidenceReferenceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-089",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-089] - InspectionReferenceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:InspectionReferenceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-090",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-090] - ID should exist maximum once.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not (ram:OriginTradeCountry) or (count(ram:OriginTradeCountry/ram:ID) =1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-091",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-091] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:OriginTradeCountry/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-092",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-092] - SubordinateTradeCountrySubDivision should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:OriginTradeCountry/ram:SubordinateTradeCountrySubDivision)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-093",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-093] - LinearSpatialDimension should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:LinearSpatialDimension)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-094",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-094] - MinimumLinearSpatialDimension should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:MinimumLinearSpatialDimension)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-095",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-095] - MaximumLinearSpatialDimension should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:MaximumLinearSpatialDimension)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-096",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-096] - ManufacturerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:ManufacturerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-097",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-097] - PresentationSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:PresentationSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-098",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-098] - MSDSReferenceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:MSDSReferenceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-099",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-099] - AdditionalReferenceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:AdditionalReferenceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-100",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-100] - LegalRightsOwnerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:LegalRightsOwnerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-101",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-101] -BrandOwnerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:BrandOwnerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-102",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-102] -IncludedReferencedProduct should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:IncludedReferencedProduct)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-103",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-103] - InformationNoteshould not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct",
    "test": "not(ram:InformationNote)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-069",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-069] - Description should exist maximum once.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic",
    "test": "(count(ram:Description) =1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-072",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-072] - Value should exist maximum once.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic",
    "test": "(count(ram:Value) =1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-104",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-104] - BuyerReference should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:BuyerReference)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-105",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-105] - BuyerRequisitionerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:BuyerRequisitionerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-106",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-106] - ApplicableTradeDeliveryTerms should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:ApplicableTradeDeliveryTerms)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-107",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-107] - SellerOrderReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:SellerOrderReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-108",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-108] - IssuerAssignedID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-109",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-109] - QuotationReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:QuotationReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-110",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-110] - ContractReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:ContractReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-111",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-111] - DemandForecastReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:DemandForecastReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-112",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-112] - PromotionalDealReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:PromotionalDealReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-113",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-113] - AdditionalReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:AdditionalReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-114",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-114] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-115",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-115] - MinimumQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:MinimumQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-116",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-116] - MaximumQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:MaximumQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-117",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-117] - ChangeReason should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:ChangeReason)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-118",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-118] - OrderUnitConversionFactorNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:OrderUnitConversionFactorNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-439",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-439] - ChargeAmount should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "count(ram:NetPriceProductTradePrice/ram:ChargeAmount) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-119",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-119] - Only allowances on price a price should be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ChargeIndicator[udt:Indicator=false()] and ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount) or (not (ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ChargeIndicator) and not (ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount))",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-120",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-120] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-121",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-121] - SequenceNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:SequenceNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-122",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-122] - CalculationPercent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:CalculationPercent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-123",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-123] - BasisAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:BasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-124",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-124] - BasisQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:BasisQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-125",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-125] - PrepaidIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:PrepaidIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-126",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-126] - UnitBasisAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:UnitBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-127",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-127] - ReasonCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ReasonCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-128",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-128] - Reason should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:Reason)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-129",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-129] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-130",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-130] - CategoryTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:CategoryTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-131",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-131] - ActualTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-445",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-445] - IncludedTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:IncludedTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-132",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-132] - ValiditySpecifiedPeriod should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:ValiditySpecifiedPeriod)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-133",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-133] - DeliveryTradeLocation should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:DeliveryTradeLocation)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-134",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-134] - TradeComparisonReferencePrice should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:TradeComparisonReferencePrice)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-135",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-135] - AssociatedReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:GrossPriceProductTradePrice/ram:AssociatedReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-136",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-136] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-138",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-138] - MinimumQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:MinimumQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-139",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-139] - MaximumQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:MaximumQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-140",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-140] - ChangeReason should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:ChangeReason)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-141",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-141] - OrderUnitConversionFactorNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:OrderUnitConversionFactorNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-142",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-142] - AppliedTradeAllowanceCharge should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:AppliedTradeAllowanceCharge)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-446",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-446] - IncludedTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:IncludedTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-143",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-143] - ValiditySpecifiedPeriod should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:ValiditySpecifiedPeriod)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-144",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-144] - DeliveryTradeLocation should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:DeliveryTradeLocation)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-145",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-145] - TradeComparisonReferencePrice should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:TradeComparisonReferencePrice)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-146",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-146] - AssociatedReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:NetPriceProductTradePrice/ram:AssociatedReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-441",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-441] - ChargeAmount should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "count(ram:NetPriceProductTradePrice/ram:ChargeAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-147",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-147] - RequisitionerReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:RequisitionerReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-148",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-148] - ItemSellerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:ItemSellerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-149",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-149] - ItemBuyerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:ItemBuyerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-150",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-150] - IncludedSpecifiedMarketplace should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:IncludedSpecifiedMarketplace)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-447",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-447] - UltimateCustomerOrderReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement",
    "test": "not(ram:UltimateCustomerOrderReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-463",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-463]-Each Specified Trade Allowance Charge (BG-20)(BG-21) shall contain a Charge Indicator.",
    "context": "//ram:SpecifiedTradeAllowanceCharge",
    "test": "(ram:ChargeIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-472",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-472] - CategoryTradeTax shall occur at most once in a Specified Trade Allowance Charge.",
    "context": "//ram:SpecifiedTradeAllowanceCharge",
    "test": "count(ram:CategoryTradeTax) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-473",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-473] - ActualAmount should exist maximum once",
    "context": "//ram:SpecifiedTradeAllowanceCharge",
    "test": "count(ram:ActualAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-440",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-440] - ActualAmount should exist maximum once",
    "context": "//ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge",
    "test": "count(ram:ActualAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-475",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-475] - Only one AdditionalReferencedDocument Name BT-123 is allowed with TypeCode 916.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument",
    "test": "normalize-space(ram:TypeCode) != '916' or count(ram:Name) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-476",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-476] - Only one AdditionalReferencedDocument AttachmentBinaryObject BT-125 is allowed with TypeCode 916.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument",
    "test": "normalize-space(ram:TypeCode) != '916' or count(ram:AttachmentBinaryObject) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-151",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-151] - RequestedQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:RequestedQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-152",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-152] - ReceivedQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ReceivedQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-153",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-153] - ChargeFreeQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ChargeFreeQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-154",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-154] - PackageQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:PackageQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-155",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-155] - ProductUnitQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ProductUnitQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-156",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-156] - PerPackageUnitQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:PerPackageUnitQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-157",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-157] - NetWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:NetWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-158",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-158] - GrossWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:GrossWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-159",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-159] - TheoreticalWeightMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:TheoreticalWeightMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-160",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-160] - DespatchedQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:DespatchedQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-161",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-161] - SpecifiedDeliveryAdjustment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:SpecifiedDeliveryAdjustment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-162",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-162] - IncludedSupplyChainPackaging should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:IncludedSupplyChainPackaging)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-163",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-163] - RelatedSupplyChainConsignment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:RelatedSupplyChainConsignment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-164",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-164] - ShipToTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ShipToTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-165",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-165] - UltimateShipToTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:UltimateShipToTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-166",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-166] - ShipFromTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ShipFromTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-167",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-167] - ActualDespatchSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ActualDespatchSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-168",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-168] - ActualPickUpSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ActualPickUpSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-169",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-169] - RequestedDeliverySupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:RequestedDeliverySupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-170",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-170] - ActualDeliverySupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-171",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-171] - ActualReceiptSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ActualReceiptSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-172",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-172] - AdditionalReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:AdditionalReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-173",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-173] - DespatchAdviceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:DespatchAdviceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-174",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-174] - ReceivingAdviceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ReceivingAdviceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-175",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-175] - DeliveryNoteReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:DeliveryNoteReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-176",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-176] - ConsumptionReportReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:ConsumptionReportReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-177",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-177] - RequestedQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery",
    "test": "not(ram:PackingListReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-178",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-178] - PaymentReference should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:PaymentReference)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-179",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-179] - InvoiceIssuerReference should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:InvoiceIssuerReference)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-180",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-180] - TotalAdjustmentAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:TotalAdjustmentAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-181",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-181] - DiscountIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:DiscountIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-182",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-182] - CalculatedAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ApplicableTradeTax/ram:CalculatedAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-183",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-183] - IndicatorString should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ChargeIndicator/udt:IndicatorString)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-184",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-184] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-185",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-185] - SequenceNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:SequenceNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-186",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-186] - @format should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:CalculationPercent/@format)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-187",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-187] - BasisQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:BasisQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-188",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-188] - PrepaidIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:PrepaidIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-189",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-189] - UnitBasisAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:UnitBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-190",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-190] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-191",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-191] - CategoryTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-192",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-192] - ActualTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ActualTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-193",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-193] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-194",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-194] - SubtotalCalculatedTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SubtotalCalculatedTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-195",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-195] - SpecifiedLogisticsServiceCharge should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedLogisticsServiceCharge)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-196",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-196] - SpecifiedTradePaymentTerms should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-197",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-197] - ChargeTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:ChargeTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-198",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-198] - AllowanceTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:AllowanceTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-199",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-199] - TaxBasisTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:TaxBasisTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-200",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-200] - TaxTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:TaxTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-201",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-201] - GrandTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:GrandTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-202",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-202] - InformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:InformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-203",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-203] - TotalAllowanceChargeAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:TotalAllowanceChargeAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-204",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-204] - TotalRetailValueInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:TotalRetailValueInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-205",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-205] - GrossLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:GrossLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-206",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-206] - NetLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:NetLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-207",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-207] - NetIncludingTaxesLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:NetIncludingTaxesLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-208",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-208] - ProductWeightLossInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementLineMonetarySummation/ram:ProductWeightLossInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-209",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-209] - SpecifiedFinancialAdjustment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedFinancialAdjustment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-210",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-210] - InvoiceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:InvoiceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-212",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-212] - PayableSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:PayableSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-213",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-213] - SetTriggerCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:SetTriggerCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-214",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-214] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-215",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-215] - AmountTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:AmountTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-216",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-216] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-217",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-217] - CostReferenceDimensionPattern should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:CostReferenceDimensionPattern)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-218",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-218] - PurchaseSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:PurchaseSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-219",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-219] - SalesSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SalesSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-220",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-220] - SpecifiedTradeSettlementFinancialCard should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementFinancialCard)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-454",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-454] - Only one ApplicableTradeTax should be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "count(ram:ApplicableTradeTax) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-474",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-474] - An invoice line shall not contain more than one AdditionalReferencedDocument with TypeCode 130.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement",
    "test": "count(ram:AdditionalReferencedDocument[normalize-space(ram:TypeCode) = '130']) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-442",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-442] - Reference should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:Reference)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-222",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-222] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:RoleCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-223",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-223] - LegalClassificationCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:LegalClassificationCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-224",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-224] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-225",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-225] - PostalTradeAddress should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-226",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-226] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:AuthorizedLegalRegistration)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-227",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-227] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-228",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-228] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-229",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-229] - JobTitle should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:JobTitle)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-230",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-230] - Responsibility should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:Responsibility)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-231",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-231] - PersonID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:PersonID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-232",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-232] - URIID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:URIID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-233",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-233] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-234",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-234] - DirectTelephoneUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:DirectTelephoneUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-235",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-235] - MobileTelephoneUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:MobileTelephoneUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-236",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-236] - FaxUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:FaxUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-237",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-237] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-238",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-238] - CompleteNumber should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:CompleteNumber)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-239",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-239] - TelexUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelexUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-240",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-240] - VOIPUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:VOIPUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-241",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-241] - InstantMessagingUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:InstantMessagingUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-242",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-242] - SpecifiedNote should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:SpecifiedNote)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-243",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-243] - SpecifiedContactPerson should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:SpecifiedContactPerson)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-244",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-244] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:URIUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-245",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-245] - CompleteNumber should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:URIUniversalCommunication/ram:CompleteNumber)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-246",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-246] - AssociatedRegisteredTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:AssociatedRegisteredTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-247",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-247] - EndPointURIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:EndPointURIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-248",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-248] - LogoAssociatedSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:LogoAssociatedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-249",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-249] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:RoleCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-250",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-250] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-251",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-251] - LegalClassificationCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:LegalClassificationCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-252",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-252] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-254",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-254] - PostalTradeAddress should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-255",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-255] - AuthorizedLegalRegistration should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:AuthorizedLegalRegistration)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-256",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-256] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-257",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-257] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-258",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-258] - JobTitle should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:JobTitle)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-259",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-259] - Responsibility should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:Responsibility)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-260",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-260] - PersonID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:PersonID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-261",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-261] - URIID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:URIID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-262",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-262] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-263",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-263] - DirectTelephoneUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:DirectTelephoneUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-264",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-264] - MobileTelephoneUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:MobileTelephoneUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-265",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-265] - FaxUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:FaxUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-266",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-266] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-267",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-267] - CompleteNumber should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:CompleteNumber)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-268",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-268] - TelexUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TelexUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-269",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-269] - VOIPUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:VOIPUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-270",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-270] - InstantMessagingUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:InstantMessagingUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-271",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-271] - SpecifiedNote should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:SpecifiedNote)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-272",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-272] - SpecifiedContactPerson should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:SpecifiedContactPerson)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-273",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-273] - ChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:ChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-274",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-274] - CompleteNumber should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:CompleteNumber)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-275",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-275] - AssociatedRegisteredTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:AssociatedRegisteredTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-276",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-276] - EndPointURIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:EndPointURIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-277",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-277] - LogoAssociatedSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:LogoAssociatedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-278",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-278] - SalesAgentTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SalesAgentTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-279",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-279] - BuyerRequisitionerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerRequisitionerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-280",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-280] - BuyerAssignedAccountantTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerAssignedAccountantTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-281",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-281] - SellerAssignedAccountantTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerAssignedAccountantTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-282",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-282] - BuyerTaxRepresentativeTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-283",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-283] - GlobalID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:GlobalID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-284",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-284] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:RoleCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-285",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-285] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-286",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-286] - SpecifiedLegalOrganization should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedLegalOrganization)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-287",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-287] - DefinedTradeContact should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:DefinedTradeContact)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-288",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-288] - URIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:URIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-289",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-289] - AssociatedRegisteredTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:AssociatedRegisteredTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-290",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-290] - EndPointURIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:EndPointURIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-291",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-291] - LogoAssociatedSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTaxRepresentativeTradeParty/ram:LogoAssociatedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-292",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-292] - ProductEndUserTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:ProductEndUserTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-293",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-293] - ApplicableTradeDeliveryTerms should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:ApplicableTradeDeliveryTerms)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-294",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-294] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerOrderReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-295",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-295] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerOrderReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-296",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-296] - QuotationReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:QuotationReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-297",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-297] - OrderResponseReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:OrderResponseReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-298",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-298] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:ContractReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-299",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-299] - DemandForecastReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:DemandForecastReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-300",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-300] - SupplyInstructionReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SupplyInstructionReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-301",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-301] - PromotionalDealReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:PromotionalDealReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-302",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-302] - PriceListReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:PriceListReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-303",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-303] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:AdditionalReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-304",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-304] - RequisitionerReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:RequisitionerReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-305",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-305] - BuyerAgentTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerAgentTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-306",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-306] - PurchaseConditionsReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:PurchaseConditionsReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-307",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-307] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SpecifiedProcuringProject/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-448",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-448] - UltimateCustomerOrderReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:UltimateCustomerOrderReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-450",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-450] - Only one  buyer identifier should be present (either the ID or the Global ID)",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "(not(ram:BuyerTradeParty/ram:ID) and ram:BuyerTradeParty/ram:GlobalID) or (ram:BuyerTradeParty/ram:ID and not(ram:BuyerTradeParty/ram:GlobalID)) or (not(ram:BuyerTradeParty/ram:ID) and not(ram:BuyerTradeParty/ram:GlobalID))",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-455",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-455] - DefinedTradeContact of SellerTradeParty shall exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "( count(ram:SellerTradeParty/ram:DefinedTradeContact)  \u003c= 1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-456",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-456] - DefinedTradeContact of BuyerTradeParty shall exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "( count(ram:BuyerTradeParty/ram:DefinedTradeContact)  \u003c= 1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-457",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-457] - IssuerAssignedID with TypeCode 50 should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "( count(ram:AdditionalReferencedDocument[ram:TypeCode='50'])  \u003c= 1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-458",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-458] - IssuerAssignedID with TypeCode 130 should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "( count(ram:AdditionalReferencedDocument[ram:TypeCode='130'])  \u003c= 1)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-459",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-459] - SellerTradeParty URIUniversalCommunication should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "count(ram:SellerTradeParty/ram:URIUniversalCommunication) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-460",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-460] - BuyerTradeParty URIUniversalCommunication should exist maximum once",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "count(ram:BuyerTradeParty/ram:URIUniversalCommunication) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-465",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-465] - Only one BT-41 element is allowed on an invoice.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:SellerTradeParty/ram:DefinedTradeContact/ram:PersonName and ram:SellerTradeParty/ram:DefinedTradeContact/ram:DepartmentName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-466",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-466] - Only one BT-56 element is allowed on an invoice.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement",
    "test": "not(ram:BuyerTradeParty/ram:DefinedTradeContact/ram:PersonName and ram:BuyerTradeParty/ram:DefinedTradeContact/ram:DepartmentName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-308",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-308] - RelatedSupplyChainConsignment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:RelatedSupplyChainConsignment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-309",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-309] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:RoleCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-310",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-310] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-311",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-311] - SpecifiedLegalOrganization should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:SpecifiedLegalOrganization)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-312",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-312] - DefinedTradeContact should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:DefinedTradeContact)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-313",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-313] - URIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:URIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-314",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-314] - SpecifiedTaxRegistration should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:SpecifiedTaxRegistration)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-315",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-315] - EndPointURIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:EndPointURIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-316",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-316] - LogoAssociatedSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipToTradeParty/ram:LogoAssociatedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-317",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-317] - UltimateShipToTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:UltimateShipToTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-318",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-318] - ShipFromTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ShipFromTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-319",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-319] - ActualDespatchSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDespatchSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-320",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-320] - ActualPickUpSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualPickUpSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-321",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-321] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-322",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-322] - DateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-323",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-323] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-324",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-324] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-325",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-325] - DescriptionBinaryObject should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:DescriptionBinaryObject)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-326",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-326] - UnitQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:UnitQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-327",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-327] - LatestOccurrenceDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:LatestOccurrenceDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-328",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-328] - EarliestOccurrenceDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:EarliestOccurrenceDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-329",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-329] - OccurrenceSpecifiedPeriod should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:OccurrenceSpecifiedPeriod)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-330",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-330] - OccurrenceLogisticsLocation should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualDeliverySupplyChainEvent/ram:OccurrenceLogisticsLocation)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-331",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-331] - ActualReceiptSupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ActualReceiptSupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-332",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-332] - AdditionalReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:AdditionalReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-333",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-333] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:DespatchAdviceReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-334",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-334] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:DespatchAdviceReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-335",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-335] - DeliveryNoteReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:DeliveryNoteReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-336",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-336] - ConsumptionReportReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:ConsumptionReportReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-337",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-337] - PreviousDeliverySupplyChainEvent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:PreviousDeliverySupplyChainEvent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-338",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-338] - PackingListReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "not(ram:PackingListReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-449",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-449] - Only one delivery to location identifier should be present (either the ID or the Global ID)",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery",
    "test": "(not(ram:ShipToTradeParty/ram:ID) and ram:ShipToTradeParty/ram:GlobalID) or (ram:ShipToTradeParty/ram:ID and not(ram:ShipToTradeParty/ram:GlobalID)) or (not(ram:ShipToTradeParty/ram:ID) and not(ram:ShipToTradeParty/ram:GlobalID))",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-339",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-339] - DuePayableAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:DuePayableAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-340",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-340] - CreditorReferenceTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:CreditorReferenceTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-341",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-341] - CreditorReferenceType should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:CreditorReferenceType)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-342",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-342] - CreditorReferenceIssuerID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:CreditorReferenceIssuerID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-344",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-344] - PaymentCurrencyCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PaymentCurrencyCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-345",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-345] - InvoiceIssuerReference should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoiceIssuerReference)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-346",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-346] - InvoiceDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoiceDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-347",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-347] - NextInvoiceDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:NextInvoiceDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-348",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-348] - CreditReasonCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:CreditReasonCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-349",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-349] - CreditReason should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:CreditReason)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-350",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-350] - InvoicerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoicerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-351",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-351] - InvoiceeTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoiceeTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-352",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-352] - RoleCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:RoleCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-353",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-353] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-354",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-354] - LegalClassificationCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:LegalClassificationCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-355",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-355] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-356",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-356] - TradingBusinessName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:TradingBusinessName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-357",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-357] - PostalTradeAddress should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-358",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-358] - AuthorizedLegalRegistration should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:AuthorizedLegalRegistration)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-359",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-359] - DefinedTradeContact should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:DefinedTradeContact)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-360",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-360] - PostalTradeAddress should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:PostalTradeAddress)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-361",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-361] - URIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:URIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-362",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-362] - SpecifiedTaxRegistration should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:SpecifiedTaxRegistration)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-363",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-363] - EndPointURIUniversalCommunication should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:EndPointURIUniversalCommunication)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-364",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-364] - LogoAssociatedSpecifiedBinaryFile should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayeeTradeParty/ram:LogoAssociatedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-451",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-451] - Only one payee identifier should be present (either the ID or the Global ID)",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "(not(ram:PayeeTradeParty/ram:ID) and ram:PayeeTradeParty/ram:GlobalID) or (ram:PayeeTradeParty/ram:ID and not(ram:PayeeTradeParty/ram:GlobalID)) or (not(ram:PayeeTradeParty/ram:ID) and not(ram:PayeeTradeParty/ram:GlobalID))",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-365",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-365] - PayerTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-366",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-366] - TaxApplicableTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:TaxApplicableTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-367",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-367] - InvoiceApplicableTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoiceApplicableTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-368",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-368] - PaymentApplicableTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PaymentApplicableTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-369",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-369] - PaymentChannelCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PaymentChannelCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-370",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-370] - GuaranteeMethodCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:GuaranteeMethodCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-371",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-371] - PaymentMethodCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PaymentMethodCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-443",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-443] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-372",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-372] - MicrochipIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:MicrochipIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-373",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-373] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-375",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-375] - ExpiryDate should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:ExpiryDate)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-376",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-376] - VerificationNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:VerificationNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-377",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-377] - ValidFromDateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:ValidFromDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-378",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-378] - CreditLimitAmountshould not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:CreditLimitAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-379",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-379] - CreditAvailableAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:CreditAvailableAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-380",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-380] - InterestRatePercent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:InterestRatePercent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-381",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-381] - Description should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-382",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-382] - AccountName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ram:AccountName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-444",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-444] - ProprietaryID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ram:ProprietaryID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-384",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-384] - ClearingSystemName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerSpecifiedDebtorFinancialInstitution/ram:ClearingSystemName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-385",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-385] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerSpecifiedDebtorFinancialInstitution/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-386",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-386] - LocationFinancialInstitutionAddress should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerSpecifiedDebtorFinancialInstitution/ram:LocationFinancialInstitutionAddress)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-388",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-388] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-389",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-389] - SequenceNumeric should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:SequenceNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-390",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-390] - BasisQuantity should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:BasisQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-391",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-391] - PrepaidIndicator should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:PrepaidIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-392",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-392] - UnitBasisAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:UnitBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-393",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-393] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-394",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-394] - ActualTradeCurrencyExchange should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeAllowanceCharge/ram:ActualTradeCurrencyExchange)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-395",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-395] - SubtotalCalculatedTradeTax should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SubtotalCalculatedTradeTax)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-396",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-396] - SpecifiedLogisticsServiceCharge should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedLogisticsServiceCharge)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-397",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-397] - ID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-398",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-398] - FromEventCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:FromEventCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-399",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-399] - SettlementPeriodMeasure should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:SettlementPeriodMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-400",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-400] - DateTime should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime/udt:DateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-401",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-401] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-402",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-402] - InstructionTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:InstructionTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-404",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-404] - PartialPaymentPercent should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:PartialPaymentPercent)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-405",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-405] - PaymentMeansID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:PaymentMeansID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-406",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-406] - PartialPaymentAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:PartialPaymentAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-407",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-407] - ApplicableTradePaymentPenaltyTerms should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:ApplicableTradePaymentPenaltyTerms)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-408",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-408] - ApplicableTradePaymentDiscountTerms should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:ApplicableTradePaymentDiscountTerms)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-409",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-409] - PayeeTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradePaymentTerms/ram:PayeeTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-421",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-421] - SpecifiedFinancialAdjustment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedFinancialAdjustment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-422",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-422] - LineID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:InvoiceReferencedDocument/ram:LineID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-423",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-423] - ProFormaInvoiceReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ProFormaInvoiceReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-424",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-424] - LetterOfCreditReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:LetterOfCreditReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-425",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-425] - FactoringAgreementReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:FactoringAgreementReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-426",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-426] - FactoringListReferencedDocument should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:FactoringListReferencedDocument)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-427",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-427] - PayableSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PayableSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-428",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-428] - SetTriggerCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:SetTriggerCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-429",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-429] - TypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:TypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-430",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-430] - AmountTypeCode should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:AmountTypeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-431",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-431] - Name should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-432",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-432] - CostReferenceDimensionPattern should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:ReceivableSpecifiedTradeAccountingAccount/ram:CostReferenceDimensionPattern)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-433",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-433] - PurchaseSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:PurchaseSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-434",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-434] - SalesSpecifiedTradeAccountingAccount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SalesSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-435",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-435] - SpecifiedTradeSettlementFinancialCard should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedTradeSettlementFinancialCard)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-436",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-436] - SpecifiedAdvancePayment should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:SpecifiedAdvancePayment)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-437",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-437] - UltimatePayeeTradeParty should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "not(ram:UltimatePayeeTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-452",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-452] - Only one SpecifiedTradePaymentTerms should be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(ram:SpecifiedTradePaymentTerms) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-453",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-453] - Only one SpecifiedTradePaymentTerms Description should be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(ram:SpecifiedTradePaymentTerms/ram:Description) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-461",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-461] - Only one TaxPointDate shall be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(ram:ApplicableTradeTax/ram:TaxPointDate) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-462",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-462] - Only one DueDateTypeCode shall be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(//ram:ApplicableTradeTax/ram:DueDateTypeCode) = 0 or count(distinct-values(//ram:ApplicableTradeTax/ram:DueDateTypeCode)) = 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-470",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-470] - Either the IBAN or a Proprietary ID (BT-84) shall be used.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(ram:SpecifiedTradeSettlementPaymentMeans[(normalize-space(ram:TypeCode) = '30' or normalize-space(ram:TypeCode) = '58') and not(ram:PayeePartyCreditorFinancialAccount/ram:IBANID or ram:PayeePartyCreditorFinancialAccount/ram:ProprietaryID)]) = 0",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-497",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-497] - Mandate reference identifier (BT-89) shall occur maximum once.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement",
    "test": "count(ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-411",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-411] - InformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:InformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-412",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-412] - TotalDiscountAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TotalDiscountAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-413",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-413] - TotalAllowanceChargeAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TotalAllowanceChargeAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-414",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-414] - RetailValueExcludingTaxInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:RetailValueExcludingTaxInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-415",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-415] - TotalDepositFeeInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TotalDepositFeeInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-416",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-416] - ProductValueExcludingTobaccoTaxInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:ProductValueExcludingTobaccoTaxInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-417",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-417] - TotalRetailValueInformationAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:TotalRetailValueInformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-418",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-418] - GrossLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:GrossLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-419",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-419] - NetLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:NetLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-420",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-420] - NetIncludingTaxesLineTotalAmount should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "not(ram:NetIncludingTaxesLineTotalAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-477",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-477] - LineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:LineTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-478",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-478] - ChargeTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:ChargeTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-479",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-479] - AllowanceTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:AllowanceTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-480",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-480] - TaxBasisTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TaxBasisTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-481",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-481] - RoundingAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:RoundingAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-482",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-482] - GrandTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:GrandTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-483",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-483] - InformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:InformationAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-484",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-484] - TotalPrepaidAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TotalPrepaidAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-485",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-485] - TotalDiscountAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TotalDiscountAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-486",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-486] - TotalAllowanceChargeAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TotalAllowanceChargeAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-487",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-487] - DuePayableAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:DuePayableAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-488",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-488] - RetailValueExcludingTaxInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:RetailValueExcludingTaxInformationAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-489",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-489] - TotalDepositFeeInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TotalDepositFeeInformationAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-490",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-490] - ProductValueExcludingTobaccoTaxInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:ProductValueExcludingTobaccoTaxInformationAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-491",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-491] - TotalRetailValueInformationAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:TotalRetailValueInformationAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-492",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-492] - GrossLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:GrossLineTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-493",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-493] - NetLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:NetLineTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-494",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-494] - NetIncludingTaxesLineTotalAmount shall occur at most once in SpecifiedTradeSettlementHeaderMonetarySummation.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation",
    "test": "count(ram:NetIncludingTaxesLineTotalAmount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-013",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-013] - languageID should not be present",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "not(@languageID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-014",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-014] - languageLocaleID should not be present",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "not(@languageLocaleID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-438",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-438] - ValuationBreakdownStatement should not be present",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "not(ram:ValuationBreakdownStatement)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-467",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-467] - All Payment means type codes (BT-81) shall have the same value across all SpecifiedTradeSettlementPaymentMeans.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "count(//ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode[normalize-space(.) != normalize-space((//ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode)[1])]) = 0",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-468",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-468] - All Payment means texts (BT-82) shall have the same value across all SpecifiedTradeSettlementPaymentMeans.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "count(//ram:SpecifiedTradeSettlementPaymentMeans/ram:Information[normalize-space(.) != normalize-space((//ram:SpecifiedTradeSettlementPaymentMeans/ram:Information)[1])]) = 0",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-469",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-469] - Payment reference (BT-83) shall occur at most once in the document.",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "count(//ram:ApplicableHeaderTradeSettlement/ram:PaymentReference) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-495",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-495] - An Invoice shall contain maximum one Payment Card account (BG-18).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "count(//ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-496",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-SR-496] - An Invoice shall contain maximum one Payment Mandate (BG-19).",
    "context": "/rsm:CrossIndustryInvoice",
    "test": "count(//ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount) \u003c= 1",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-004] - Value should not be present",
    "context": "//*[ends-with(name(), 'DocumentContextParameter')]",
    "test": "not(ram:Value)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-SR-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-SR-005] - SpecifiedDocumentVersion should not be present",
    "context": "//*[ends-with(name(), 'DocumentContextParameter')]",
    "test": "not(ram:SpecifiedDocumentVersion)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-105",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-105] - Attached document Mime code (BT-125-1) shall be provided.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject",
    "test": "exists(@mimeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-106",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-106] - Attached document Filename (BT-125-2) shall be provided.",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject",
    "test": "exists(@filename)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-001",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-001] - schemeName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-002",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-002] - schemeAgencyName should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeAgencyName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-003",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-003] - schemeDataURI should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeDataURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-004",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-004] - schemeURI should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-005",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-005] - schemeID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-006",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-006] - schemeAgencyID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeAgencyID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-007",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-007] - schemeVersionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID |            /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID |            /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID",
    "test": "not(@schemeVersionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-101",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-101] - schemeName should not be present",
    "context": "//ram:*[ends-with(name(), 'ID')]",
    "test": "not(@schemeName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-102",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-102] - schemeAgencyName should not be present",
    "context": "//ram:*[ends-with(name(), 'ID')]",
    "test": "not(@schemeAgencyName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-103",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-103] - schemeDataURI should not be present",
    "context": "//ram:*[ends-with(name(), 'ID')]",
    "test": "not(@schemeDataURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-104",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-104] - schemeURI should not be present",
    "context": "//ram:*[ends-with(name(), 'ID')]",
    "test": "not(@schemeURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-008",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-008] - name should not be present",
    "context": "//ram:TypeCode",
    "test": "not(@name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-009",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-009] - listURI should not be present",
    "context": "//ram:TypeCode",
    "test": "not(@listURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-010",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-010] - listID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode",
    "test": "not(@listID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-011",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-011] - listAgencyID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode",
    "test": "not(@listAgencyID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-012",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-012] - listVersionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode",
    "test": "not(@listVersionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-045",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-045] - @listID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode",
    "test": "not(@listID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-046",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-046] - @listAgencyID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode",
    "test": "not(@listAgencyID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-047",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-047] - @listVersionID should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode",
    "test": "not(@listVersionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-048",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-048] - @listURI should not be present",
    "context": "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode",
    "test": "not(@listURI)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-015",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-015] - URIID should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:URIID) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='916')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-016",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-016] - StatusCode should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:StatusCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-017",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-017] - CopyIndicator should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:CopyIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-018",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-018] - TypeCode should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:TypeCode) or (self::ram:AdditionalReferencedDocument) and (ram:TypeCode='50' or ram:TypeCode='130' or ram:TypeCode='916')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-019",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-019] - GlobalID should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:GlobalID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-020",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-020] - RevisionID should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:RevisionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-021",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-021] - Name should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:Name) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='916')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-022",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-022] - AttachmentBinaryObject should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:AttachmentBinaryObject) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='916')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-023",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-023] - Information should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:Information)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-024",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-024] - ReferenceTypeCode should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:ReferenceTypeCode) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='130')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-025",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-025] - SectionName should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:SectionName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-026",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-026] - PreviousRevisionID should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:PreviousRevisionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-027",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-027] - FormattedIssueDateTime should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:FormattedIssueDateTime) or self::ram:InvoiceReferencedDocument",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-028",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-028] - EffectiveSpecifiedPeriod should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:EffectiveSpecifiedPeriod)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-029",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-029] - IssuerTradeParty should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:IssuerTradeParty)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-030",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-030] - AttachedSpecifiedBinaryFile should not be present",
    "context": "//ram:*[ends-with(name(), 'ReferencedDocument')]",
    "test": "not(ram:AttachedSpecifiedBinaryFile)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-031",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-031] - currencyID should not be present",
    "context": "//ram:*[ends-with(name(), 'Amount') and not (self::ram:TaxTotalAmount)]",
    "test": "not(@currencyID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-032",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-032] - currencyCodeListVersionID should not be present",
    "context": "//ram:*[ends-with(name(), 'Amount') and not (self::ram:TaxTotalAmount)]",
    "test": "not(@currencyCodeListVersionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-033",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-033] - unitCode should not be present",
    "context": "//ram:*[ends-with(name(), 'Quantity')]",
    "test": "not(@unitCode) or (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-034",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-034] - unitCodeListID should not be present",
    "context": "//ram:*[ends-with(name(), 'Quantity')]",
    "test": "not(@unitCodeListID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-035",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-035] - unitCodeListAgencyID should not be present",
    "context": "//ram:*[ends-with(name(), 'Quantity')]",
    "test": "not(@unitCodeListAgencyID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-036",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-036] - unitCodeListAgencyName should not be present",
    "context": "//ram:*[ends-with(name(), 'Quantity')]",
    "test": "not(@unitCodeListAgencyName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-037",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-037] - TypeCode shall be 'VAT'",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:TypeCode) or (ram:TypeCode = 'VAT')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-038",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-038] - CalculatedRate should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:CalculatedRate)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-039",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-039] - CalculationSequenceNumeric should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:CalculationSequenceNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-040",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-040] - BasisQuantity should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:BasisQuantity)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-041",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-041] - BasisAmount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:BasisAmount) or (ancestor::ram:ApplicableHeaderTradeSettlement)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-042",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-042] - UnitBasisAmount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:UnitBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-043",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-043] - LineTotalBasisAmount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:LineTotalBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-044",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-044] - AllowanceChargeBasisAmount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:AllowanceChargeBasisAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-049",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-049] - CurrencyCode should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:CurrencyCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-050",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-050] - Jurisdiction should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:Jurisdiction)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-051",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-051] - CustomsDutyIndicator should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:CustomsDutyIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-052",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-052] - ExemptionReasonCode should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:ExemptionReasonCode) or self::ram:ApplicableTradeTax",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-098",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-098] - ExemptionReason should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:ExemptionReason) or self::ram:ApplicableTradeTax",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-053",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-053] - TaxBasisAllowanceRate should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:TaxBasisAllowanceRate)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-054",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-054] - TaxPointDate should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:TaxPointDate)  or (ancestor::ram:ApplicableHeaderTradeSettlement)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-055",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-055] - Type should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:Type)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-056",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-056] - InformationAmount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:InformationAmount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-057",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-057] - CategoryName should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:CategoryName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-058",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-058] - DueDateTypeCode should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:DueDateTypeCode) or (ancestor::ram:ApplicableHeaderTradeSettlement)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-059",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-059] - @format should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:RateApplicablePercent/@format)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-060",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-060] - SpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:SpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-061",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-061] - ServiceSupplyTradeCountry should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:ServiceSupplyTradeCountry)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-062",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-062] - BuyerRepayableTaxSpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:BuyerRepayableTaxSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-063",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-063] - SellerPayableTaxSpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:SellerPayableTaxSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-064",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-064] - SellerRefundableTaxSpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:SellerRefundableTaxSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-065",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-065] - BuyerDeductibleTaxSpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:BuyerDeductibleTaxSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-066",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-066] - BuyerNonDeductibleTaxSpecifiedTradeAccountingAccount should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:BuyerNonDeductibleTaxSpecifiedTradeAccountingAccount)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-067",
    "syntax": "CII",
    "source": "en16931",
    "flag": "warning",
    "text": "[CII-DT-067] - PlaceApplicableTradeLocation should not be present",
    "context": "//ram:*[ends-with(name(), 'TradeTax')]",
    "test": "not(ram:PlaceApplicableTradeLocation)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-068",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-068] - DateTime shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:StartDateTime/udt:DateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-069",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-069] - DurationMeasure shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:DurationMeasure)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-070",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-070] - InclusiveIndicator shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:InclusiveIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-071",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-071] - Description shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:Description)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-072",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-072] - DateTime shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:EndDateTime/udt:DateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-073",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-073] - CompleteDateTime shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:CompleteDateTime)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-074",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-074] - OpenIndicator shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:OpenIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-075",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-075] - SeasonCode shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:SeasonCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-076",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-076] - ID shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-077",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-077] - Name shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:Name)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-078",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-078] - SequenceNumeric shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:SequenceNumeric)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-079",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-079] - StartDateFlexibilityCode shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:StartDateFlexibilityCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-080",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-080] - ContinuousIndicator shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:ContinuousIndicator)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-081",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-081] - PurposeCode shall not be used.",
    "context": "//ram:BillingSpecifiedPeriod",
    "test": "not(ram:PurposeCode)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-082",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-082] - ID shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:ID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-083",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-083] - PostOfficeBox shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:PostOfficeBox)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-084",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-084] - BuildingName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:BuildingName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-086",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-086] - LineFour shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:LineFour)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-087",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-087] - LineFive shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:LineFive)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-088",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-088] - StreetName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:StreetName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-089",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-089] - CitySubDivisionName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:CitySubDivisionName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-090",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-090] - CountryName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:CountryName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-091",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-091] - CountrySubDivisionID shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:CountrySubDivisionID)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-092",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-092] - AttentionOf shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:AttentionOf)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-093",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-093] - CareOf shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:CareOf)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-094",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-094] - BuildingNumber shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:BuildingNumber)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-095",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-095] - DepartmentName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:DepartmentName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-096",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-096] - AdditionalStreetName shall not be used.",
    "context": "//ram:PostalTradeAddress",
    "test": "not(ram:AdditionalStreetName)",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "CII-DT-097",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[CII-DT-097] - Date time string with format attribute 102 shall be YYYYMMDD.",
    "context": "//udt:DateTimeString[@format = '102']",
    "test": "matches(.,'^\\s*(\\d{4})(1[0-2]|0[1-9]){1}(3[01]|[12][0-9]|0[1-9]){1}\\s*$')",
    "phases": [
      "syntax_phase"
    ]
  },
  {
    "id": "BR-CL-01",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.",
    "context": "rsm:ExchangedDocument/ram:TypeCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 83 84 102 130 202 203 204 211 218 219 261 262 295 296 308 325 326 331 380 381 382 383 384 385 386 387 388 389 390 393 394 395 396 420 456 457 458 471 472 473 500 501 502 503 527 532 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-03",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3",
    "context": "ram:TaxTotalAmount[@currencyID]",
    "test": "((not(contains(normalize-space(@currencyID), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(@currencyID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-04",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3",
    "context": "ram:InvoiceCurrencyCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-05",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3",
    "context": "ram:TaxCurrencyCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-06",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2475.",
    "context": "ram:DueDateTypeCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 5 29 72 ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-07",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-07]-Object identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153.",
    "context": "ram:ReferenceTypeCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AAA AAB AAC AAD AAE AAF AAG AAH AAI AAJ AAK AAL AAM AAN AAO AAP AAQ AAR AAS AAT AAU AAV AAW AAX AAY AAZ ABA ABB ABC ABD ABE ABF ABG ABH ABI ABJ ABK ABL ABM ABN ABO ABP ABQ ABR ABS ABT ABU ABV ABW ABX ABY ABZ AC ACA ACB ACC ACD ACE ACF ACG ACH ACI ACJ ACK ACL ACN ACO ACP ACQ ACR ACT ACU ACV ACW ACX ACY ACZ ADA ADB ADC ADD ADE ADF ADG ADI ADJ ADK ADL ADM ADN ADO ADP ADQ ADT ADU ADV ADW ADX ADY ADZ AE AEA AEB AEC AED AEE AEF AEG AEH AEI AEJ AEK AEL AEM AEN AEO AEP AEQ AER AES AET AEU AEV AEW AEX AEY AEZ AF AFA AFB AFC AFD AFE AFF AFG AFH AFI AFJ AFK AFL AFM AFN AFO AFP AFQ AFR AFS AFT AFU AFV AFW AFX AFY AFZ AGA AGB AGC AGD AGE AGF AGG AGH AGI AGJ AGK AGL AGM AGN AGO AGP AGQ AGR AGS AGT AGU AGV AGW AGX AGY AGZ AHA AHB AHC AHD AHE AHF AHG AHH AHI AHJ AHK AHL AHM AHN AHO AHP AHQ AHR AHS AHT AHU AHV AHX AHY AHZ AIA AIB AIC AID AIE AIF AIG AIH AII AIJ AIK AIL AIM AIN AIO AIP AIQ AIR AIS AIT AIU AIV AIW AIX AIY AIZ AJA AJB AJC AJD AJE AJF AJG AJH AJI AJJ AJK AJL AJM AJN AJO AJP AJQ AJR AJS AJT AJU AJV AJW AJX AJY AJZ AKA AKB AKC AKD AKE AKF AKG AKH AKI AKJ AKK AKL AKM AKN AKO AKP AKQ AKR AKS AKT AKU AKV AKW AKX AKY AKZ ALA ALB ALC ALD ALE ALF ALG ALH ALI ALJ ALK ALL ALM ALN ALO ALP ALQ ALR ALS ALT ALU ALV ALW ALX ALY ALZ AMA AMB AMC AMD AME AMF AMG AMH AMI AMJ AMK AML AMM AMN AMO AMP AMQ AMR AMS AMT AMU AMV AMW AMX AMY AMZ ANA ANB ANC AND ANE ANF ANG ANH ANI ANJ ANK ANL ANM ANN ANO ANP ANQ ANR ANS ANT ANU ANV ANW ANX ANY AOA AOD AOE AOF AOG AOH AOI AOJ AOK AOL AOM AON AOO AOP AOQ AOR AOS AOT AOU AOV AOW AOX AOY AOZ AP APA APB APC APD APE APF APG APH API APJ APK APL APM APN APO APP APQ APR APS APT APU APV APW APX APY APZ AQA AQB AQC AQD AQE AQF AQG AQH AQI AQJ AQK AQL AQM AQN AQO AQP AQQ AQR AQS AQT AQU AQV AQW AQX AQY AQZ ARA ARB ARC ARD ARE ARF ARG ARH ARI ARJ ARK ARL ARM ARN ARO ARP ARQ ARR ARS ART ARU ARV ARW ARX ARY ARZ ASA ASB ASC ASD ASE ASF ASG ASH ASI ASJ ASK ASL ASM ASN ASO ASP ASQ ASR ASS AST ASU ASV ASW ASX ASY ASZ ATA ATB ATC ATD ATE ATF ATG ATH ATI ATJ ATK ATL ATM ATN ATO ATP ATQ ATR ATS ATT ATU ATV ATW ATX ATY ATZ AU AUA AUB AUC AUD AUE AUF AUG AUH AUI AUJ AUK AUL AUM AUN AUO AUP AUQ AUR AUS AUT AUU AUV AUW AUX AUY AUZ AV AVA AVB AVC AVD AVE AVF AVG AVH AVI AVJ AVK AVL AVM AVN AVO AVP AVQ AVR AVS AVT AVU AVV AVW AVX AVY AVZ AWA AWB AWC AWD AWE AWF AWG AWH AWI AWJ AWK AWL AWM AWN AWO AWP AWQ AWR AWS AWT AWU AWV AWW AWX AWY AWZ AXA AXB AXC AXD AXE AXF AXG AXH AXI AXJ AXK AXL AXM AXN AXO AXP AXQ AXR AXS AXU BA BC BD BE BH BM BN BO BR BT BTP BW CAS CAT CAU CAV CAW CAX CAY CAZ CBA CBB CD CEC CED CFE CFF CFO CG CH CK CKN CM CMR CN CNO COF CP CR CRN CS CST CT CU CV CW CZ DA DAN DB DI DL DM DQ DR EA EB ED EE EEP EI EN EQ ER ERN ET EX FC FF FI FLW FN FO FS FT FV FX GA GC GD GDN GN HS HWB IA IB ICA ICE ICO II IL INB INN INO IP IS IT IV JB JE LA LAN LAR LB LC LI LO LRC LS MA MB MF MG MH MR MRN MS MSS MWB NA NF OH OI ON OP OR PB PC PD PE PF PI PK PL POR PP PQ PR PS PW PY RA RC RCN RE REN RF RR RT SA SB SD SE SEA SF SH SI SM SN SP SQ SRN SS STA SW SZ TB TCR TE TF TI TIN TL TN TP UAR UC UCN UN UO URI VA VC VGR VM VN VON VOR VP VR VS VT VV WE WM WN WR WS WY XA XC XP ZZZ ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-08",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-08]-Subject Code MUST be coded using a restriction of UNTDID 4451.",
    "context": "ram:SubjectCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AAA AAB AAC AAD AAE AAF AAG AAI AAJ AAK AAL AAM AAN AAO AAP AAQ AAR AAS AAT AAU AAV AAW AAX AAY AAZ ABA ABB ABC ABD ABE ABF ABG ABH ABI ABJ ABK ABL ABM ABN ABO ABP ABQ ABR ABS ABT ABU ABV ABW ABX ABZ ACA ACB ACC ACD ACE ACF ACG ACH ACI ACJ ACK ACL ACM ACN ACO ACP ACQ ACR ACS ACT ACU ACV ACW ACX ACY ACZ ADA ADB ADC ADD ADE ADF ADG ADH ADI ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADS ADT ADU ADV ADW ADX ADY ADZ AEA AEB AEC AED AEE AEF AEG AEH AEI AEJ AEK AEL AEM AEN AEO AEP AEQ AER AES AET AEU AEV AEW AEX AEY AEZ AFA AFB AFC AFD AFE AFF AFG AFH AFI AFJ AFK AFL AFM AFN AFO AFP AFQ AFR AFS AFT AFU AFV AFW AFX AFY AFZ AGA AGB AGC AGD AGE AGF AGG AGH AGI AGJ AGK AGL AGM AGN AGO AGP AGQ AGR AGS AGT AGU AGV AGW AGX AGY AGZ AHA AHB AHC AHD AHE AHF AHG AHH AHI AHJ AHK AHL AHM AHN AHO AHP AHQ AHR AHS AHT AHU AHV AHW AHX AHY AHZ AIA AIB AIC AID AIE AIF AIG AIH AII AIJ AIK AIL AIM AIN AIO AIP AIQ AIR AIS AIT AIU AIV AIW AIX AIY AIZ AJA AJB ALC ALD ALE ALF ALG ALH ALI ALJ ALK ALL ALM ALN ALO ALP ALQ ARR ARS AUT AUU AUV AUW AUX AUY AUZ AVA AVB AVC AVD AVE AVF BAG BAH BAI BAJ BAK BAL BAM BAN BAO BAP BAQ BAR BAS BAT BAU BAV BAW BAX BAY BAZ BBA BBB BLC BLD BLE BLF BLG BLH BLI BLJ BLK BLL BLM BLN BLO BLP BLQ BLR BLS BLT BLU BLV BLW BLX BLY BLZ BMA BMB BMC BMD BME BMF BMG BMH CCI CCJ CCK CCL CCM CCN CCO CEX CHG CIP CLP CLR COI CUR CUS DAR DCL DEL DIN DOC DUT EUR FBC GBL GEN GS7 HAN HAZ ICN IIN IMI IND INS INV IRP ITR ITS LAN LIN LOI MCO MDH MKS ORI OSI PAC PAI PAY PKG PKT PMD PMT PRD PRF PRI PUR QIN QQD QUT RAH REG RET REV RQR SAF SIC SIN SLR SPA SPG SPH SPP SPT SRN SSR SUR TCA TDT TRA TRR TXD WHI ZZZ ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-10",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-10]-Any identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.",
    "context": "//ram:GlobalID[@schemeID][not(ancestor::ram:SpecifiedTradeProduct) and not(ancestor::ram:ShipToTradeParty)]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-11",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-11]-Any registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.",
    "context": "ram:ID[@schemeID][not(ancestor::ram:SpecifiedTaxRegistration)]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-13",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-13]-Item classification identifier identification scheme identifier MUST be coded using one of the UNTDID 7143 list.",
    "context": "ram:ClassCode[@listID]",
    "test": "((not(contains(normalize-space(@listID), ' ')) and contains(' AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW AX AY AZ BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ CC CG CL CR CV DR DW EC EF EMD EN FS GB GN GMN GS HS IB IN IS IT IZ MA MF MN MP NB ON PD PL PO PPI PV QS RC RN RU RY SA SG SK SN SRS SRT SRU SRV SRW SRX SRY SRZ SS SSA SSB SSC SSD SSE SSF SSG SSH SSI SSJ SSK SSL SSM SSN SSO SSP SSQ SSR SSS SST SSU SSV SSW SSX SSY SSZ ST STA STB STC STD STE STF STG STH STI STJ STK STL STM STN STO STP STQ STR STS STT STU STV STW STX STY STZ SUA SUB SUC SUD SUE SUF SUG SUH SUI SUJ SUK SUL SUM TG TSN TSO TSP TSQ TSR TSS TST TSU UA UP VN VP VS VX ZZZ ', concat(' ', normalize-space(@listID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-14",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1",
    "context": "ram:CountryID",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BL BJ BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-15",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-15]-Country codes in an invoice MUST be coded using ISO code list 3166-1",
    "context": "ram:OriginTradeCountry/ram:ID",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BL BJ BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-16",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-16]-Payment means in an invoice MUST be coded using UNTDID 4461 code list",
    "context": "ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 74 75 76 77 78 91 92 93 94 95 96 97 98 ZZZ ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-17",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-17]-Invoice tax categories MUST be coded using UNCL 5305 code list",
    "context": "ram:CategoryTradeTax/ram:CategoryCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AE L M E S Z G O K B ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-18",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-18]-Invoice tax categories MUST be coded using UNCL 5305 code list",
    "context": "ram:ApplicableTradeTax/ram:CategoryCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AE L M E S Z G O K B ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-19",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-19]-Coded allowance reasons MUST belong to the UNCL 5189 code list",
    "context": "ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator = false()]/ram:ReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 41 42 60 62 63 64 65 66 67 68 70 71 88 95 100 102 103 104 105 ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-20",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-20]-Coded charge reasons MUST belong to the UNCL 7161 code list",
    "context": "ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator = true()]/ram:ReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AA AAA AAC AAD AAE AAF AAH AAI AAS AAT AAV AAY AAZ ABA ABB ABC ABD ABF ABK ABL ABN ABR ABS ABT ABU ACF ACG ACH ACI ACJ ACK ACL ACM ACS ADC ADE ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADT ADW ADY ADZ AEA AEB AEC AED AEF AEH AEI AEJ AEK AEL AEM AEN AEO AEP AES AET AEU AEV AEW AEX AEY AEZ AJ AU CA CAB CAD CAE CAF CAI CAJ CAK CAL CAM CAN CAO CAP CAQ CAR CAS CAT CAU CAV CAW CAX CAY CAZ CD CG CS CT DAB DAD DAC DAF DAG DAH DAI DAJ DAK DAL DAM DAN DAO DAP DAQ DL EG EP ER FAA FAB FAC FC FH FI GAA HAA HD HH IAA IAB ID IF IR IS KO L1 LA LAA LAB LF MAE MI ML NAA OA PA PAA PC PL PRV RAB RAC RAD RAF RE RF RH RV SA SAA SAD SAE SAI SG SH SM SU TAB TAC TT TV V1 V2 WH XAA YY ZZZ ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-21",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-21]-Item standard identifier scheme identifier MUST belong to the ISO 6523 ICD\n      code list",
    "context": "ram:SpecifiedTradeProduct/ram:GlobalID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-22",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-22]-Tax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list",
    "context": "ram:ExemptionReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' VATEX-EU-79-C VATEX-EU-132 VATEX-EU-132-1A VATEX-EU-132-1B VATEX-EU-132-1C VATEX-EU-132-1D VATEX-EU-132-1E VATEX-EU-132-1F VATEX-EU-132-1G VATEX-EU-132-1H VATEX-EU-132-1I VATEX-EU-132-1J VATEX-EU-132-1K VATEX-EU-132-1L VATEX-EU-132-1M VATEX-EU-132-1N VATEX-EU-132-1O VATEX-EU-132-1P VATEX-EU-132-1Q VATEX-EU-135-1 VATEX-EU-143 VATEX-EU-143-1A VATEX-EU-143-1B VATEX-EU-143-1C VATEX-EU-143-1D VATEX-EU-143-1E VATEX-EU-143-1F VATEX-EU-143-1FA VATEX-EU-143-1G VATEX-EU-143-1H VATEX-EU-143-1I VATEX-EU-143-1J VATEX-EU-143-1K VATEX-EU-143-1L VATEX-EU-144 VATEX-EU-146-1E VATEX-EU-159 VATEX-EU-309 VATEX-EU-148 VATEX-EU-148-A VATEX-EU-148-B VATEX-EU-148-C VATEX-EU-148-D VATEX-EU-148-E VATEX-EU-148-F VATEX-EU-148-G VATEX-EU-151 VATEX-EU-151-1A VATEX-EU-151-1AA VATEX-EU-151-1B VATEX-EU-151-1C VATEX-EU-151-1D VATEX-EU-151-1E VATEX-EU-G VATEX-EU-O VATEX-EU-IC VATEX-EU-AE VATEX-EU-D VATEX-EU-F VATEX-EU-I VATEX-EU-J VATEX-FR-FRANCHISE VATEX-FR-CNWVAT VATEX-EU-153 VATEX-FR-CGI261-1 VATEX-FR-CGI261-2 VATEX-FR-CGI261-3 VATEX-FR-CGI261-4 VATEX-FR-CGI261-5 VATEX-FR-CGI261-7 VATEX-FR-CGI261-8 VATEX-FR-CGI261A VATEX-FR-CGI261B VATEX-FR-CGI261C-1 VATEX-FR-CGI261C-2 VATEX-FR-CGI261C-3 VATEX-FR-CGI261D-1 VATEX-FR-CGI261D-1BIS VATEX-FR-CGI261D-2 VATEX-FR-CGI261D-3 VATEX-FR-CGI261D-4 VATEX-FR-CGI261E-1 VATEX-FR-CGI261E-2 VATEX-FR-CGI277A VATEX-FR-CGI275 VATEX-FR-298SEXDECIESA VATEX-FR-CGI295 VATEX-FR-AE VATEX-ES-N1 VATEX-ES-N2 VATEX-ES-IVA20 VATEX-ES-IVA21 VATEX-ES-IVA22 VATEX-ES-IVA23/24 VATEX-ES-IVA25 VATEX-ES-IVA140BIS VATEX-ES-OTROS VATEX-ES-IGIC1TR VATEX-ES-IGIC11 VATEX-ES-IGIC12 VATEX-ES-IGIC13 VATEX-ES-IGIC25 VATEX-ES-IGIC47 VATEX-ES-IGIC90 VATEX-ES-IPSI7 VATEX-ES-IPSI8 ', concat(' ', normalize-space(upper-case(.)), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-23",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-23]-Unit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension",
    "context": "ram:BasisQuantity[@unitCode] | ram:BilledQuantity[@unitCode]",
    "test": "((not(contains(normalize-space(@unitCode), ' ')) and contains(' 10 11 13 14 15 20 21 22 23 24 25 27 28 33 34 35 37 38 40 41 56 57 58 59 60 61 74 77 80 81 85 87 89 91 1I 2A 2B 2C 2G 2H 2I 2J 2K 2L 2M 2N 2P 2Q 2R 2U 2X 2Y 2Z 3B 3C 4C 4G 4H 4K 4L 4M 4N 4O 4P 4Q 4R 4T 4U 4W 4X 5A 5B 5E 5J A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A2 A20 A21 A22 A23 A24 A26 A27 A28 A29 A3 A30 A31 A32 A33 A34 A35 A36 A37 A38 A39 A4 A40 A41 A42 A43 A44 A45 A47 A48 A49 A5 A53 A54 A55 A56 A59 A6 A68 A69 A7 A70 A71 A73 A74 A75 A76 A8 A84 A85 A86 A87 A88 A89 A9 A90 A91 A93 A94 A95 A96 A97 A98 A99 AA AB ACR ACT AD AE AH AI AK AL AMH AMP ANN APZ AQ AS ASM ASU ATM AWG AY AZ B1 B10 B11 B12 B13 B14 B15 B16 B17 B18 B19 B20 B21 B22 B23 B24 B25 B26 B27 B28 B29 B3 B30 B31 B32 B33 B34 B35 B4 B41 B42 B43 B44 B45 B46 B47 B48 B49 B50 B52 B53 B54 B55 B56 B57 B58 B59 B60 B61 B62 B63 B64 B66 B67 B68 B69 B7 B70 B71 B72 B73 B74 B75 B76 B77 B78 B79 B8 B80 B81 B82 B83 B84 B85 B86 B87 B88 B89 B90 B91 B92 B93 B94 B95 B96 B97 B98 B99 BAR BB BFT BHP BIL BLD BLL BP BPM BQL BTU BUA BUI C0 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C3 C30 C31 C32 C33 C34 C35 C36 C37 C38 C39 C40 C41 C42 C43 C44 C45 C46 C47 C48 C49 C50 C51 C52 C53 C54 C55 C56 C57 C58 C59 C60 C61 C62 C63 C64 C65 C66 C67 C68 C69 C7 C70 C71 C72 C73 C74 C75 C76 C78 C79 C8 C80 C81 C82 C83 C84 C85 C86 C87 C88 C89 C9 C90 C91 C92 C93 C94 C95 C96 C97 C99 CCT CDL CEL CEN CG CGM CKG CLF CLT CMK CMQ CMT CNP CNT COU CTG CTM CTN CUR CWA CWI D03 D04 D1 D10 D11 D12 D13 D15 D16 D17 D18 D19 D2 D20 D21 D22 D23 D24 D25 D26 D27 D29 D30 D31 D32 D33 D34 D36 D41 D42 D43 D44 D45 D46 D47 D48 D49 D5 D50 D51 D52 D53 D54 D55 D56 D57 D58 D59 D6 D60 D61 D62 D63 D65 D68 D69 D73 D74 D77 D78 D80 D81 D82 D83 D85 D86 D87 D88 D89 D91 D93 D94 D95 DAA DAD DAY DB DBM DBW DD DEC DG DJ DLT DMA DMK DMO DMQ DMT DN DPC DPR DPT DRA DRI DRL DT DTN DWT DZN DZP E01 E07 E08 E09 E10 E12 E14 E15 E16 E17 E18 E19 E20 E21 E22 E23 E25 E27 E28 E30 E31 E32 E33 E34 E35 E36 E37 E38 E39 E4 E40 E41 E42 E43 E44 E45 E46 E47 E48 E49 E50 E51 E52 E53 E54 E55 E56 E57 E58 E59 E60 E61 E62 E63 E64 E65 E66 E67 E68 E69 E70 E71 E72 E73 E74 E75 E76 E77 E78 E79 E80 E81 E82 E83 E84 E85 E86 E87 E88 E89 E90 E91 E92 E93 E94 E95 E96 E97 E98 E99 EA EB EQ F01 F02 F03 F04 F05 F06 F07 F08 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31 F32 F33 F34 F35 F36 F37 F38 F39 F40 F41 F42 F43 F44 F45 F46 F47 F48 F49 F50 F51 F52 F53 F54 F55 F56 F57 F58 F59 F60 F61 F62 F63 F64 F65 F66 F67 F68 F69 F70 F71 F72 F73 F74 F75 F76 F77 F78 F79 F80 F81 F82 F83 F84 F85 F86 F87 F88 F89 F90 F91 F92 F93 F94 F95 F96 F97 F98 F99 FAH FAR FBM FC FF FH FIT FL FNU FOT FP FR FS FTK FTQ G01 G04 G05 G06 G08 G09 G10 G11 G12 G13 G14 G15 G16 G17 G18 G19 G2 G20 G21 G23 G24 G25 G26 G27 G28 G29 G3 G30 G31 G32 G33 G34 G35 G36 G37 G38 G39 G40 G41 G42 G43 G44 G45 G46 G47 G48 G49 G50 G51 G52 G53 G54 G55 G56 G57 G58 G59 G60 G61 G62 G63 G64 G65 G66 G67 G68 G69 G70 G71 G72 G73 G74 G75 G76 G77 G78 G79 G80 G81 G82 G83 G84 G85 G86 G87 G88 G89 G90 G91 G92 G93 G94 G95 G96 G97 G98 G99 GB GBQ GDW GE GF GFI GGR GIA GIC GII GIP GJ GL GLD GLI GLL GM GO GP GQ GRM GRN GRO GV GWH H03 H04 H05 H06 H07 H08 H09 H10 H11 H12 H13 H14 H15 H16 H18 H19 H20 H21 H22 H23 H24 H25 H26 H27 H28 H29 H30 H31 H32 H33 H34 H35 H36 H37 H38 H39 H40 H41 H42 H43 H44 H45 H46 H47 H48 H49 H50 H51 H52 H53 H54 H55 H56 H57 H58 H59 H60 H61 H62 H63 H64 H65 H66 H67 H68 H69 H70 H71 H72 H73 H74 H75 H76 H77 H79 H80 H81 H82 H83 H84 H85 H87 H88 H89 H90 H91 H92 H93 H94 H95 H96 H98 H99 HA HAD HBA HBX HC HDW HEA HGM HH HIU HKM HLT HM HMO HMQ HMT HPA HTZ HUR HWE IA IE INH INK INQ ISD IU IUG IV J10 J12 J13 J14 J15 J16 J17 J18 J19 J2 J20 J21 J22 J23 J24 J25 J26 J27 J28 J29 J30 J31 J32 J33 J34 J35 J36 J38 J39 J40 J41 J42 J43 J44 J45 J46 J47 J48 J49 J50 J51 J52 J53 J54 J55 J56 J57 J58 J59 J60 J61 J62 J63 J64 J65 J66 J67 J68 J69 J70 J71 J72 J73 J74 J75 J76 J78 J79 J81 J82 J83 J84 J85 J87 J90 J91 J92 J93 J95 J96 J97 J98 J99 JE JK JM JNT JOU JPS JWL K1 K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 K2 K20 K21 K22 K23 K26 K27 K28 K3 K30 K31 K32 K33 K34 K35 K36 K37 K38 K39 K40 K41 K42 K43 K45 K46 K47 K48 K49 K50 K51 K52 K53 K54 K55 K58 K59 K6 K60 K61 K62 K63 K64 K65 K66 K67 K68 K69 K70 K71 K73 K74 K75 K76 K77 K78 K79 K80 K81 K82 K83 K84 K85 K86 K87 K88 K89 K90 K91 K92 K93 K94 K95 K96 K97 K98 K99 KA KAT KB KBA KCC KDW KEL KGM KGS KHY KHZ KI KIC KIP KJ KJO KL KLK KLX KMA KMH KMK KMQ KMT KNI KNM KNS KNT KO KPA KPH KPO KPP KR KSD KSH KT KTN KUR KVA KVR KVT KW KWH KWN KWO KWS KWT KWY KX L10 L11 L12 L13 L14 L15 L16 L17 L18 L19 L2 L20 L21 L23 L24 L25 L26 L27 L28 L29 L30 L31 L32 L33 L34 L35 L36 L37 L38 L39 L40 L41 L42 L43 L44 L45 L46 L47 L48 L49 L50 L51 L52 L53 L54 L55 L56 L57 L58 L59 L60 L63 L64 L65 L66 L67 L68 L69 L70 L71 L72 L73 L74 L75 L76 L77 L78 L79 L80 L81 L82 L83 L84 L85 L86 L87 L88 L89 L90 L91 L92 L93 L94 L95 L96 L98 L99 LA LAC LBR LBT LD LEF LF LH LK LM LN LO LP LPA LR LS LTN LTR LUB LUM LUX LY M1 M10 M11 M12 M13 M14 M15 M16 M17 M18 M19 M20 M21 M22 M23 M24 M25 M26 M27 M29 M30 M31 M32 M33 M34 M35 M36 M37 M38 M39 M4 M40 M41 M42 M43 M44 M45 M46 M47 M48 M49 M5 M50 M51 M52 M53 M55 M56 M57 M58 M59 M60 M61 M62 M63 M64 M65 M66 M67 M68 M69 M7 M70 M71 M72 M73 M74 M75 M76 M77 M78 M79 M80 M81 M82 M83 M84 M85 M86 M87 M88 M89 M9 M90 M91 M92 M93 M94 M95 M96 M97 M98 M99 MAH MAL MAM MAR MAW MBE MBF MBR MC MCU MD MGM MHZ MIK MIL MIN MIO MIU MKD MKM MKW MLD MLT MMK MMQ MMT MND MNJ MON MPA MQD MQH MQM MQS MQW MRD MRM MRW MSK MTK MTQ MTR MTS MTZ MVA MWH N1 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N3 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 NA NAR NCL NEW NF NIL NIU NL NM3 NMI NMP NPT NT NTU NU NX OA ODE ODG ODK ODM OHM ON ONZ OPM OT OZA OZI P1 P10 P11 P12 P13 P14 P15 P16 P17 P18 P19 P2 P20 P21 P22 P23 P24 P25 P26 P27 P28 P29 P30 P31 P32 P33 P34 P35 P36 P37 P38 P39 P40 P41 P42 P43 P44 P45 P46 P47 P48 P49 P5 P50 P51 P52 P53 P54 P55 P56 P57 P58 P59 P60 P61 P62 P63 P64 P65 P66 P67 P68 P69 P70 P71 P72 P73 P74 P75 P76 P77 P78 P79 P80 P81 P82 P83 P84 P85 P86 P87 P88 P89 P90 P91 P92 P93 P94 P95 P96 P97 P98 P99 PAL PD PFL PGL PI PLA PO PQ PR PS PTD PTI PTL PTN Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21 Q22 Q23 Q24 Q25 Q26 Q27 Q28 Q29 Q3 Q30 Q31 Q32 Q33 Q34 Q35 Q36 Q37 Q38 Q39 Q40 Q41 Q42 QA QAN QB QR QTD QTI QTL QTR R1 R9 RH RM ROM RP RPM RPS RT S3 S4 SAN SCO SCR SEC SET SG SIE SM3 SMI SQ SQR SR STC STI STK STL STN STW SW SX SYR T0 T3 TAH TAN TI TIC TIP TKM TMS TNE TP TPI TPR TQD TRL TST TTS U1 U2 UB UC VA VLT VP W2 WA WB WCD WE WEB WEE WG WHR WM WSD WTT X1 YDK YDQ YRD Z11 Z9 ZP ZZ X1A X1B X1D X1F X1G X1W X2C X3A X3H X43 X44 X4A X4B X4C X4D X4F X4G X4H X5H X5L X5M X6H X6P X7A X7B X8A X8B X8C XAA XAB XAC XAD XAE XAF XAG XAH XAI XAJ XAL XAM XAP XAT XAV XB4 XBA XBB XBC XBD XBE XBF XBG XBH XBI XBJ XBK XBL XBM XBN XBO XBP XBQ XBR XBS XBT XBU XBV XBW XBX XBY XBZ XCA XCB XCC XCD XCE XCF XCG XCH XCI XCJ XCK XCL XCM XCN XCO XCP XCQ XCR XCS XCT XCU XCV XCW XCX XCY XCZ XDA XDB XDC XDG XDH XDI XDJ XDK XDL XDM XDN XDP XDR XDS XDT XDU XDV XDW XDX XDY XEC XED XEE XEF XEG XEH XEI XEN XFB XFC XFD XFE XFI XFL XFO XFP XFR XFT XFW XFX XGB XGI XGL XGR XGU XGY XGZ XHA XHB XHC XHG XHN XHR XIA XIB XIC XID XIE XIF XIG XIH XIK XIL XIN XIZ XJB XJC XJG XJR XJT XJY XKG XKI XLE XLG XLT XLU XLV XLZ XMA XMB XMC XME XMR XMS XMT XMW XMX XNA XNE XNF XNG XNS XNT XNU XNV XO1 XO2 XO3 XO4 XO5 XO6 XO7 XO8 XO9 XOA XOB XOC XOD XOE XOF XOG XOH XOI XOJ XOK XOL XOM XON XOP XOQ XOR XOS XOT XOU XOV XOW XOX XOY XOZ XP1 XP2 XP3 XP4 XPA XPB XPC XPD XPE XPF XPG XPH XPI XPJ XPK XPL XPN XPO XPP XPR XPT XPU XPV XPX XPY XPZ XQA XQB XQC XQD XQF XQG XQH XQJ XQK XQL XQM XQN XQP XQQ XQR XQS XRD XRG XRJ XRK XRL XRO XRT XRZ XSA XSB XSC XSD XSE XSH XSI XSK XSL XSM XSO XSP XSS XST XSU XSV XSW XSX XSY XSZ XT1 XTB XTC XTD XTE XTG XTI XTK XTL XTN XTO XTR XTS XTT XTU XTV XTW XTY XTZ XUC XUN XVA XVG XVI XVK XVL XVN XVO XVP XVQ XVR XVS XVY XWA XWB XWC XWD XWF XWG XWH XWJ XWK XWL XWM XWN XWP XWQ XWR XWS XWT XWU XWV XWW XWX XWY XWZ XXA XXB XXC XXD XXF XXG XXH XXJ XXK XYA XYB XYC XYD XYF XYG XYH XYJ XYK XYL XYM XYN XYP XYQ XYR XYS XYT XYV XYW XYX XYY XYZ XZA XZB XZC XZD XZF XZG XZH XZJ XZK XZL XZM XZN XZP XZQ XZR XZS XZT XZU XZV XZW XZX XZY XZZ ', concat(' ', normalize-space(@unitCode), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-24",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-24]-For Mime code in attribute use MIMEMediaType.",
    "context": "ram:AttachmentBinaryObject[@mimeCode]",
    "test": "((@mimeCode = 'application/pdf' or @mimeCode  = 'image/png' or @mimeCode  = 'image/jpeg' or @mimeCode  = 'text/csv' or @mimeCode  = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode  = 'application/vnd.oasis.opendocument.spreadsheet'))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-25",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-25]-Endpoint identifier scheme identifier MUST belong to the CEF EAS code list",
    "context": "ram:URIUniversalCommunication/ram:URIID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0007 0009 0037 0060 0088 0096 0097 0106 0130 0135 0142 0147 0151 0154 0158 0170 0177 0183 0184 0188 0190 0191 0192 0193 0194 0195 0196 0198 0199 0200 0201 0202 0203 0204 0205 0208 0209 0210 0211 0212 0213 0215 0216 0217 0218 0221 0225 0230 0235 0240 0244 0242 0245 0246 0248 9910 9913 9914 9915 9918 9919 9920 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9957 9959 9960 AN AQ AS AU EM ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-26",
    "syntax": "CII",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-26]-Delivery location identifier scheme identifier MUST belong to the ISO 6523 ICD\n      code list",
    "context": "ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:GlobalID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-52",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-52]-Each Additional supporting document (BG-24) shall contain a Supporting document reference (BT-122).",
    "context": "cac:AdditionalDocumentReference",
    "test": "normalize-space(cbc:ID) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-63",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier.",
    "context": "cac:AccountingCustomerParty/cac:Party/cbc:EndpointID",
    "test": "exists(@schemeID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-11]-The Buyer postal address shall contain a Buyer country code (BT-55).",
    "context": "cac:AccountingCustomerParty/cac:Party/cac:PostalAddress",
    "test": "normalize-space(cac:Country/cbc:IdentificationCode) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-51",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[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.",
    "context": "cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID",
    "test": "string-length(normalize-space(.))\u003c=10",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-57",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-57]-Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).",
    "context": "cac:Delivery/cac:DeliveryLocation/cac:Address",
    "test": "exists(cac:Country/cbc:IdentificationCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-31",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-31]-Each Document level allowance (BG-20) shall have a Document level allowance amount (BT-92).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:Amount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-32",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-32]-Each Document level allowance (BG-20) shall have a Document level allowance VAT category code (BT-95).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-33",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-05]-Document level allowance reason code (BT-98) and Document level allowance reason (BT-97) shall indicate the same type of allowance.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "true()",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-21",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-01]-The allowed maximum number of decimals for the Document level allowance amount (BT-92) is 2.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "string-length(substring-after(cbc:Amount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-02]-The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "string-length(substring-after(cbc:BaseAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-36",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-36]-Each Document level charge (BG-21) shall have a Document level charge amount (BT-99).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:Amount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-37",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-37]-Each Document level charge (BG-21) shall have a Document level charge VAT category code (BT-102).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-38",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-06]-Document level charge reason code (BT-105) and Document level charge reason (BT-104) shall indicate the same type of charge.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "true()",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-22",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-05]-The allowed maximum number of decimals for the Document level charge amount (BT-99) is 2.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "string-length(substring-after(cbc:Amount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-06]-The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.",
    "context": "/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "string-length(substring-after(cbc:BaseAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-12]-An Invoice shall have the Sum of Invoice line net amount (BT-106).",
    "context": "cac:LegalMonetaryTotal",
    "test": "exists(cbc:LineExtensionAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-13]-An Invoice shall have the Invoice total amount without VAT (BT-109).",
    "context": "cac:LegalMonetaryTotal",
    "test": "exists(cbc:TaxExclusiveAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-14]-An Invoice shall have the Invoice total amount with VAT (BT-112).",
    "context": "cac:LegalMonetaryTotal",
    "test": "exists(cbc:TaxInclusiveAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-15]-An Invoice shall have the Amount due for payment (BT-115).",
    "context": "cac:LegalMonetaryTotal",
    "test": "exists(cbc:PayableAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-10]-Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).",
    "context": "cac:LegalMonetaryTotal",
    "test": "(xs:decimal(cbc:LineExtensionAmount) = xs:decimal(round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-11]-Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92).",
    "context": "cac:LegalMonetaryTotal",
    "test": "xs:decimal(cbc:AllowanceTotalAmount) = (round(sum(../cac:AllowanceCharge[cbc:ChargeIndicator=false()]/xs:decimal(cbc:Amount)) * 10 * 10) div 100) or  (not(cbc:AllowanceTotalAmount) and not(../cac:AllowanceCharge[cbc:ChargeIndicator=false()]))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).",
    "context": "cac:LegalMonetaryTotal",
    "test": "xs:decimal(cbc:ChargeTotalAmount) = (round(sum(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]/xs:decimal(cbc:Amount)) * 10 * 10) div 100) or (not(cbc:ChargeTotalAmount) and not(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:LegalMonetaryTotal",
    "test": "((cbc:ChargeTotalAmount) and (cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) + xs:decimal(cbc:ChargeTotalAmount) - xs:decimal(cbc:AllowanceTotalAmount)) * 10 * 10) div 100 ))  or (not(cbc:ChargeTotalAmount) and (cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) - xs:decimal(cbc:AllowanceTotalAmount)) * 10 * 10 ) div 100)) or ((cbc:ChargeTotalAmount) and not(cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = round((xs:decimal(cbc:LineExtensionAmount) + xs:decimal(cbc:ChargeTotalAmount)) * 10 * 10 ) div 100)) or (not(cbc:ChargeTotalAmount) and not(cbc:AllowanceTotalAmount) and (xs:decimal(cbc:TaxExclusiveAmount) = xs:decimal(cbc:LineExtensionAmount)))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).",
    "context": "cac:LegalMonetaryTotal",
    "test": "(exists(cbc:PrepaidAmount) and not(exists(cbc:PayableRoundingAmount)) and (xs:decimal(cbc:PayableAmount) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(exists(cbc:PrepaidAmount)) and not(exists(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount)) or (exists(cbc:PrepaidAmount) and exists(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or  (not(exists(cbc:PrepaidAmount)) and exists(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = xs:decimal(cbc:TaxInclusiveAmount)))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-09]-The allowed maximum number of decimals for the Sum of Invoice line net amount (BT-106) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:LineExtensionAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-10]-The allowed maximum number of decimals for the Sum of allowanced on document level (BT-107) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:AllowanceTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-11]-The allowed maximum number of decimals for the Sum of charges on document level (BT-108) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:ChargeTotalAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-12]-The allowed maximum number of decimals for the Invoice total amount without VAT (BT-109) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:TaxExclusiveAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-14]-The allowed maximum number of decimals for the Invoice total amount with VAT (BT-112) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:TaxInclusiveAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-16]-The allowed maximum number of decimals for the Paid amount (BT-113) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:PrepaidAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-17]-The allowed maximum number of decimals for the Rounding amount (BT-114) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:PayableRoundingAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-18]-The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.",
    "context": "cac:LegalMonetaryTotal",
    "test": "string-length(substring-after(cbc:PayableAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-01]-An Invoice shall have a Specification identifier (BT-24).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cbc:CustomizationID) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-02]-An Invoice shall have an Invoice number (BT-1).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cbc:ID) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-03]-An Invoice shall have an Invoice issue date (BT-2).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cbc:IssueDate) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-04]-An Invoice shall have an Invoice type code (BT-3).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cbc:InvoiceTypeCode) != '' or normalize-space(cbc:CreditNoteTypeCode) !=''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-05]-An Invoice shall have an Invoice currency code (BT-5).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cbc:DocumentCurrencyCode) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-06]-An Invoice shall contain the Seller name (BT-27).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-07]-An Invoice shall contain the Buyer name (BT-44).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-08]-An Invoice shall contain the Seller postal address.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "exists(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-10]-An Invoice shall contain the Buyer postal address (BG-8).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "exists(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-16]-An Invoice shall have at least one Invoice line (BG-25)",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "exists(cac:InvoiceLine) or exists(cac:CreditNoteLine)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-53",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "every $taxcurrency in cbc:TaxCurrencyCode satisfies exists(//cac:TaxTotal/cbc:TaxAmount[@currencyID=$taxcurrency])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'AE']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'AE'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'AE']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'AE']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'AE']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-03]-Value added tax point date (BT-7) and Value added tax point date code (BT-8) are mutually exclusive.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cbc:TaxPointDate) and not(cac:InvoicePeriod/cbc:DescriptionCode)) or (not(cbc:TaxPointDate) and exists(cac:InvoicePeriod/cbc:DescriptionCode)) or (not(cbc:TaxPointDate) and not(cac:InvoicePeriod/cbc:DescriptionCode))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).",
    "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)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-18]-An Invoice shall at least have one VAT breakdown group (BG-23).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "exists(cac:TaxTotal/cac:TaxSubtotal)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-13]-The allowed maximum number of decimals for the Invoice total VAT amount (BT-110) is 2.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode] and (string-length(substring-after(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode],'.'))\u003c=2)) or (not(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:DocumentCurrencyCode]))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-15]-The allowed maximum number of decimals for the Invoice total VAT amount in accounting currency (BT-111) is 2.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode] and (string-length(substring-after(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode],'.'))\u003c=2)) or (not(//cac:TaxTotal/cbc:TaxAmount[@currencyID = cbc:TaxCurrencyCode]))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'E']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'E'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'E']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'E']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'E']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'G']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'G'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'G']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'G']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'G']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='G']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='G']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)) and (exists(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K'])  and (string-length(cac:Delivery/cbc:ActualDeliveryDate) \u003e 1 or (cac:InvoicePeriod/*))) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']) and (string-length(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode) \u003e1)) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'K']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) \u003e 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'L']) \u003e 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[cbc:ID='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) \u003e 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) \u003e 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (not(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists((/ubl:Invoice|/cn:CreditNote)/cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (not(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists((/ubl:Invoice|/cn:CreditNote)/cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists((/ubl:Invoice|/cn:CreditNote)/cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (not(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID) and not(//cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists((/ubl:Invoice|/cn:CreditNote)/cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) != 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0) or not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) and count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) != 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0) or not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) and count(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) != 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0) or not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O']) and count(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) != 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0) or not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'O'])",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) \u003e 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) \u003e 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S']) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'S']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((exists(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'Z']) or exists(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'Z'])) and (count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'Z']) = 1)) or (not(//cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'Z']) and not(//cac:ClassifiedTaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID[normalize-space(.) = 'Z']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID)or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-B-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(not(//cbc:IdentificationCode != 'IT') and (//cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B')) or (not(//cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B'))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-B-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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”.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "((cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B') and (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='S' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='S' or //cac:ClassifiedTaxCategory/cbc:ID = 'S'))) or (not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID ='B' or cac:AllowanceCharge/cac:TaxCategory/cbc:ID ='B' or //cac:ClassifiedTaxCategory/cbc:ID = 'B'))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-21",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-21]-Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "normalize-space(cbc:ID) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-22",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-24]-Each Invoice line (BG-25) shall have an Invoice line net amount (BT-131).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "exists(cbc:LineExtensionAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-25",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-25]-Each Invoice line (BG-25) shall contain the Item name (BT-153).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "normalize-space(cac:Item/cbc:Name) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-26",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-26]-Each Invoice line (BG-25) shall contain the Item net price (BT-146).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "exists(cac:Price/cbc:PriceAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-27",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-27]-The Item net price (BT-146) shall NOT be negative.",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(cac:Price/cbc:PriceAmount) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-28",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-28]-The Item gross price (BT-148) shall NOT be negative.",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(cac:Price/cac:AllowanceCharge/cbc:BaseAmount) \u003e= 0 or not(exists(cac:Price/cac:AllowanceCharge/cbc:BaseAmount))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-04]-Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "string-length(substring-after(cbc:LineExtensionAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-41",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-41]-Each Invoice line allowance (BG-27) shall have an Invoice line allowance amount (BT-136).",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:Amount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-42",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "true()",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-24]-The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "string-length(substring-after(cbc:Amount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-25",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-25]-The allowed maximum number of decimals for the Invoice line allowance base amount (BT-137) is 2.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "string-length(substring-after(cbc:BaseAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-43",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-43]-Each Invoice line charge (BG-28) shall have an Invoice line charge amount (BT-141).",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:Amount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-44",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-44]-Each Invoice line charge shall have an Invoice line charge reason or an invoice line allowance reason code.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "true()",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-27",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-27]-The allowed maximum number of decimals for the Invoice line charge amount (BT-141) is 2.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "string-length(substring-after(cbc:Amount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-28",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-28]-The allowed maximum number of decimals for the Invoice line charge base amount (BT-142) is 2.",
    "context": "//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "string-length(substring-after(cbc:BaseAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-30",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/cac:InvoicePeriod",
    "test": "(exists(cbc:EndDate) and exists(cbc:StartDate) and xs:date(cbc:EndDate) \u003e= xs:date(cbc:StartDate)) or not(exists(cbc:StartDate)) or not(exists(cbc:EndDate))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/cac:InvoicePeriod",
    "test": "exists(cbc:StartDate) or exists(cbc:EndDate)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-29",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoicePeriod",
    "test": "(exists(cbc:EndDate) and exists(cbc:StartDate) and xs:date(cbc:EndDate) \u003e= xs:date(cbc:StartDate)) or not(exists(cbc:StartDate)) or not(exists(cbc:EndDate))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:InvoicePeriod",
    "test": "exists(cbc:StartDate) or exists(cbc:EndDate) or (exists(cbc:DescriptionCode) and not(exists(cbc:StartDate)) and not(exists(cbc:EndDate)))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-54",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-54]-Each Item attribute (BG-32) shall contain an Item attribute name (BT-160) and an Item attribute value (BT-161).",
    "context": "//cac:AdditionalItemProperty",
    "test": "exists(cbc:Name) and exists(cbc:Value)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-65",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-65]-The Item classification identifier (BT-158) shall have a Scheme identifier.",
    "context": "cac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode | cac:CreditNoteLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode",
    "test": "exists(@listID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-64",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-64]-The Item standard identifier (BT-157) shall have a Scheme identifier.",
    "context": "cac:InvoiceLine/cac:Item/cac:StandardItemIdentification/cbc:ID | cac:CreditNoteLine/cac:Item/cac:StandardItemIdentification/cbc:ID",
    "test": "exists(@schemeID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CL-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-08]-Invoiced note subject code shall be coded using UNCL4451",
    "context": "/ubl:Invoice/cbc:Note | /cn:CreditNote/cbc:Note",
    "test": "(contains(.,'#') and string-length(substring-before(substring-after(.,'#'),'#'))=3 and ( ( contains(' AAA AAB AAC AAD AAE AAF AAG AAI AAJ AAK AAL AAM AAN AAO AAP AAQ AAR AAS AAT AAU AAV AAW AAX AAY AAZ ABA ABB ABC ABD ABE ABF ABG ABH ABI ABJ ABK ABL ABM ABN ABO ABP ABQ ABR ABS ABT ABU ABV ABW ABX ABZ ACA ACB ACC ACD ACE ACF ACG ACH ACI ACJ ACK ACL ACM ACN ACO ACP ACQ ACR ACS ACT ACU ACV ACW ACX ACY ACZ ADA ADB ADC ADD ADE ADF ADG ADH ADI ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADS ADT ADU ADV ADW ADX ADY ADZ AEA AEB AEC AED AEE AEF AEG AEH AEI AEJ AEK AEL AEM AEN AEO AEP AEQ AER AES AET AEU AEV AEW AEX AEY AEZ AFA AFB AFC AFD AFE AFF AFG AFH AFI AFJ AFK AFL AFM AFN AFO AFP AFQ AFR AFS AFT AFU AFV AFW AFX AFY AFZ AGA AGB AGC AGD AGE AGF AGG AGH AGI AGJ AGK AGL AGM AGN AGO AGP AGQ AGR AGS AGT AGU AGV AGW AGX AGY AGZ AHA AHB AHC AHD AHE AHF AHG AHH AHI AHJ AHK AHL AHM AHN AHO AHP AHQ AHR AHS AHT AHU AHV AHW AHX AHY AHZ AIA AIB AIC AID AIE AIF AIG AIH AII AIJ AIK AIL AIM AIN AIO AIP AIQ AIR AIS AIT AIU AIV AIW AIX AIY AIZ AJA AJB ALC ALD ALE ALF ALG ALH ALI ALJ ALK ALL ALM ALN ALO ALP ALQ ARR ARS AUT AUU AUV AUW AUX AUY AUZ AVA AVB AVC AVD AVE AVF BAG BAH BAI BAJ BAK BAL BAM BAN BAO BAP BAQ BAR BAS BAT BAU BAV BAW BAX BAY BAZ BBA BBB BLC BLD BLE BLF BLG BLH BLI BLJ BLK BLL BLM BLN BLO BLP BLQ BLR BLS BLT BLU BLV BLW BLX BLY BLZ BMA BMB BMC BMD BME BMF BMG BMH CCJ CCK CCL CCM CCN CCO CCI CEX CHG CIP CLP CLR COI CUR CUS DAR DCL DEL DIN DOC DUT EUR FBC GBL GEN GS7 HAN HAZ ICN IIN IMI IND INS INV IRP ITR ITS LAN LIN LOI MCO MDH MKS ORI OSI PAC PAI PAY PKG PKT PMD PMT PRD PRF PRI PUR QIN QQD QUT RAH REG RET REV RQR SAF SIC SIN SLR SPA SPG SPH SPP SPT SRN SSR SUR TCA TDT TRA TRR TXD WHI ZZZ ',substring-before(substring-after(.,'#'),'#') ) ) )) or not(contains(.,'#')) or not(string-length(substring-before(substring-after(.,'#'),'#'))=3)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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)",
    "context": "cac:PayeeParty",
    "test": "exists(cac:PartyName/cbc:Name) and (not(cac:PartyName/cbc:Name = ../cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) and not(cac:PartyIdentification/cbc:ID = ../cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-50",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-50]-A Payment account identifier (BT-84) shall be present if Credit transfer (BG-17) information is provided in the Invoice.",
    "context": "cac:PaymentMeans[cbc:PaymentMeansCode='30' or cbc:PaymentMeansCode='58']/cac:PayeeFinancialAccount",
    "test": "normalize-space(cbc:ID) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-49",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-49]-A Payment instruction (BG-16) shall specify the Payment means type code (BT-81).",
    "context": "cac:PaymentMeans",
    "test": "exists(cbc:PaymentMeansCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-61",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:PaymentMeans",
    "test": "(exists(cac:PayeeFinancialAccount/cbc:ID) and ((normalize-space(cbc:PaymentMeansCode) = '30') or (normalize-space(cbc:PaymentMeansCode) = '58') )) or ((normalize-space(cbc:PaymentMeansCode) != '30') and (normalize-space(cbc:PaymentMeansCode) != '58'))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-55",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-55]-Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).",
    "context": "cac:BillingReference",
    "test": "exists(cac:InvoiceDocumentReference/cbc:ID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-26",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AccountingSupplierParty",
    "test": "exists(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:CompanyID) or exists(cac:Party/cac:PartyIdentification/cbc:ID[not(@schemeID = 'SEPA')]) or exists(cac:Party/cac:PartyLegalEntity/cbc:CompanyID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-62",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-62]-The Seller electronic address (BT-34) shall have a Scheme identifier.",
    "context": "cac:AccountingSupplierParty/cac:Party/cbc:EndpointID",
    "test": "exists(@schemeID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40).",
    "context": "cac:AccountingSupplierParty/cac:Party/cac:PostalAddress",
    "test": "normalize-space(cac:Country/cbc:IdentificationCode) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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)",
    "context": "cac:TaxRepresentativeParty",
    "test": "normalize-space(cac:PartyName/cbc:Name) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:TaxRepresentativeParty",
    "test": "exists(cac:PostalAddress)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-56",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-56]-Each Seller tax representative party (BG-11) shall have a Seller tax representative VAT identifier (BT-63).",
    "context": "cac:TaxRepresentativeParty",
    "test": "exists(cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:TaxRepresentativeParty/cac:PostalAddress",
    "test": "normalize-space(cac:Country/cbc:IdentificationCode) != ''",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CO-14]-Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).",
    "context": "/ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:TaxTotal",
    "test": "(xs:decimal(child::cbc:TaxAmount)= round((sum(cac:TaxSubtotal/xs:decimal(cbc:TaxAmount)) * 10 * 10)) div 100) or not(cac:TaxSubtotal)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-45",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-45]-Each VAT breakdown (BG-23) shall have a VAT category taxable amount (BT-116).",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "exists(cbc:TaxableAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-46",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-46]-Each VAT breakdown (BG-23) shall have a VAT category tax amount (BT-117).",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "exists(cbc:TaxAmount)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-47",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-47]-Each VAT breakdown (BG-23) shall be defined through a VAT category code (BT-118).",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:ID)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-48",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-48]-Each VAT breakdown (BG-23) shall have a VAT category rate (BT-119), except if the Invoice is not subject to VAT.",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:Percent) or (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/normalize-space(cbc:ID)='O')",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "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 \u003c 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 \u003e 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))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-19]-The allowed maximum number of decimals for the VAT category taxable amount (BT-116) is 2.",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "string-length(substring-after(cbc:TaxableAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-DEC-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-DEC-20]-The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.",
    "context": "cac:TaxTotal/cac:TaxSubtotal",
    "test": "string-length(substring-after(cbc:TaxAmount,'.'))\u003c=2",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-CO-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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’.",
    "context": "//cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "( contains( ' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BL BJ BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', substring(cbc:CompanyID,1,2), ' ')) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='AE']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "exists(cbc:TaxExemptionReason) or (exists(cbc:TaxExemptionReasonCode) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-AE-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='E']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "exists(cbc:TaxExemptionReason) or exists(cbc:TaxExemptionReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-E-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'E'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='G']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "exists(cbc:TaxExemptionReason) or (exists(cbc:TaxExemptionReasonCode) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-G-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'G'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='K']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "exists(cbc:TaxExemptionReason) or (exists(cbc:TaxExemptionReasonCode) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IC-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'K'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "every $rate in xs:decimal(cbc:Percent) satisfies ((exists(//cac:InvoiceLine) and ((../xs:decimal(cbc:TaxableAmount - 1) \u003c (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='L'][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)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) \u003e (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='L'][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)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))))) or (exists(//cac:CreditNoteLine) and ((../xs:decimal(cbc:TaxableAmount - 1) \u003c (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='L'][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)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) \u003e (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='L'][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)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='L'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(abs(xs:decimal(../cbc:TaxAmount)) - 1 \u003c  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 ) and (abs(xs:decimal(../cbc:TaxAmount)) + 1 \u003e  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:TaxExemptionReason) and not(cbc:TaxExemptionReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IG-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']| cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "every $rate in xs:decimal(cbc:Percent) satisfies ((exists(//cac:InvoiceLine) and ((../xs:decimal(cbc:TaxableAmount - 1) \u003c (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='M'][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)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) \u003e (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='M'][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)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))))) or (exists(//cac:CreditNoteLine) and ((../xs:decimal(cbc:TaxableAmount - 1) \u003c (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='M'][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)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))) and (../xs:decimal(cbc:TaxableAmount + 1) \u003e (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='M'][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)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='M'][cac:TaxCategory/xs:decimal(cbc:Percent) = $rate]/xs:decimal(cbc:Amount)))))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(abs(xs:decimal(../cbc:TaxAmount)) - 1 \u003c  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 ) and (abs(xs:decimal(../cbc:TaxAmount)) + 1 \u003e  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:TaxExemptionReason) and not(cbc:TaxExemptionReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-IP-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']| cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e= 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='O']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "exists(cbc:TaxExemptionReason) or (exists(cbc:TaxExemptionReasonCode) )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:Percent)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:Percent)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-O-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'O'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:Percent)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "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) \u003c (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) \u003e (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) \u003c (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) \u003e (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))))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(abs(xs:decimal(../cbc:TaxAmount)) - 1 \u003c  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 ) and (abs(xs:decimal(../cbc:TaxAmount)) + 1 \u003e  round((abs(xs:decimal(../cbc:TaxableAmount)) * (xs:decimal(cbc:Percent) div 100)) * 10 * 10) div 100 )",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not(cbc:TaxExemptionReason) and not(cbc:TaxExemptionReasonCode)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(cbc:Percent) \u003e 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-S-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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.",
    "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) \u003e 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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\".",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(exists(//cac:InvoiceLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:InvoiceLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:Amount))))) or (exists(//cac:CreditNoteLine) and (xs:decimal(../cbc:TaxableAmount) = (sum(../../../cac:CreditNoteLine[cac:Item/cac:ClassifiedTaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:LineExtensionAmount)) + sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=true()][cac:TaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:Amount)) - sum(../../../cac:AllowanceCharge[cbc:ChargeIndicator=false()][cac:TaxCategory/normalize-space(cbc:ID)='Z']/xs:decimal(cbc:Amount)))))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "xs:decimal(../cbc:TaxAmount) = 0",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "/*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "not((cbc:TaxExemptionReason) or (cbc:TaxExemptionReasonCode))",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cac:TaxCategory[normalize-space(cbc:ID)='Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "BR-Z-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[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).",
    "context": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']",
    "test": "(xs:decimal(cbc:Percent) = 0)",
    "phases": [
      "EN16931model_phase"
    ]
  },
  {
    "id": "UBL-SR-51",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-51]-An address can only have one third line.",
    "context": "//cac:PostalAddress | //cac:Address",
    "test": "not(cac:AddressLine) or count(cac:AddressLine) = 1",
    "phases": null
  },
  {
    "id": "UBL-SR-42",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-42]-Party tax scheme shall occur maximum twice in accounting supplier party",
    "context": "cac:AccountingSupplierParty/cac:Party",
    "test": "(count(cac:PartyTaxScheme) \u003c= 2)",
    "phases": null
  },
  {
    "id": "UBL-SR-33",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-33]-Supporting document description shall occur maximum once",
    "context": "cac:AdditionalDocumentReference",
    "test": "(count(cbc:DocumentDescription) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-43",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-43]-Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)",
    "context": "cac:AdditionalDocumentReference",
    "test": "((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))",
    "phases": null
  },
  {
    "id": "UBL-DT-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-DT-01]-Amounts shall be decimal up to two fraction digits",
    "context": "//*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]",
    "test": "string-length(substring-after(.,'.'))\u003c=2",
    "phases": null
  },
  {
    "id": "UBL-DT-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-DT-06]-Binary object elements shall contain the mime code attribute",
    "context": "//*[ends-with(name(), 'BinaryObject')]",
    "test": "(@mimeCode)",
    "phases": null
  },
  {
    "id": "UBL-DT-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-DT-07]-Binary object elements shall contain the file name attribute",
    "context": "//*[ends-with(name(), 'BinaryObject')]",
    "test": "(@filename)",
    "phases": null
  },
  {
    "id": "UBL-SR-25",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-25]-Deliver to party name shall occur maximum once",
    "context": "cac:Delivery",
    "test": "not(cac:DeliveryParty) or count(cac:DeliveryParty/cac:PartyName/cbc:Name) = 1",
    "phases": null
  },
  {
    "id": "UBL-SR-30",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-30]-Document level allowance reason shall occur maximum once",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator = false()]",
    "test": "(count(cbc:AllowanceChargeReason) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-31",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-31]-Document level charge reason shall occur maximum once",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator = true()]",
    "test": "(count(cbc:AllowanceChargeReason) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-53",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-53]- CompanyID (VAT Identifier) must be stated when providing the PartyTaxScheme/TaxScheme/ID.",
    "context": "cac:PartyTaxScheme",
    "test": "exists(cac:TaxScheme/cbc:ID) and exists(cbc:CompanyID)",
    "phases": null
  },
  {
    "id": "UBL-CR-001",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-001]-A UBL invoice should not include extensions",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(ext:UBLExtensions)",
    "phases": null
  },
  {
    "id": "UBL-CR-002",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-002]-A UBL invoice should not include the UBLVersionID or it should be 2.1",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:UBLVersionID) or cbc:UBLVersionID = '2.1'",
    "phases": null
  },
  {
    "id": "UBL-CR-003",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-003]-A UBL invoice should not include the ProfileExecutionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:ProfileExecutionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-004",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-004]-A UBL invoice should not include the CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-005",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-005]-A UBL invoice should not include the UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-006",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-006]-A UBL invoice should not include the IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-007",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-007]-A UBL invoice should not include the PricingCurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:PricingCurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-008",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-008]-A UBL invoice should not include the PaymentCurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:PaymentCurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-009",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-009]-A UBL invoice should not include the PaymentAlternativeCurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:PaymentAlternativeCurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-010",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-010]-A UBL invoice should not include the AccountingCostCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:AccountingCostCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-011",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-011]-A UBL invoice should not include the LineCountNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:LineCountNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-012",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-012]-A UBL invoice should not include the InvoicePeriod StartTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:InvoicePeriod/cbc:StartTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-013",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-013]-A UBL invoice should not include the InvoicePeriod EndTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:InvoicePeriod/cbc:EndTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-014",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-014]-A UBL invoice should not include the InvoicePeriod DurationMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:InvoicePeriod/cbc:DurationMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-015",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-015]-A UBL invoice should not include the InvoicePeriod Description",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:InvoicePeriod/cbc:Description)",
    "phases": null
  },
  {
    "id": "UBL-CR-016",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-016]-A UBL invoice should not include the OrderReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-017",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-017]-A UBL invoice should not include the OrderReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-018",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-018]-A UBL invoice should not include the OrderReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-019",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-019]-A UBL invoice should not include the OrderReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-020",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-020]-A UBL invoice should not include the OrderReference CustomerReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:CustomerReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-021",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-021]-A UBL invoice should not include the OrderReference OrderTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cbc:OrderTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-022",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-022]-A UBL invoice should not include the OrderReference DocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OrderReference/cac:DocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-023",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-023]-A UBL invoice should not include the BillingReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-024",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-024]-A UBL invoice should not include the BillingReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-025",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-025]-A UBL invoice should not include the BillingReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-026",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-026]-A UBL invoice should not include the BillingReference DocumentTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-027",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-027]-A UBL invoice should not include the BillingReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-028",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-028]-A UBL invoice should not include the BillingReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-029",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-029]-A UBL invoice should not include the BillingReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-030",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-030]-A UBL invoice should not include the BillingReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-031",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-031]-A UBL invoice should not include the BillingReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-032",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-032]-A UBL invoice should not include the BillingReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-033",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-033]-A UBL invoice should not include the BillingReference DocumenDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-034",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-034]-A UBL invoice should not include the BillingReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-035",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-035]-A UBL invoice should not include the BillingReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-036",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-036]-A UBL invoice should not include the BillingReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-037",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-037]-A UBL invoice should not include the BillingReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:InvoiceDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-038",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-038]-A UBL invoice should not include the BillingReference SelfBilledInvoiceDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:SelfBilledInvoiceDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-039",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-039]-A UBL invoice should not include the BillingReference CreditNoteDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:CreditNoteDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-040",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-040]-A UBL invoice should not include the BillingReference SelfBilledCreditNoteDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:SelfBilledCreditNoteDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-041",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-041]-A UBL invoice should not include the BillingReference DebitNoteDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:DebitNoteDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-042",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-042]-A UBL invoice should not include the BillingReference ReminderDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:ReminderDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-043",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-043]-A UBL invoice should not include the BillingReference AdditionalDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:AdditionalDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-044",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-044]-A UBL invoice should not include the BillingReference BillingReferenceLine",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BillingReference/cac:BillingReferenceLine)",
    "phases": null
  },
  {
    "id": "UBL-CR-045",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-045]-A UBL invoice should not include the DespatchDocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-046",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-046]-A UBL invoice should not include the DespatchDocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-047",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-047]-A UBL invoice should not include the DespatchDocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-048",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-048]-A UBL invoice should not include the DespatchDocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-049",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-049]-A UBL invoice should not include the DespatchDocumentReference DocumentTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:DocumentTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-050",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-050]-A UBL invoice should not include the DespatchDocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-051",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-051]-A UBL invoice should not include the DespatchDocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-052",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-052]-A UBL invoice should not include the DespatchDocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-053",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-053]-A UBL invoice should not include the DespatchDocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-054",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-054]-A UBL invoice should not include the DespatchDocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-055",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-055]-A UBL invoice should not include the DespatchDocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-056",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-056]-A UBL invoice should not include the DespatchDocumentReference DocumentDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-057",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-057]-A UBL invoice should not include the DespatchDocumentReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-058",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-058]-A UBL invoice should not include the DespatchDocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-059",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-059]-A UBL invoice should not include the DespatchDocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-060",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-060]-A UBL invoice should not include the DespatchDocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DespatchDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-061",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-061]-A UBL invoice should not include the ReceiptDocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-062",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-062]-A UBL invoice should not include the ReceiptDocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-063",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-063]-A UBL invoice should not include the ReceiptDocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-064",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-064]-A UBL invoice should not include the ReceiptDocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-065",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-065]-A UBL invoice should not include the ReceiptDocumentReference DocumentTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:DocumentTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-066",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-066]-A UBL invoice should not include the ReceiptDocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-067",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-067]-A UBL invoice should not include the ReceiptDocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-068",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-068]-A UBL invoice should not include the ReceiptDocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-069",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-069]-A UBL invoice should not include the ReceiptDocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-070",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-070]-A UBL invoice should not include the ReceiptDocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-071",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-071]-A UBL invoice should not include the ReceiptDocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-072",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-072]-A UBL invoice should not include the ReceiptDocumentReference DocumentDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-073",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-073]-A UBL invoice should not include the ReceiptDocumentReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-074",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-074]-A UBL invoice should not include the ReceiptDocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-075",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-075]-A UBL invoice should not include the ReceiptDocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-076",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-076]-A UBL invoice should not include the ReceiptDocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ReceiptDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-077",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-077]-A UBL invoice should not include the StatementDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:StatementDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-078",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-078]-A UBL invoice should not include the OriginatorDocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-079",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-079]-A UBL invoice should not include the OriginatorDocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-080",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-080]-A UBL invoice should not include the OriginatorDocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-081",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-081]-A UBL invoice should not include the OriginatorDocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-082",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-082]-A UBL invoice should not include the OriginatorDocumentReference DocumentTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:DocumentTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-083",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-083]-A UBL invoice should not include the OriginatorDocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-084",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-084]-A UBL invoice should not include the OriginatorDocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-085",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-085]-A UBL invoice should not include the OriginatorDocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-086",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-086]-A UBL invoice should not include the OriginatorDocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-087",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-087]-A UBL invoice should not include the OriginatorDocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-088",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-088]-A UBL invoice should not include the OriginatorDocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-089",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-089]-A UBL invoice should not include the OriginatorDocumentReference DocumentDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-090",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-090]-A UBL invoice should not include the OriginatorDocumentReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-091",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-091]-A UBL invoice should not include the OriginatorDocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-092",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-092]-A UBL invoice should not include the OriginatorDocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-093",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-093]-A UBL invoice should not include the OriginatorDocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:OriginatorDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-094",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-094]-A UBL invoice should not include the ContractDocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-095",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-095]-A UBL invoice should not include the ContractDocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-096",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-096]-A UBL invoice should not include the ContractDocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-097",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-097]-A UBL invoice should not include the ContractDocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-098",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-098]-A UBL invoice should not include the ContractDocumentReference DocumentTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:DocumentTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-099",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-099]-A UBL invoice should not include the ContractDocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-100",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-100]-A UBL invoice should not include the ContractDocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-101",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-101]-A UBL invoice should not include the ContractDocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-102",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-102]-A UBL invoice should not include the ContractDocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-103",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-103]-A UBL invoice should not include the ContractDocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-104",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-104]-A UBL invoice should not include the ContractDocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-105",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-105]-A UBL invoice should not include the ContractDocumentReference DocumentDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-106",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-106]-A UBL invoice should not include the ContractDocumentReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-107",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-107]-A UBL invoice should not include the ContractDocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-108",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-108]-A UBL invoice should not include the ContractDocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-109",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-109]-A UBL invoice should not include the ContractDocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ContractDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-110",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-110]-A UBL invoice should not include the AdditionalDocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-111",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-111]-A UBL invoice should not include the AdditionalDocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-112",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-112]-A UBL invoice should not include the AdditionalDocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-113",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-113]-A UBL invoice should not include the AdditionalDocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-114",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-114]-A UBL invoice should not include the AdditionalDocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-115",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-115]-A UBL invoice should not include the AdditionalDocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-116",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-116]-A UBL invoice should not include the AdditionalDocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-117",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-117]-A UBL invoice should not include the AdditionalDocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-118",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-118]-A UBL invoice should not include the AdditionalDocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-119",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-119]-A UBL invoice should not include the AdditionalDocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-121",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-121]-A UBL invoice should not include the AdditionalDocumentReference Attachment External DocumentHash",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:DocumentHash)",
    "phases": null
  },
  {
    "id": "UBL-CR-122",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-122]-A UBL invoice should not include the AdditionalDocumentReference Attachment External HashAlgorithmMethod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:HashAlgorithmMethod)",
    "phases": null
  },
  {
    "id": "UBL-CR-123",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-123]-A UBL invoice should not include the AdditionalDocumentReference Attachment External ExpiryDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:ExpiryDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-124",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-124]-A UBL invoice should not include the AdditionalDocumentReference Attachment External ExpiryTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:ExpiryTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-125",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-125]-A UBL invoice should not include the AdditionalDocumentReference Attachment External MimeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:MimeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-126",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-126]-A UBL invoice should not include the AdditionalDocumentReference Attachment External FormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:FormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-127",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-127]-A UBL invoice should not include the AdditionalDocumentReference Attachment External EncodingCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:EncodingCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-128",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-128]-A UBL invoice should not include the AdditionalDocumentReference Attachment External CharacterSetCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:CharacterSetCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-129",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-129]-A UBL invoice should not include the AdditionalDocumentReference Attachment External FileName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:FileName)",
    "phases": null
  },
  {
    "id": "UBL-CR-130",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-130]-A UBL invoice should not include the AdditionalDocumentReference Attachment External Descriprion",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference/cbc:Description)",
    "phases": null
  },
  {
    "id": "UBL-CR-131",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-131]-A UBL invoice should not include the AdditionalDocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-132",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-132]-A UBL invoice should not include the AdditionalDocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-133",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-133]-A UBL invoice should not include the AdditionalDocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-134",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-134]-A UBL invoice should not include the ProjectReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ProjectReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-135",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-135]-A UBL invoice should not include the ProjectReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ProjectReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-136",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-136]-A UBL invoice should not include the ProjectReference WorkPhaseReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:ProjectReference/cac:WorkPhaseReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-137",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-137]-A UBL invoice should not include the Signature",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Signature)",
    "phases": null
  },
  {
    "id": "UBL-CR-138",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-138]-A UBL invoice should not include the AccountingSupplierParty CustomerAssignedAccountID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cbc:CustomerAssignedAccountID)",
    "phases": null
  },
  {
    "id": "UBL-CR-139",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-139]-A UBL invoice should not include the AccountingSupplierParty AdditionalAccountID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cbc:AdditionalAccountID)",
    "phases": null
  },
  {
    "id": "UBL-CR-140",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-140]-A UBL invoice should not include the AccountingSupplierParty DataSendingCapability",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cbc:DataSendingCapability)",
    "phases": null
  },
  {
    "id": "UBL-CR-141",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-141]-A UBL invoice should not include the AccountingSupplierParty Party MarkCareIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cbc:MarkCareIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-142",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-142]-A UBL invoice should not include the AccountingSupplierParty Party MarkAttentionIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cbc:MarkAttentionIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-143",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-143]-A UBL invoice should not include the AccountingSupplierParty Party WebsiteURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cbc:WebsiteURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-144",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-144]-A UBL invoice should not include the AccountingSupplierParty Party LogoReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cbc:LogoReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-145",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-145]-A UBL invoice should not include the AccountingSupplierParty Party IndustryClassificationCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cbc:IndustryClassificationCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-146",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-146]-A UBL invoice should not include the AccountingSupplierParty Party Language",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Language)",
    "phases": null
  },
  {
    "id": "UBL-CR-147",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-147]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-148",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-148]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress AddressTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:AddressTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-149",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-149]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress AddressFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:AddressFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-150",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-150]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Postbox",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:Postbox)",
    "phases": null
  },
  {
    "id": "UBL-CR-151",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-151]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Floor",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:Floor)",
    "phases": null
  },
  {
    "id": "UBL-CR-152",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-152]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Room",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:Room)",
    "phases": null
  },
  {
    "id": "UBL-CR-153",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-153]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BlockName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:BlockName)",
    "phases": null
  },
  {
    "id": "UBL-CR-154",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-154]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BuildingName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:BuildingName)",
    "phases": null
  },
  {
    "id": "UBL-CR-155",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-155]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress BuildingNumber",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:BuildingNumber)",
    "phases": null
  },
  {
    "id": "UBL-CR-156",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-156]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress InhouseMail",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:InhouseMail)",
    "phases": null
  },
  {
    "id": "UBL-CR-157",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-157]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Department",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:Department)",
    "phases": null
  },
  {
    "id": "UBL-CR-158",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-158]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress MarkAttention",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:MarkAttention)",
    "phases": null
  },
  {
    "id": "UBL-CR-159",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-159]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress MarkCare",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:MarkCare)",
    "phases": null
  },
  {
    "id": "UBL-CR-160",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-160]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress PlotIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PlotIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-161",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-161]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress CitySubdivisionName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CitySubdivisionName)",
    "phases": null
  },
  {
    "id": "UBL-CR-162",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-162]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress CountrySubentityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-163",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-163]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Region",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:Region)",
    "phases": null
  },
  {
    "id": "UBL-CR-164",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-164]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress District",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:District)",
    "phases": null
  },
  {
    "id": "UBL-CR-165",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-165]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress TimezoneOffset",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:TimezoneOffset)",
    "phases": null
  },
  {
    "id": "UBL-CR-166",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-166]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress Country Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-167",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-167]-A UBL invoice should not include the AccountingSupplierParty Party PostalAddress LocationCoordinate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:LocationCoordinate)",
    "phases": null
  },
  {
    "id": "UBL-CR-168",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-168]-A UBL invoice should not include the AccountingSupplierParty Party PhysicalLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PhysicalLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-169",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-169]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme RegistrationName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:RegistrationName)",
    "phases": null
  },
  {
    "id": "UBL-CR-170",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-170]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxLevelCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:TaxLevelCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-171",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-171]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme ExemptionReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:ExemptionReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-172",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-172]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme ExemptionReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:ExemptionReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-173",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-173]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-174",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-174]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-175",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-175]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-176",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-176]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-177",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-177]-A UBL invoice should not include the AccountingSupplierParty Party PartyTaxScheme TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-178",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-178]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-179",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-179]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationExpirationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationExpirationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-180",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-180]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CompanyLegalFormCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLegalFormCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-181",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-181]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity SoleProprietorshipIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:SoleProprietorshipIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-182",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-182]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CompanyLiquidationStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLiquidationStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-183",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-183]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CorporateStockAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CorporateStockAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-184",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-184]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity FullyPaidSharesIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:FullyPaidSharesIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-185",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-185]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-186",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-186]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity CorporateRegistrationScheme",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:CorporateRegistrationScheme)",
    "phases": null
  },
  {
    "id": "UBL-CR-187",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-187]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity HeadOfficeParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:HeadOfficeParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-188",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-188]-A UBL invoice should not include the AccountingSupplierParty Party PartyLegalEntity ShareholderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:ShareholderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-189",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-189]-A UBL invoice should not include the AccountingSupplierParty Party Contact ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-190",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-190]-A UBL invoice should not include the AccountingSupplierParty Party Contact Telefax",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Telefax)",
    "phases": null
  },
  {
    "id": "UBL-CR-191",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-191]-A UBL invoice should not include the AccountingSupplierParty Party Contact Note",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Note)",
    "phases": null
  },
  {
    "id": "UBL-CR-192",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-192]-A UBL invoice should not include the AccountingSupplierParty Party Contact OtherCommunication",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Contact/cac:OtherCommunication)",
    "phases": null
  },
  {
    "id": "UBL-CR-193",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-193]-A UBL invoice should not include the AccountingSupplierParty Party Person",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:Person)",
    "phases": null
  },
  {
    "id": "UBL-CR-194",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-194]-A UBL invoice should not include the AccountingSupplierParty Party AgentParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:AgentParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-195",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-195]-A UBL invoice should not include the AccountingSupplierParty Party ServiceProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:ServiceProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-196",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-196]-A UBL invoice should not include the AccountingSupplierParty Party PowerOfAttorney",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:PowerOfAttorney)",
    "phases": null
  },
  {
    "id": "UBL-CR-197",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-197]-A UBL invoice should not include the AccountingSupplierParty Party FinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:Party/cac:FinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-198",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-198]-A UBL invoice should not include the AccountingSupplierParty DespatchContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:DespatchContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-199",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-199]-A UBL invoice should not include the AccountingSupplierParty AccountingContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:AccountingContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-200",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-200]-A UBL invoice should not include the AccountingSupplierParty SellerContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingSupplierParty/cac:SellerContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-201",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-201]-A UBL invoice should not include the AccountingCustomerParty CustomerAssignedAccountID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cbc:CustomerAssignedAccountID)",
    "phases": null
  },
  {
    "id": "UBL-CR-202",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-202]-A UBL invoice should not include the AccountingCustomerParty SupplierAssignedAccountID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cbc:SupplierAssignedAccountID)",
    "phases": null
  },
  {
    "id": "UBL-CR-203",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-203]-A UBL invoice should not include the AccountingCustomerParty AdditionalAccountID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cbc:AdditionalAccountID)",
    "phases": null
  },
  {
    "id": "UBL-CR-204",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-204]-A UBL invoice should not include the AccountingCustomerParty Party MarkCareIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cbc:MarkCareIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-205",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-205]-A UBL invoice should not include the AccountingCustomerParty Party MarkAttentionIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cbc:MarkAttentionIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-206",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-206]-A UBL invoice should not include the AccountingCustomerParty Party WebsiteURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cbc:WebsiteURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-207",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-207]-A UBL invoice should not include the AccountingCustomerParty Party LogoReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cbc:LogoReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-208",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-208]-A UBL invoice should not include the AccountingCustomerParty Party IndustryClassificationCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cbc:IndustryClassificationCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-209",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-209]-A UBL invoice should not include the AccountingCustomerParty Party Language",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Language)",
    "phases": null
  },
  {
    "id": "UBL-CR-210",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-210]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-211",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-211]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress AddressTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:AddressTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-212",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-212]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress AddressFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:AddressFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-213",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-213]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Postbox",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:Postbox)",
    "phases": null
  },
  {
    "id": "UBL-CR-214",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-214]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Floor",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:Floor)",
    "phases": null
  },
  {
    "id": "UBL-CR-215",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-215]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Room",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:Room)",
    "phases": null
  },
  {
    "id": "UBL-CR-216",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-216]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BlockName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:BlockName)",
    "phases": null
  },
  {
    "id": "UBL-CR-217",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-217]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BuildingName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:BuildingName)",
    "phases": null
  },
  {
    "id": "UBL-CR-218",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-218]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress BuildingNumber",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:BuildingNumber)",
    "phases": null
  },
  {
    "id": "UBL-CR-219",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-219]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress InhouseMail",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:InhouseMail)",
    "phases": null
  },
  {
    "id": "UBL-CR-220",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-220]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Department",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:Department)",
    "phases": null
  },
  {
    "id": "UBL-CR-221",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-221]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress MarkAttention",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:MarkAttention)",
    "phases": null
  },
  {
    "id": "UBL-CR-222",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-222]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress MarkCare",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:MarkCare)",
    "phases": null
  },
  {
    "id": "UBL-CR-223",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-223]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress PlotIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PlotIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-224",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-224]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress CitySubdivisionName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CitySubdivisionName)",
    "phases": null
  },
  {
    "id": "UBL-CR-225",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-225]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress CountrySubentityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-226",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-226]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Region",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:Region)",
    "phases": null
  },
  {
    "id": "UBL-CR-227",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-227]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress District",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:District)",
    "phases": null
  },
  {
    "id": "UBL-CR-228",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-228]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress TimezoneOffset",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:TimezoneOffset)",
    "phases": null
  },
  {
    "id": "UBL-CR-229",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-229]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress Country Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-230",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-230]-A UBL invoice should not include the AccountingCustomerParty Party PostalAddress LocationCoordinate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:LocationCoordinate)",
    "phases": null
  },
  {
    "id": "UBL-CR-231",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-231]-A UBL invoice should not include the AccountingCustomerParty Party PhysicalLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PhysicalLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-232",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-232]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme RegistrationName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:RegistrationName)",
    "phases": null
  },
  {
    "id": "UBL-CR-233",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-233]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxLevelCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:TaxLevelCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-234",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-234]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme ExemptionReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:ExemptionReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-235",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-235]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme ExemptionReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:ExemptionReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-236",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-236]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-237",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-237]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-238",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-238]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-239",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-239]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-240",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-240]-A UBL invoice should not include the AccountingCustomerParty Party PartyTaxScheme TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-241",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-241]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-242",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-242]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationExpirationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationExpirationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-243",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-243]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLegalFormCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLegalFormCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-244",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-244]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLegalForm",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLegalForm)",
    "phases": null
  },
  {
    "id": "UBL-CR-245",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-245]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity SoleProprietorshipIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:SoleProprietorshipIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-246",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-246]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CompanyLiquidationStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLiquidationStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-247",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-247]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CorporateStockAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CorporateStockAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-248",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-248]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity FullyPaidSharesIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:FullyPaidSharesIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-249",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-249]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-250",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-250]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity CorporateRegistrationScheme",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cac:CorporateRegistrationScheme)",
    "phases": null
  },
  {
    "id": "UBL-CR-251",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-251]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity HeadOfficeParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cac:HeadOfficeParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-252",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-252]-A UBL invoice should not include the AccountingCustomerParty Party PartyLegalEntity ShareholderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cac:ShareholderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-253",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-253]-A UBL invoice should not include the AccountingCustomerParty Party Contact ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-254",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-254]-A UBL invoice should not include the AccountingCustomerParty Party Contact Telefax",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Telefax)",
    "phases": null
  },
  {
    "id": "UBL-CR-255",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-255]-A UBL invoice should not include the AccountingCustomerParty Party Contact Note",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Note)",
    "phases": null
  },
  {
    "id": "UBL-CR-256",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-256]-A UBL invoice should not include the AccountingCustomerParty Party Contact OtherCommunication",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Contact/cac:OtherCommunication)",
    "phases": null
  },
  {
    "id": "UBL-CR-257",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-257]-A UBL invoice should not include the AccountingCustomerParty Party Person",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:Person)",
    "phases": null
  },
  {
    "id": "UBL-CR-258",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-258]-A UBL invoice should not include the AccountingCustomerParty Party AgentParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:AgentParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-259",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-259]-A UBL invoice should not include the AccountingCustomerParty Party ServiceProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:ServiceProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-260",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-260]-A UBL invoice should not include the AccountingCustomerParty Party PowerOfAttorney",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:PowerOfAttorney)",
    "phases": null
  },
  {
    "id": "UBL-CR-261",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-261]-A UBL invoice should not include the AccountingCustomerParty Party FinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:Party/cac:FinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-262",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-262]-A UBL invoice should not include the AccountingCustomerParty DeliveryContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:DeliveryContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-263",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-263]-A UBL invoice should not include the AccountingCustomerParty AccountingContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:AccountingContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-264",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-264]-A UBL invoice should not include the AccountingCustomerParty BuyerContact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AccountingCustomerParty/cac:BuyerContact)",
    "phases": null
  },
  {
    "id": "UBL-CR-265",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-265]-A UBL invoice should not include the PayeeParty MarkCareIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:MarkCareIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-266",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-266]-A UBL invoice should not include the PayeeParty MarkAttentionIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:MarkAttentionIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-267",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-267]-A UBL invoice should not include the PayeeParty WebsiteURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:WebsiteURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-268",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-268]-A UBL invoice should not include the PayeeParty LogoReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:LogoReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-269",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-269]-A UBL invoice should not include the PayeeParty EndpointID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:EndpointID)",
    "phases": null
  },
  {
    "id": "UBL-CR-270",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-270]-A UBL invoice should not include the PayeeParty IndustryClassificationCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cbc:IndustryClassificationCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-271",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-271]-A UBL invoice should not include the PayeeParty Language",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:Language)",
    "phases": null
  },
  {
    "id": "UBL-CR-272",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-272]-A UBL invoice should not include the PayeeParty PostalAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PostalAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-273",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-273]-A UBL invoice should not include the PayeeParty PhysicalLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PhysicalLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-274",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-274]-A UBL invoice should not include the PayeeParty PartyTaxScheme",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyTaxScheme)",
    "phases": null
  },
  {
    "id": "UBL-CR-275",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-275]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:RegistrationName)",
    "phases": null
  },
  {
    "id": "UBL-CR-276",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-276]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:RegistrationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-277",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-277]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationExpirationDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:RegistrationExpirationDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-278",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-278]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLegalFormCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:CompanyLegalFormCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-279",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-279]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLegalForm",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:CompanyLegalForm)",
    "phases": null
  },
  {
    "id": "UBL-CR-280",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-280]-A UBL invoice should not include the PayeeParty PartyLegalEntity SoleProprietorshipIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:SoleProprietorshipIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-281",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-281]-A UBL invoice should not include the PayeeParty PartyLegalEntity CompanyLiquidationStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:CompanyLiquidationStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-282",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-282]-A UBL invoice should not include the PayeeParty PartyLegalEntity CorporateStockAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:CorporateStockAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-283",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-283]-A UBL invoice should not include the PayeeParty PartyLegalEntity FullyPaidSharesIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cbc:FullyPaidSharesIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-284",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-284]-A UBL invoice should not include the PayeeParty PartyLegalEntity RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-285",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-285]-A UBL invoice should not include the PayeeParty PartyLegalEntity CorporateRegistrationScheme",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cac:CorporateRegistrationScheme)",
    "phases": null
  },
  {
    "id": "UBL-CR-286",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-286]-A UBL invoice should not include the PayeeParty PartyLegalEntity HeadOfficeParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cac:HeadOfficeParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-287",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-287]-A UBL invoice should not include the PayeeParty PartyLegalEntity ShareholderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PartyLegalEntity/cac:ShareholderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-288",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-288]-A UBL invoice should not include the PayeeParty Contact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:Contact)",
    "phases": null
  },
  {
    "id": "UBL-CR-289",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-289]-A UBL invoice should not include the PayeeParty Person",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:Person)",
    "phases": null
  },
  {
    "id": "UBL-CR-290",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-290]-A UBL invoice should not include the PayeeParty AgentParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:AgentParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-291",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-291]-A UBL invoice should not include the PayeeParty ServiceProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:ServiceProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-292",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-292]-A UBL invoice should not include the PayeeParty PowerOfAttorney",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:PowerOfAttorney)",
    "phases": null
  },
  {
    "id": "UBL-CR-293",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-293]-A UBL invoice should not include the PayeeParty FinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PayeeParty/cac:FinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-294",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-294]-A UBL invoice should not include the BuyerCustomerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:BuyerCustomerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-295",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-295]-A UBL invoice should not include the SellerSupplierParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:SellerSupplierParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-296",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-296]-A UBL invoice should not include the TaxRepresentativeParty MarkCareIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:MarkCareIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-297",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-297]-A UBL invoice should not include the TaxRepresentativeParty MarkAttentionIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:MarkAttentionIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-298",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-298]-A UBL invoice should not include the TaxRepresentativeParty WebsiteURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:WebsiteURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-299",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-299]-A UBL invoice should not include the TaxRepresentativeParty LogoReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:LogoReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-300",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-300]-A UBL invoice should not include the TaxRepresentativeParty EndpointID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:EndpointID)",
    "phases": null
  },
  {
    "id": "UBL-CR-301",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-301]-A UBL invoice should not include the TaxRepresentativeParty IndustryClassificationCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cbc:IndustryClassificationCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-302",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-302]-A UBL invoice should not include the TaxRepresentativeParty PartyIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-303",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-303]-A UBL invoice should not include the TaxRepresentativeParty Language",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:Language)",
    "phases": null
  },
  {
    "id": "UBL-CR-304",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-304]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-305",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-305]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress AddressTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:AddressTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-306",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-306]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress AddressFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:AddressFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-307",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-307]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Postbox",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:Postbox)",
    "phases": null
  },
  {
    "id": "UBL-CR-308",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-308]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Floor",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:Floor)",
    "phases": null
  },
  {
    "id": "UBL-CR-309",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-309]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Room",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:Room)",
    "phases": null
  },
  {
    "id": "UBL-CR-310",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-310]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BlockName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:BlockName)",
    "phases": null
  },
  {
    "id": "UBL-CR-311",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-311]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BuildingName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:BuildingName)",
    "phases": null
  },
  {
    "id": "UBL-CR-312",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-312]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress BuildingNumber",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:BuildingNumber)",
    "phases": null
  },
  {
    "id": "UBL-CR-313",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-313]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress InhouseMail",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:InhouseMail)",
    "phases": null
  },
  {
    "id": "UBL-CR-314",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-314]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Department",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:Department)",
    "phases": null
  },
  {
    "id": "UBL-CR-315",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-315]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress MarkAttention",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:MarkAttention)",
    "phases": null
  },
  {
    "id": "UBL-CR-316",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-316]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress MarkCare",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:MarkCare)",
    "phases": null
  },
  {
    "id": "UBL-CR-317",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-317]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress PlotIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:PlotIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-318",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-318]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress CitySubdivisionName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:CitySubdivisionName)",
    "phases": null
  },
  {
    "id": "UBL-CR-319",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-319]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress CountrySubentityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:CountrySubentityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-320",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-320]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Region",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:Region)",
    "phases": null
  },
  {
    "id": "UBL-CR-321",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-321]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress District",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:District)",
    "phases": null
  },
  {
    "id": "UBL-CR-322",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-322]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress TimezoneOffset",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cbc:TimezoneOffset)",
    "phases": null
  },
  {
    "id": "UBL-CR-323",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-323]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress Country Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cac:Country/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-324",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-324]-A UBL invoice should not include the TaxRepresentativeParty PostalAddress LocationCoordinate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PostalAddress/cac:LocationCoordinate)",
    "phases": null
  },
  {
    "id": "UBL-CR-325",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-325]-A UBL invoice should not include the TaxRepresentativeParty PhysicalLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PhysicalLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-326",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-326]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme RegistrationName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:RegistrationName)",
    "phases": null
  },
  {
    "id": "UBL-CR-327",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-327]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxLevelCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:TaxLevelCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-328",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-328]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme ExemptionReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:ExemptionReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-329",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-329]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme ExemptionReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:ExemptionReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-330",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-330]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme RegistrationAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cac:RegistrationAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-331",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-331]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-332",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-332]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-333",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-333]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-334",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-334]-A UBL invoice should not include the TaxRepresentativeParty PartyTaxScheme TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyTaxScheme/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-335",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-335]-A UBL invoice should not include the TaxRepresentativeParty PartyLegalEntity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PartyLegalEntity)",
    "phases": null
  },
  {
    "id": "UBL-CR-336",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-336]-A UBL invoice should not include the TaxRepresentativeParty Contact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:Contact)",
    "phases": null
  },
  {
    "id": "UBL-CR-337",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-337]-A UBL invoice should not include the TaxRepresentativeParty Person",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:Person)",
    "phases": null
  },
  {
    "id": "UBL-CR-338",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-338]-A UBL invoice should not include the TaxRepresentativeParty AgentParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:AgentParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-339",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-339]-A UBL invoice should not include the TaxRepresentativeParty ServiceProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:ServiceProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-340",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-340]-A UBL invoice should not include the TaxRepresentativeParty PowerOfAttorney",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:PowerOfAttorney)",
    "phases": null
  },
  {
    "id": "UBL-CR-341",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-341]-A UBL invoice should not include the TaxRepresentativeParty FinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxRepresentativeParty/cac:FinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-342",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-342]-A UBL invoice should not include the Delivery ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-343",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-343]-A UBL invoice should not include the Delivery Quantity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:Quantity)",
    "phases": null
  },
  {
    "id": "UBL-CR-344",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-344]-A UBL invoice should not include the Delivery MinimumQuantity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:MinimumQuantity)",
    "phases": null
  },
  {
    "id": "UBL-CR-345",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-345]-A UBL invoice should not include the Delivery MaximumQuantity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:MaximumQuantity)",
    "phases": null
  },
  {
    "id": "UBL-CR-346",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-346]-A UBL invoice should not include the Delivery ActualDeliveryTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:ActualDeliveryTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-347",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-347]-A UBL invoice should not include the Delivery LatestDeliveryDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:LatestDeliveryDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-348",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-348]-A UBL invoice should not include the Delivery LatestDeliveryTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:LatestDeliveryTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-349",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-349]-A UBL invoice should not include the Delivery ReleaseID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:ReleaseID)",
    "phases": null
  },
  {
    "id": "UBL-CR-350",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-350]-A UBL invoice should not include the Delivery TrackingID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cbc:TrackingID)",
    "phases": null
  },
  {
    "id": "UBL-CR-351",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-351]-A UBL invoice should not include the Delivery DeliveryLocation Description",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:Description)",
    "phases": null
  },
  {
    "id": "UBL-CR-352",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-352]-A UBL invoice should not include the Delivery DeliveryLocation Conditions",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:Conditions)",
    "phases": null
  },
  {
    "id": "UBL-CR-353",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-353]-A UBL invoice should not include the Delivery DeliveryLocation CountrySubentity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:CountrySubentity)",
    "phases": null
  },
  {
    "id": "UBL-CR-354",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-354]-A UBL invoice should not include the Delivery DeliveryLocation CountrySubentityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:CountrySubentityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-355",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-355]-A UBL invoice should not include the Delivery DeliveryLocation LocationTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:LocationTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-356",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-356]-A UBL invoice should not include the Delivery DeliveryLocation InformationURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:InformationURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-357",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-357]-A UBL invoice should not include the Delivery DeliveryLocation Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-358",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-358]-A UBL invoice should not include the Delivery DeliveryLocation ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-359",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-359]-A UBL invoice should not include the Delivery DeliveryLocation Address ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-360",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-360]-A UBL invoice should not include the Delivery DeliveryLocation Address AddressTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:AddressTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-361",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-361]-A UBL invoice should not include the Delivery DeliveryLocation Address AddressFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:AddressFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-362",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-362]-A UBL invoice should not include the Delivery DeliveryLocation Address Postbox",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:Postbox)",
    "phases": null
  },
  {
    "id": "UBL-CR-363",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-363]-A UBL invoice should not include the Delivery DeliveryLocation Address Floor",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:Floor)",
    "phases": null
  },
  {
    "id": "UBL-CR-364",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-364]-A UBL invoice should not include the Delivery DeliveryLocation Address Room",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:Room)",
    "phases": null
  },
  {
    "id": "UBL-CR-365",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-365]-A UBL invoice should not include the Delivery DeliveryLocation Address BlockName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:BlockName)",
    "phases": null
  },
  {
    "id": "UBL-CR-366",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-366]-A UBL invoice should not include the Delivery DeliveryLocation Address BuildingName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:BuildingName)",
    "phases": null
  },
  {
    "id": "UBL-CR-367",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-367]-A UBL invoice should not include the Delivery DeliveryLocation Address BuildingNumber",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:BuildingNumber)",
    "phases": null
  },
  {
    "id": "UBL-CR-368",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-368]-A UBL invoice should not include the Delivery DeliveryLocation Address InhouseMail",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:InhouseMail)",
    "phases": null
  },
  {
    "id": "UBL-CR-369",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-369]-A UBL invoice should not include the Delivery DeliveryLocation Address Department",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:Department)",
    "phases": null
  },
  {
    "id": "UBL-CR-370",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-370]-A UBL invoice should not include the Delivery DeliveryLocation Address MarkAttention",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:MarkAttention)",
    "phases": null
  },
  {
    "id": "UBL-CR-371",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-371]-A UBL invoice should not include the Delivery DeliveryLocation Address MarkCare",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:MarkCare)",
    "phases": null
  },
  {
    "id": "UBL-CR-372",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-372]-A UBL invoice should not include the Delivery DeliveryLocation Address PlotIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:PlotIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-373",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-373]-A UBL invoice should not include the Delivery DeliveryLocation Address CitySubdivisionName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CitySubdivisionName)",
    "phases": null
  },
  {
    "id": "UBL-CR-374",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-374]-A UBL invoice should not include the Delivery DeliveryLocation Address CountrySubentityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-375",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-375]-A UBL invoice should not include the Delivery DeliveryLocation Address Region",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:Region)",
    "phases": null
  },
  {
    "id": "UBL-CR-376",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-376]-A UBL invoice should not include the Delivery DeliveryLocation Address District",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:District)",
    "phases": null
  },
  {
    "id": "UBL-CR-377",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-377]-A UBL invoice should not include the Delivery DeliveryLocation Address TimezoneOffset",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:TimezoneOffset)",
    "phases": null
  },
  {
    "id": "UBL-CR-378",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-378]-A UBL invoice should not include the Delivery DeliveryLocation Address Country Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-379",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-379]-A UBL invoice should not include the Delivery DeliveryLocation Address LocationCoordinate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:Address/cac:LocationCoordinate)",
    "phases": null
  },
  {
    "id": "UBL-CR-380",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-380]-A UBL invoice should not include the Delivery DeliveryLocation SubsidiaryLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:SubsidiaryLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-381",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-381]-A UBL invoice should not include the Delivery DeliveryLocation LocationCoordinate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryLocation/cac:LocationCoordinate)",
    "phases": null
  },
  {
    "id": "UBL-CR-382",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-382]-A UBL invoice should not include the Delivery AlternativeDeliveryLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:AlternativeDeliveryLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-383",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-383]-A UBL invoice should not include the Delivery RequestedDeliveryPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:RequestedDeliveryPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-384",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-384]-A UBL invoice should not include the Delivery EstimatedDeliveryPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:EstimatedDeliveryPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-385",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-385]-A UBL invoice should not include the Delivery CarrierParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:CarrierParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-386",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-386]-A UBL invoice should not include the DeliveryParty MarkCareIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:MarkCareIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-387",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-387]-A UBL invoice should not include the DeliveryParty MarkAttentionIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:MarkAttentionIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-388",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-388]-A UBL invoice should not include the DeliveryParty WebsiteURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:WebsiteURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-389",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-389]-A UBL invoice should not include the DeliveryParty LogoReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:LogoReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-390",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-390]-A UBL invoice should not include the DeliveryParty EndpointID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:EndpointID)",
    "phases": null
  },
  {
    "id": "UBL-CR-391",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-391]-A UBL invoice should not include the DeliveryParty IndustryClassificationCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cbc:IndustryClassificationCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-392",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-392]-A UBL invoice should not include the DeliveryParty PartyIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PartyIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-393",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-393]-A UBL invoice should not include the DeliveryParty Language",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:Language)",
    "phases": null
  },
  {
    "id": "UBL-CR-394",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-394]-A UBL invoice should not include the DeliveryParty PostalAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PostalAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-395",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-395]-A UBL invoice should not include the DeliveryParty PhysicalLocation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PhysicalLocation)",
    "phases": null
  },
  {
    "id": "UBL-CR-396",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-396]-A UBL invoice should not include the DeliveryParty PartyTaxScheme",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PartyTaxScheme)",
    "phases": null
  },
  {
    "id": "UBL-CR-397",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-397]-A UBL invoice should not include the DeliveryParty PartyLegalEntity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PartyLegalEntity)",
    "phases": null
  },
  {
    "id": "UBL-CR-398",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-398]-A UBL invoice should not include the DeliveryParty Contact",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:Contact)",
    "phases": null
  },
  {
    "id": "UBL-CR-399",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-399]-A UBL invoice should not include the DeliveryParty Person",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:Person)",
    "phases": null
  },
  {
    "id": "UBL-CR-400",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-400]-A UBL invoice should not include the DeliveryParty AgentParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:AgentParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-401",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-401]-A UBL invoice should not include the DeliveryParty ServiceProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:ServiceProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-402",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-402]-A UBL invoice should not include the DeliveryParty PowerOfAttorney",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:PowerOfAttorney)",
    "phases": null
  },
  {
    "id": "UBL-CR-403",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-403]-A UBL invoice should not include the DeliveryParty FinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryParty/cac:FinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-404",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-404]-A UBL invoice should not include the Delivery NotifyParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:NotifyParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-405",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-405]-A UBL invoice should not include the Delivery Despatch",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:Despatch)",
    "phases": null
  },
  {
    "id": "UBL-CR-406",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-406]-A UBL invoice should not include the Delivery DeliveryTerms",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryTerms)",
    "phases": null
  },
  {
    "id": "UBL-CR-407",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-407]-A UBL invoice should not include the Delivery MinimumDeliveryUnit",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:MinimumDeliveryUnit)",
    "phases": null
  },
  {
    "id": "UBL-CR-408",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-408]-A UBL invoice should not include the Delivery MaximumDeliveryUnit",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:MaximumDeliveryUnit)",
    "phases": null
  },
  {
    "id": "UBL-CR-409",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-409]-A UBL invoice should not include the Delivery Shipment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:Shipment)",
    "phases": null
  },
  {
    "id": "UBL-CR-410",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-410]-A UBL invoice should not include the DeliveryTerms",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:DeliveryTerms)",
    "phases": null
  },
  {
    "id": "UBL-CR-411",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-411]-A UBL invoice should not include the PaymentMeans ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-412",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-412]-A UBL invoice should not include the PaymentMeans PaymentDueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:PaymentDueDate) or ../cn:CreditNote",
    "phases": null
  },
  {
    "id": "UBL-CR-413",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-413]-A UBL invoice should not include the PaymentMeans PaymentChannelCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:PaymentChannelCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-414",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-414]-A UBL invoice should not include the PaymentMeans InstructionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:InstructionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-415",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-415]-A UBL invoice should not include the PaymentMeans CardAccount CardTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:CardTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-416",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-416]-A UBL invoice should not include the PaymentMeans CardAccount ValidityStartDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:ValidityStartDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-417",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-417]-A UBL invoice should not include the PaymentMeans CardAccount ExpiryDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:ExpiryDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-418",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-418]-A UBL invoice should not include the PaymentMeans CardAccount IssuerID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:IssuerID)",
    "phases": null
  },
  {
    "id": "UBL-CR-419",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-419]-A UBL invoice should not include the PaymentMeans CardAccount IssueNumberID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:IssueNumberID)",
    "phases": null
  },
  {
    "id": "UBL-CR-420",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-420]-A UBL invoice should not include the PaymentMeans CardAccount CV2ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:CV2ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-421",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-421]-A UBL invoice should not include the PaymentMeans CardAccount CardChipCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:CardChipCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-422",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-422]-A UBL invoice should not include the PaymentMeans CardAccount ChipApplicationID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CardAccount/cbc:ChipApplicationID)",
    "phases": null
  },
  {
    "id": "UBL-CR-424",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-424]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AliasName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:AliasName)",
    "phases": null
  },
  {
    "id": "UBL-CR-425",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-425]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AccountTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:AccountTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-426",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-426]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount AccountFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:AccountFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-427",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-427]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-428",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-428]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount PaymentNote",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:PaymentNote)",
    "phases": null
  },
  {
    "id": "UBL-CR-429",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-429]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-430",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-430]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch FinancialInstitution Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-431",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-431]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch FinancialInstitution Address",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address)",
    "phases": null
  },
  {
    "id": "UBL-CR-432",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-432]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount FinancialInstitutionBranch Address",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:Address)",
    "phases": null
  },
  {
    "id": "UBL-CR-433",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-433]-A UBL invoice should not include the PaymentMeans PayeeFinancialAccount Country",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:Country)",
    "phases": null
  },
  {
    "id": "UBL-CR-434",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-434]-A UBL invoice should not include the PaymentMeans CreditAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:CreditAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-435",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-435]-A UBL invoice should not include the PaymentMeans PaymentMandate MandateTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cbc:MandateTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-436",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-436]-A UBL invoice should not include the PaymentMeans PaymentMandate MaximumPaymentInstructionsNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cbc:MaximumPaymentInstructionsNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-437",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-437]-A UBL invoice should not include the PaymentMeans PaymentMandate MaximumPaidAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cbc:MaximumPaidAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-438",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-438]-A UBL invoice should not include the PaymentMeans PaymentMandate SignatureID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cbc:SignatureID)",
    "phases": null
  },
  {
    "id": "UBL-CR-439",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-439]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-440",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-440]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-441",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-441]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AliasName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:AliasName)",
    "phases": null
  },
  {
    "id": "UBL-CR-442",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-442]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AccountTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:AccountTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-443",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-443]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount AccountFormatCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:AccountFormatCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-444",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-444]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-445",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-445]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount PaymentNote",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:PaymentNote)",
    "phases": null
  },
  {
    "id": "UBL-CR-446",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-446]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount FinancialInstitutionBranch",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch)",
    "phases": null
  },
  {
    "id": "UBL-CR-447",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-447]-A UBL invoice should not include the PaymentMeans PaymentMandate PayerFinancialAccount Country",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cac:Country)",
    "phases": null
  },
  {
    "id": "UBL-CR-448",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-448]-A UBL invoice should not include the PaymentMeans PaymentMandate ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-449",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-449]-A UBL invoice should not include the PaymentMeans PaymentMandate PaymentReversalPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:PaymentReversalPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-450",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-450]-A UBL invoice should not include the PaymentMeans PaymentMandate Clause",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PaymentMandate/cac:Clause)",
    "phases": null
  },
  {
    "id": "UBL-CR-451",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-451]-A UBL invoice should not include the PaymentMeans TradeFinancing",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:TradeFinancing)",
    "phases": null
  },
  {
    "id": "UBL-CR-452",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-452]-A UBL invoice should not include the PaymentTerms ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-453",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-453]-A UBL invoice should not include the PaymentTerms PaymentMeansID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PaymentMeansID)",
    "phases": null
  },
  {
    "id": "UBL-CR-454",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-454]-A UBL invoice should not include the PaymentTerms PrepaidPaymentReferenceID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PrepaidPaymentReferenceID)",
    "phases": null
  },
  {
    "id": "UBL-CR-455",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-455]-A UBL invoice should not include the PaymentTerms ReferenceEventCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:ReferenceEventCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-456",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-456]-A UBL invoice should not include the PaymentTerms SettlementDiscountPercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:SettlementDiscountPercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-457",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-457]-A UBL invoice should not include the PaymentTerms PenaltySurchargePercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PenaltySurchargePercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-458",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-458]-A UBL invoice should not include the PaymentTerms PaymentPercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PaymentPercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-459",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-459]-A UBL invoice should not include the PaymentTerms Amount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:Amount)",
    "phases": null
  },
  {
    "id": "UBL-CR-460",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-460]-A UBL invoice should not include the PaymentTerms SettlementDiscountAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:SettlementDiscountAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-461",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-461]-A UBL invoice should not include the PaymentTerms PenaltyAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PenaltyAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-462",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-462]-A UBL invoice should not include the PaymentTerms PaymentTermsDetailsURI",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PaymentTermsDetailsURI)",
    "phases": null
  },
  {
    "id": "UBL-CR-463",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-463]-A UBL invoice should not include the PaymentTerms PaymentDueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:PaymentDueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-464",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-464]-A UBL invoice should not include the PaymentTerms InstallmentDueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:InstallmentDueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-465",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-465]-A UBL invoice should not include the PaymentTerms InvoicingPartyReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cbc:InvoicingPartyReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-466",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-466]-A UBL invoice should not include the PaymentTerms SettlementPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cac:SettlementPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-467",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-467]-A UBL invoice should not include the PaymentTerms PenaltyPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cac:PenaltyPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-468",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-468]-A UBL invoice should not include the PaymentTerms ExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cac:ExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-469",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-469]-A UBL invoice should not include the PaymentTerms ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentTerms/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-470",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-470]-A UBL invoice should not include the PrepaidPayment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PrepaidPayment)",
    "phases": null
  },
  {
    "id": "UBL-CR-471",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-471]-A UBL invoice should not include the AllowanceCharge ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-472",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-472]-A UBL invoice should not include the AllowanceCharge PrepaidIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:PrepaidIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-473",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-473]-A UBL invoice should not include the AllowanceCharge SequenceNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:SequenceNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-474",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-474]-A UBL invoice should not include the AllowanceCharge AccountingCostCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:AccountingCostCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-475",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-475]-A UBL invoice should not include the AllowanceCharge AccountingCost",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:AccountingCost)",
    "phases": null
  },
  {
    "id": "UBL-CR-476",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-476]-A UBL invoice should not include the AllowanceCharge PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-477",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-477]-A UBL invoice should not include the AllowanceCharge TaxCategory Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-478",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-478]-A UBL invoice should not include the AllowanceCharge TaxCategory BaseUnitMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:BaseUnitMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-479",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-479]-A UBL invoice should not include the AllowanceCharge TaxCategory PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-480",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-480]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxExemptionReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:TaxExemptionReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-481",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-481]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxExemptionReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:TaxExemptionReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-482",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-482]-A UBL invoice should not include the AllowanceCharge TaxCategory TierRange",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:TierRange)",
    "phases": null
  },
  {
    "id": "UBL-CR-483",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-483]-A UBL invoice should not include the AllowanceCharge TaxCategory TierRatePercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cbc:TierRatePercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-484",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-484]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-485",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-485]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-486",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-486]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-487",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-487]-A UBL invoice should not include the AllowanceCharge TaxCategory TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxCategory/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-488",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-488]-A UBL invoice should not include the AllowanceCharge TaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:TaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-489",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-489]-A UBL invoice should not include the AllowanceCharge PaymentMeans",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AllowanceCharge/cac:PaymentMeans)",
    "phases": null
  },
  {
    "id": "UBL-CR-490",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-490]-A UBL invoice should not include the TaxExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-491",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-491]-A UBL invoice should not include the PricingExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PricingExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-492",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-492]-A UBL invoice should not include the PaymentExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-493",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-493]-A UBL invoice should not include the PaymentAlternativeExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentAlternativeExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-494",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-494]-A UBL invoice should not include the TaxTotal RoundingAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cbc:RoundingAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-495",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-495]-A UBL invoice should not include the TaxTotal TaxEvidenceIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cbc:TaxEvidenceIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-496",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-496]-A UBL invoice should not include the TaxTotal TaxIncludedIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cbc:TaxIncludedIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-497",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-497]-A UBL invoice should not include the TaxTotal TaxSubtotal CalulationSequenceNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:CalculationSequenceNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-498",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-498]-A UBL invoice should not include the TaxTotal TaxSubtotal TransactionCurrencyTaxAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:TransactionCurrencyTaxAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-499",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-499]-A UBL invoice should not include the TaxTotal TaxSubtotal Percent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:Percent)",
    "phases": null
  },
  {
    "id": "UBL-CR-500",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-500]-A UBL invoice should not include the TaxTotal TaxSubtotal BaseUnitMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:BaseUnitMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-501",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-501]-A UBL invoice should not include the TaxTotal TaxSubtotal PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-502",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-502]-A UBL invoice should not include the TaxTotal TaxSubtotal TierRange",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:TierRange)",
    "phases": null
  },
  {
    "id": "UBL-CR-503",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-503]-A UBL invoice should not include the TaxTotal TaxSubtotal TierRatePercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cbc:TierRatePercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-504",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-504]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-505",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-505]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory BaseUnitMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:BaseUnitMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-506",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-506]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-507",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-507]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TierRange",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TierRange)",
    "phases": null
  },
  {
    "id": "UBL-CR-508",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-508]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TierRatePercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:TierRatePercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-509",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-509]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-510",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-510]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-511",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-511]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-512",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-512]-A UBL invoice should not include the TaxTotal TaxSubtotal TaxCategory TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-513",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-513]-A UBL invoice should not include the WithholdingTaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:WithholdingTaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-514",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-514]-A UBL invoice should not include the LegalMonetaryTotal PayableAlternativeAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:LegalMonetaryTotal/cbc:PayableAlternativeAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-515",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-515]-A UBL invoice should not include the InvoiceLine UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-516",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-516]-A UBL invoice should not include the InvoiceLine TaxPointDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:TaxPointDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-517",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-517]-A UBL invoice should not include the InvoiceLine AccountingCostCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:AccountingCostCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-518",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-518]-A UBL invoice should not include the InvoiceLine PaymentPurposeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:PaymentPurposeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-519",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-519]-A UBL invoice should not include the InvoiceLine FreeOfChargeIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cbc:FreeOfChargeIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-520",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-520]-A UBL invoice should not include the InvoiceLine InvoicePeriod StartTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:StartTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-521",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-521]-A UBL invoice should not include the InvoiceLine InvoicePeriod EndTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:EndTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-522",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-522]-A UBL invoice should not include the InvoiceLine InvoicePeriod DurationMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:DurationMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-523",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-523]-A UBL invoice should not include the InvoiceLine InvoicePeriod DescriptionCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:DescriptionCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-524",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-524]-A UBL invoice should not include the InvoiceLine InvoicePeriod Description",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:InvoicePeriod/cbc:Description)",
    "phases": null
  },
  {
    "id": "UBL-CR-525",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-525]-A UBL invoice should not include the InvoiceLine OrderLineReference SalesOrderLineID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OrderLineReference/cbc:SalesOrderLineID)",
    "phases": null
  },
  {
    "id": "UBL-CR-526",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-526]-A UBL invoice should not include the InvoiceLine OrderLineReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OrderLineReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-527",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-527]-A UBL invoice should not include the InvoiceLine OrderLineReference LineStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OrderLineReference/cbc:LineStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-528",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-528]-A UBL invoice should not include the InvoiceLine OrderLineReference OrderReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OrderLineReference/cac:OrderReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-529",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-529]-A UBL invoice should not include the InvoiceLine DespatchLineReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DespatchLineReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-530",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-530]-A UBL invoice should not include the InvoiceLine ReceiptLineReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:ReceiptLineReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-531",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-531]-A UBL invoice should not include the InvoiceLine BillingReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:BillingReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-532",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-532]-A UBL invoice should not include the InvoiceLine DocumentReference CopyIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:CopyIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-533",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-533]-A UBL invoice should not include the InvoiceLine DocumentReference UUID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:UUID)",
    "phases": null
  },
  {
    "id": "UBL-CR-534",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-534]-A UBL invoice should not include the InvoiceLine DocumentReference IssueDate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:IssueDate)",
    "phases": null
  },
  {
    "id": "UBL-CR-535",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-535]-A UBL invoice should not include the InvoiceLine DocumentReference IssueTime",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:IssueTime)",
    "phases": null
  },
  {
    "id": "UBL-CR-537",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-537]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:DocumentType)",
    "phases": null
  },
  {
    "id": "UBL-CR-538",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-538]-A UBL invoice should not include the InvoiceLine DocumentReference Xpath",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:XPath)",
    "phases": null
  },
  {
    "id": "UBL-CR-539",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-539]-A UBL invoice should not include the InvoiceLine DocumentReference LanguageID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:LanguageID)",
    "phases": null
  },
  {
    "id": "UBL-CR-540",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-540]-A UBL invoice should not include the InvoiceLine DocumentReference LocaleCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:LocaleCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-541",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-541]-A UBL invoice should not include the InvoiceLine DocumentReference VersionID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:VersionID)",
    "phases": null
  },
  {
    "id": "UBL-CR-542",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-542]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentStatusCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:DocumentStatusCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-543",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-543]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentDescription",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-544",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-544]-A UBL invoice should not include the InvoiceLine DocumentReference Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-545",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-545]-A UBL invoice should not include the InvoiceLine DocumentReference ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cac:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-546",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-546]-A UBL invoice should not include the InvoiceLine DocumentReference IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-547",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-547]-A UBL invoice should not include the InvoiceLine DocumentReference ResultOfVerification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cac:ResultOfVerification)",
    "phases": null
  },
  {
    "id": "UBL-CR-548",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-548]-A UBL invoice should not include the InvoiceLine PricingReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:PricingReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-549",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-549]-A UBL invoice should not include the InvoiceLine OriginatorParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:OriginatorParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-550",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-550]-A UBL invoice should not include the InvoiceLine Delivery",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Delivery)",
    "phases": null
  },
  {
    "id": "UBL-CR-551",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-551]-A UBL invoice should not include the InvoiceLine PaymentTerms",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:PaymentTerms)",
    "phases": null
  },
  {
    "id": "UBL-CR-552",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-552]-A UBL invoice should not include the InvoiceLine AllowanceCharge ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-553",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-553]-A UBL invoice should not include the InvoiceLine AllowanceCharge PrepaidIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:PrepaidIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-554",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-554]-A UBL invoice should not include the InvoiceLine AllowanceCharge SequenceNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:SequenceNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-555",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-555]-A UBL invoice should not include the InvoiceLine AllowanceCharge AccountingCostCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:AccountingCostCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-556",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-556]-A UBL invoice should not include the InvoiceLine AllowanceCharge AccountingCost",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:AccountingCost)",
    "phases": null
  },
  {
    "id": "UBL-CR-557",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-557]-A UBL invoice should not include the InvoiceLine AllowanceCharge PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-558",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-558]-A UBL invoice should not include the InvoiceLine AllowanceCharge TaxCategory",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cac:TaxCategory)",
    "phases": null
  },
  {
    "id": "UBL-CR-559",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-559]-A UBL invoice should not include the InvoiceLine AllowanceCharge TaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cac:TaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-560",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-560]-A UBL invoice should not include the InvoiceLine AllowanceCharge PaymentMeans",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cac:PaymentMeans)",
    "phases": null
  },
  {
    "id": "UBL-CR-561",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-561]-A UBL invoice should not include the InvoiceLine TaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:TaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-562",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-562]-A UBL invoice should not include the InvoiceLine WithholdingTaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:WithholdingTaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-563",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-563]-A UBL invoice should not include the InvoiceLine Item PackQuantity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:PackQuantity)",
    "phases": null
  },
  {
    "id": "UBL-CR-564",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-564]-A UBL invoice should not include the InvoiceLine Item PackSizeNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:PackSizeNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-565",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-565]-A UBL invoice should not include the InvoiceLine Item CatalogueIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:CatalogueIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-566",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-566]-A UBL invoice should not include the InvoiceLine Item HazardousRiskIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:HazardousRiskIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-567",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-567]-A UBL invoice should not include the InvoiceLine Item AdditionalInformation",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:AdditionalInformation)",
    "phases": null
  },
  {
    "id": "UBL-CR-568",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-568]-A UBL invoice should not include the InvoiceLine Item Keyword",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:Keyword)",
    "phases": null
  },
  {
    "id": "UBL-CR-569",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-569]-A UBL invoice should not include the InvoiceLine Item BrandName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:BrandName)",
    "phases": null
  },
  {
    "id": "UBL-CR-570",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-570]-A UBL invoice should not include the InvoiceLine Item ModelName",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cbc:ModelName)",
    "phases": null
  },
  {
    "id": "UBL-CR-571",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-571]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification ExtendedID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:BuyersItemIdentification/cbc:ExtendedID)",
    "phases": null
  },
  {
    "id": "UBL-CR-572",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-572]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification BarcodeSymbologyID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:BuyersItemIdentification/cbc:BarcodeSymbologyID)",
    "phases": null
  },
  {
    "id": "UBL-CR-573",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-573]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification PhysicalAttribute",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:BuyersItemIdentification/cac:PhysicalAttribute)",
    "phases": null
  },
  {
    "id": "UBL-CR-574",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-574]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification MeasurementDimension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:BuyersItemIdentification/cac:MeasurementDimension)",
    "phases": null
  },
  {
    "id": "UBL-CR-575",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-575]-A UBL invoice should not include the InvoiceLine Item BuyersItemIdentification IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:BuyersItemIdentification/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-576",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-576]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification ExtendedID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:SellersItemIdentification/cbc:ExtendedID)",
    "phases": null
  },
  {
    "id": "UBL-CR-577",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-577]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification BarcodeSymbologyID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:SellersItemIdentification/cbc:BarcodeSymbologyID)",
    "phases": null
  },
  {
    "id": "UBL-CR-578",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-578]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification PhysicalAttribute",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:SellersItemIdentification/cac:PhysicalAttribute)",
    "phases": null
  },
  {
    "id": "UBL-CR-579",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-579]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification MeasurementDimension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:SellersItemIdentification/cac:MeasurementDimension)",
    "phases": null
  },
  {
    "id": "UBL-CR-580",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-580]-A UBL invoice should not include the InvoiceLine Item SellersItemIdentification IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:SellersItemIdentification/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-581",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-581]-A UBL invoice should not include the InvoiceLine Item ManufacturersItemIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ManufacturersItemIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-582",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-582]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification ExtendedID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:StandardItemIdentification/cbc:ExtendedID)",
    "phases": null
  },
  {
    "id": "UBL-CR-583",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-583]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification BarcodeSymbologyID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:StandardItemIdentification/cbc:BarcodeSymbologyID)",
    "phases": null
  },
  {
    "id": "UBL-CR-584",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-584]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification PhysicalAttribute",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:StandardItemIdentification/cac:PhysicalAttribute)",
    "phases": null
  },
  {
    "id": "UBL-CR-585",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-585]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification MeasurementDimension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:StandardItemIdentification/cac:MeasurementDimension)",
    "phases": null
  },
  {
    "id": "UBL-CR-586",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-586]-A UBL invoice should not include the InvoiceLine Item StandardItemIdentification IssuerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:StandardItemIdentification/cac:IssuerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-587",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-587]-A UBL invoice should not include the InvoiceLine Item CatalogueItemIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CatalogueItemIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-588",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-588]-A UBL invoice should not include the InvoiceLine Item AdditionalItemIdentification",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemIdentification)",
    "phases": null
  },
  {
    "id": "UBL-CR-589",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-589]-A UBL invoice should not include the InvoiceLine Item CatalogueDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CatalogueDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-590",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-590]-A UBL invoice should not include the InvoiceLine Item ItemSpecificationDocumentReference",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ItemSpecificationDocumentReference)",
    "phases": null
  },
  {
    "id": "UBL-CR-591",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-591]-A UBL invoice should not include the InvoiceLine Item OriginCountry Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:OriginCountry/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-592",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-592]-A UBL invoice should not include the InvoiceLine Item CommodityClassification NatureCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CommodityClassification/cbc:NatureCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-593",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-593]-A UBL invoice should not include the InvoiceLine Item CommodityClassification CargoTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CommodityClassification/cbc:CargoTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-594",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-594]-A UBL invoice should not include the InvoiceLine Item CommodityClassification CommodityCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:CommodityClassification/cbc:CommodityCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-595",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-595]-A UBL invoice should not include the InvoiceLine Item TransactionConditions",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:TransactionConditions)",
    "phases": null
  },
  {
    "id": "UBL-CR-596",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-596]-A UBL invoice should not include the InvoiceLine Item HazardousItem",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:HazardousItem)",
    "phases": null
  },
  {
    "id": "UBL-CR-597",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-597]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-598",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-598]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory BaseUnitMeasure",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:BaseUnitMeasure)",
    "phases": null
  },
  {
    "id": "UBL-CR-599",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-599]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-600",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-600]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxExemptionReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-601",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-601]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxExemptionReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-602",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-602]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TierRange",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:TierRange)",
    "phases": null
  },
  {
    "id": "UBL-CR-603",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-603]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TierRatePercent",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cbc:TierRatePercent)",
    "phases": null
  },
  {
    "id": "UBL-CR-604",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-604]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme Name",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme/cbc:Name)",
    "phases": null
  },
  {
    "id": "UBL-CR-605",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-605]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme TaxTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme/cbc:TaxTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-606",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-606]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme CurrencyCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme/cbc:CurrencyCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-607",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-607]-A UBL invoice should not include the InvoiceLine Item ClassifiedTaxCategory TaxScheme JurisdictionRegionAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory/cac:TaxScheme/cac:JurisdictionRegionAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-608",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-608]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-609",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-609]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty NameCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:NameCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-610",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-610]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty TestMethod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:TestMethod)",
    "phases": null
  },
  {
    "id": "UBL-CR-611",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-611]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ValueQuantity",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:ValueQuantity)",
    "phases": null
  },
  {
    "id": "UBL-CR-612",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-612]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ValueQualifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:ValueQualifier)",
    "phases": null
  },
  {
    "id": "UBL-CR-613",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-613]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ImportanceCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:ImportanceCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-614",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-614]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ListValue",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cbc:ListValue)",
    "phases": null
  },
  {
    "id": "UBL-CR-615",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-615]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty UsabilityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cac:UsabilityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-616",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-616]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ItemPropertyGroup",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cac:ItemPropertyGroup)",
    "phases": null
  },
  {
    "id": "UBL-CR-617",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-617]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty RangeDimension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cac:RangeDimension)",
    "phases": null
  },
  {
    "id": "UBL-CR-618",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-618]-A UBL invoice should not include the InvoiceLine Item AdditionalItemProperty ItemPropertyRange",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty/cac:ItemPropertyRange)",
    "phases": null
  },
  {
    "id": "UBL-CR-619",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-619]-A UBL invoice should not include the InvoiceLine Item ManufacturerParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ManufacturerParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-620",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-620]-A UBL invoice should not include the InvoiceLine Item InformationContentProviderParty",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:InformationContentProviderParty)",
    "phases": null
  },
  {
    "id": "UBL-CR-621",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-621]-A UBL invoice should not include the InvoiceLine Item OriginAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:OriginAddress)",
    "phases": null
  },
  {
    "id": "UBL-CR-622",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-622]-A UBL invoice should not include the InvoiceLine Item ItemInstance",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:ItemInstance)",
    "phases": null
  },
  {
    "id": "UBL-CR-623",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-623]-A UBL invoice should not include the InvoiceLine Item Certificate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:Certificate)",
    "phases": null
  },
  {
    "id": "UBL-CR-624",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-624]-A UBL invoice should not include the InvoiceLine Item Dimension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Item/cac:Dimension)",
    "phases": null
  },
  {
    "id": "UBL-CR-625",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-625]-A UBL invoice should not include the InvoiceLine Item Price PriceChangeReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:PriceChangeReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-626",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-626]-A UBL invoice should not include the InvoiceLine Item Price PriceTypeCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:PriceTypeCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-627",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-627]-A UBL invoice should not include the InvoiceLine Item Price PriceType",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:PriceType)",
    "phases": null
  },
  {
    "id": "UBL-CR-628",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-628]-A UBL invoice should not include the InvoiceLine Item Price OrderableUnitFactorRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:OrderableUnitFactorRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-629",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-629]-A UBL invoice should not include the InvoiceLine Item Price ValidityPeriod",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:ValidityPeriod)",
    "phases": null
  },
  {
    "id": "UBL-CR-630",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-630]-A UBL invoice should not include the InvoiceLine Item Price PriceList",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cbc:PriceList)",
    "phases": null
  },
  {
    "id": "UBL-CR-632",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-632]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge ID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-CR-633",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-633]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AllowanceChargeReasonCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-634",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-634]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AllowanceChargeReason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:AllowanceChargeReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-635",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-635]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge MultiplierFactorNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:MultiplierFactorNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-636",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-636]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PrepaidIndicator",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:PrepaidIndicator)",
    "phases": null
  },
  {
    "id": "UBL-CR-637",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-637]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge SequenceNumeric",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:SequenceNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-638",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-638]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AccountingCostCode",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:AccountingCostCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-639",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-639]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge AccountingCost",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:AccountingCost)",
    "phases": null
  },
  {
    "id": "UBL-CR-640",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-640]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PerUnitAmount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount)",
    "phases": null
  },
  {
    "id": "UBL-CR-641",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-641]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge TaxCategory",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cac:TaxCategory)",
    "phases": null
  },
  {
    "id": "UBL-CR-642",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-642]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge TaxTotal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cac:TaxTotal)",
    "phases": null
  },
  {
    "id": "UBL-CR-643",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-643]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PaymentMeans",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cac:PaymentMeans)",
    "phases": null
  },
  {
    "id": "UBL-CR-644",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-644]-A UBL invoice should not include the InvoiceLine Item Price PricingExchangeRate",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:PricingExchangeRate)",
    "phases": null
  },
  {
    "id": "UBL-CR-645",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-645]-A UBL invoice should not include the InvoiceLine DeliveryTerms",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DeliveryTerms)",
    "phases": null
  },
  {
    "id": "UBL-CR-646",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-646]-A UBL invoice should not include the InvoiceLine SubInvoiceLine",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:SubInvoiceLine)",
    "phases": null
  },
  {
    "id": "UBL-CR-647",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-647]-A UBL invoice should not include the InvoiceLine ItemPriceExtension",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not((cac:InvoiceLine|cac:CreditNoteLine)/cac:ItemPriceExtension)",
    "phases": null
  },
  {
    "id": "UBL-CR-648",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-648]-A UBL invoice should not include the CustomizationID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:CustomizationID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-649",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-649]-A UBL invoice should not include the ProfileID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:ProfileID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-650",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-650]-A UBL invoice shall not include the Invoice ID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-651",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-651]-A UBL invoice should not include the SalesOrderID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:SalesOrderID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-652",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-652]-A UBL invoice should not include the PartyTaxScheme CompanyID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:PartyTaxScheme/cbc:CompanyID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-653",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-653]-A UBL invoice should not include the PaymentID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:PaymentID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-654",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-654]-A UBL invoice should not include the PayeeFinancialAccount scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-655",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-655]-A UBL invoice shall not include the FinancialInstitutionBranch ID scheme identifier",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-656",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-656]-A UBL invoice should not include the InvoiceTypeCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:InvoiceTypeCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-657",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-657]-A UBL invoice should not include the DocumentCurrencyCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:DocumentCurrencyCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-658",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-658]-A UBL invoice should not include the TaxCurrencyCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:TaxCurrencyCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-659",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-659]-A UBL invoice shall not include the AdditionalDocumentReference DocumentTypeCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:AdditionalDocumentReference/cbc:DocumentTypeCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-660",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-660]-A UBL invoice should not include the Country Identification code listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:Country/cbc:IdentificationCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-661",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-661]-A UBL invoice should not include the PaymentMeansCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:PaymentMeansCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-662",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-662]-A UBL invoice should not include the AllowanceChargeReasonCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cbc:AllowanceChargeReasonCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-663",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-663]-A UBL invoice should not include the unitCodeListID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@unitCodeListID)",
    "phases": null
  },
  {
    "id": "UBL-CR-664",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-664]-A UBL invoice should not include the FinancialInstitutionBranch FinancialInstitution",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:FinancialInstitution)",
    "phases": null
  },
  {
    "id": "UBL-CR-665",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-665]-A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130'",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode != '130' or not(cbc:DocumentTypeCode)]/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-666",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-CR-666]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Attachment",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cac:Attachment)",
    "phases": null
  },
  {
    "id": "UBL-CR-667",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-667]-A UBL invoice should not include a Buyer Item Identification schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:BuyersItemIdentification/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-668",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-668]-A UBL invoice should not include a Sellers Item Identification schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:SellersItemIdentification/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-669",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-669]-A UBL invoice should not include a Price Allowance Reason Code",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:Price/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode)",
    "phases": null
  },
  {
    "id": "UBL-CR-670",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-670]-A UBL invoice should not include a Price Allowance Reason",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:Price/cac:AllowanceCharge/cbc:AllowanceChargeReason)",
    "phases": null
  },
  {
    "id": "UBL-CR-671",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-671]-A UBL invoice should not include a Price Allowance Multiplier Factor",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:Price/cac:AllowanceCharge/cbc:MultiplierFactorNumeric)",
    "phases": null
  },
  {
    "id": "UBL-CR-672",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-672]-A UBL credit note should not include the CreditNoteTypeCode listID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cbc:CreditNoteTypeCode/@listID)",
    "phases": null
  },
  {
    "id": "UBL-CR-673",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-CR-673]-A UBL invoice shall not include an AdditionalDocumentReference simultaneously referring an Invoice Object Identifier and an Document Description",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:AdditionalDocumentReference[cbc:DocumentTypeCode  = '130']/cbc:DocumentDescription)",
    "phases": null
  },
  {
    "id": "UBL-CR-674",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-674]-A UBL invoice should not include the PrimaryAccountNumberID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cbc:PrimaryAccountNumberID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-675",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-675]-A UBL invoice should not include the NetworkID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:CardAccount/cbc:NetworkID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-676",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-676]-A UBL invoice should not include the PaymentMandate/ID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:PaymentMandate/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-677",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-677]-A UBL invoice should not include the PayerFinancialAccount/ID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-678",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-678]-A UBL invoice should not include the TaxCategory/ID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:TaxCategory/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-679",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-679]-A UBL invoice should not include the ClassifiedTaxCategory/ID schemeID",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:ClassifiedTaxCategory/cbc:ID/@schemeID)",
    "phases": null
  },
  {
    "id": "UBL-CR-680",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-680]-A UBL invoice should not include the PaymentMeans/PayerFinancialAccount",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//cac:PaymentMeans/cac:PayerFinancialAccount)",
    "phases": null
  },
  {
    "id": "UBL-CR-681",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-681]-A UBL invoice should not include the PaymentMeans InstructionNote",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:PaymentMeans/cbc:InstructionNote)",
    "phases": null
  },
  {
    "id": "UBL-CR-682",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-CR-682]-A UBL invoice should not include the Delivery DeliveryAddress",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(cac:Delivery/cac:DeliveryAddress)",
    "phases": null
  },
  {
    "id": "UBL-DT-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-08]-Scheme name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@schemeName)",
    "phases": null
  },
  {
    "id": "UBL-DT-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-09]-Scheme agency name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@schemeAgencyName)",
    "phases": null
  },
  {
    "id": "UBL-DT-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-10]-Scheme data uri attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@schemeDataURI)",
    "phases": null
  },
  {
    "id": "UBL-DT-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-11]-Scheme uri attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@schemeURI)",
    "phases": null
  },
  {
    "id": "UBL-DT-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-12]-Format attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@format)",
    "phases": null
  },
  {
    "id": "UBL-DT-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-13]-Unit code list identifier attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@unitCodeListIdentifier)",
    "phases": null
  },
  {
    "id": "UBL-DT-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-14]-Unit code list agency identifier attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@unitCodeListAgencyIdentifier)",
    "phases": null
  },
  {
    "id": "UBL-DT-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-15]-Unit code list agency name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@unitCodeListAgencyName)",
    "phases": null
  },
  {
    "id": "UBL-DT-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-16]-List agency name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@listAgencyName)",
    "phases": null
  },
  {
    "id": "UBL-DT-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-17]-List name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@listName)",
    "phases": null
  },
  {
    "id": "UBL-DT-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-18]-Name attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(//@name) - count(//cbc:PaymentMeansCode/@name) \u003c= 0",
    "phases": null
  },
  {
    "id": "UBL-DT-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-19]-Language identifier attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@languageID)",
    "phases": null
  },
  {
    "id": "UBL-DT-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-20]-List uri attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@listURI)",
    "phases": null
  },
  {
    "id": "UBL-DT-21",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-21]-List scheme uri attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@listSchemeURI)",
    "phases": null
  },
  {
    "id": "UBL-DT-22",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-22]-Language local identifier attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@languageLocaleID)",
    "phases": null
  },
  {
    "id": "UBL-DT-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-23]-Uri attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@uri)",
    "phases": null
  },
  {
    "id": "UBL-DT-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-24]-Currency code list version id should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@currencyCodeListVersionID)",
    "phases": null
  },
  {
    "id": "UBL-DT-25",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-25]-CharacterSetCode attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@characterSetCode)",
    "phases": null
  },
  {
    "id": "UBL-DT-26",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-26]-EncodingCode attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@encodingCode)",
    "phases": null
  },
  {
    "id": "UBL-DT-27",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-27]-Scheme Agency ID attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@schemeAgencyID)",
    "phases": null
  },
  {
    "id": "UBL-DT-28",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "warning",
    "text": "[UBL-DT-28]-List Agency ID attribute should not be present",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "not(//@listAgencyID)",
    "phases": null
  },
  {
    "id": "UBL-SR-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-01]-Contract identifier shall occur maximum once.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:ContractDocumentReference/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-02",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-02]-Receive advice identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:ReceiptDocumentReference/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-03]-Despatch advice identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:DespatchDocumentReference/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-04]-Invoice object identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='130']/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-05]-Payment terms shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:PaymentTerms/cbc:Note) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-08",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-08]-Invoice period shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:InvoicePeriod) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-09",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-09]-Seller name shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-10]-Seller trader name shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-11]-Seller legal registration identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-12",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-12]-Seller VAT identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/upper-case(cbc:ID)='VAT']/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-13]-Seller tax registration shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/upper-case(cbc:ID)!='VAT']/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-14]-Seller additional legal information shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyLegalForm) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-15]-Buyer name shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-16]-Buyer identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-17]-Buyer legal registration identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-18]-Buyer VAT identifier shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/upper-case(cbc:ID)='VAT']/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-24]-Deliver to information shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:Delivery) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-29",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-29]-Bank creditor reference shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(//cac:PartyIdentification/cbc:ID[upper-case(@schemeID) = 'SEPA']) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-39",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-39]-Project reference shall occur maximum once.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:ProjectReference/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-40",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-40]-Buyer trade name shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-44",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-44]-An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(distinct-values(//cbc:PaymentID)) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-45",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-45]-Due Date shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:PaymentMeans/cbc:PaymentDueDate) \u003c=1)",
    "phases": null
  },
  {
    "id": "UBL-SR-46",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-46]-Payment means text shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:PaymentMeans/cbc:PaymentMeansCode/@name) \u003c=1)",
    "phases": null
  },
  {
    "id": "UBL-SR-47",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-47]-When there are more than one payment means code, they shall be equal",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(//cbc:PaymentMeansCode[not(preceding::cbc:PaymentMeansCode/. = .)]) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-49",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-49]-Value tax point date shall occur maximum once",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "(count(cac:InvoicePeriod/cbc:DescriptionCode) \u003c=1)",
    "phases": null
  },
  {
    "id": "UBL-SR-54",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-54]-An Invoice shall contain maximum one Payment Card account (BG-18).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(cac:PaymentMeans/cac:CardAccount) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-55",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-55]-An Invoice shall contain maximum one Payment Mandate (BG-19).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(cac:PaymentMeans/cac:PaymentMandate) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-56",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-56]-An Invoice shall contain maximum one Originator document reference identifier (BT-17).",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(cac:OriginatorDocumentReference/cbc:ID) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-57",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-57]-PartyLegalEntity shall occur maximum once within a Party.",
    "context": "/ubl:Invoice | /cn:CreditNote",
    "test": "count(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity) \u003c= 1 and count(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity) \u003c= 1 and count(cac:PayeeParty/cac:PartyLegalEntity) \u003c= 1 and count(cac:TaxRepresentativeParty/cac:PartyLegalEntity) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-34",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-34]-Invoice line note shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(count(cbc:Note) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-35",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-35]-Referenced purchase order line identifier shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(count(cac:OrderLineReference/cbc:LineID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-36",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-36]-Invoice line period shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(count(cac:InvoicePeriod) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-37",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-37]-Item price discount shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "(count(cac:Price/cac:AllowanceCharge/cbc:Amount) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-48",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-48]-Invoice lines shall have one and only one classified tax category.",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "count(cac:Item/cac:ClassifiedTaxCategory) = 1",
    "phases": null
  },
  {
    "id": "UBL-SR-50",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-50]-Item description shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "count(cac:Item/cbc:Description) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-52",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-52]-Document reference shall occur maximum once",
    "context": "cac:InvoiceLine | cac:CreditNoteLine",
    "test": "count(cac:DocumentReference) \u003c= 1",
    "phases": null
  },
  {
    "id": "UBL-SR-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-19]-Payee name shall occur maximum once, if the Payee is different from the Seller",
    "context": "cac:PayeeParty",
    "test": "(count(cac:PartyName/cbc:Name) \u003c= 1) and ((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))",
    "phases": null
  },
  {
    "id": "UBL-SR-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-20]-Payee identifier shall occur maximum once, if the Payee is different from the Seller",
    "context": "cac:PayeeParty",
    "test": "(count(cac:PartyIdentification/cbc:ID[upper-case(@schemeID) != 'SEPA']) \u003c= 1) and ((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))",
    "phases": null
  },
  {
    "id": "UBL-SR-21",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-21]-Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller",
    "context": "cac:PayeeParty",
    "test": "(count(cac:PartyLegalEntity/cbc:CompanyID) \u003c= 1) and ((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))",
    "phases": null
  },
  {
    "id": "UBL-SR-26",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-26]-Payment reference shall occur maximum once",
    "context": "cac:PaymentMeans",
    "test": "(count(cbc:PaymentID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-27",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-27]-Payment means text shall occur maximum once",
    "context": "cac:PaymentMeans",
    "test": "(count(cbc:PaymentMeansCode) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-28",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-28]-Mandate reference identifier shall occur maximum once",
    "context": "cac:PaymentMeans",
    "test": "(count(cac:PaymentMandate/cbc:ID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-58",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-58]-A Financial Institution Branch shall contain exactly one Payment service provider identifier (BT-86).",
    "context": "cac:PaymentMeans",
    "test": "not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch) or count(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID) = 1",
    "phases": null
  },
  {
    "id": "UBL-SR-59",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-59]-A Financial Institution Branch shall contain exactly one Payment account identifier (BT-84).",
    "context": "cac:PaymentMeans",
    "test": "not(cac:PayeeFinancialAccount) or count(cac:PayeeFinancialAccount/cbc:ID) = 1",
    "phases": null
  },
  {
    "id": "UBL-SR-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-06]-Preceding invoice reference shall occur maximum once",
    "context": "cac:BillingReference",
    "test": "(count(cac:InvoiceDocumentReference) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-07]-If there is a preceding invoice reference, the preceding invoice number shall be present",
    "context": "cac:BillingReference",
    "test": "(cac:InvoiceDocumentReference/cbc:ID)",
    "phases": null
  },
  {
    "id": "UBL-SR-22",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-22]-Seller tax representative name shall occur maximum once, if the Seller has a tax representative",
    "context": "cac:TaxRepresentativeParty",
    "test": "(count(cac:PartyName/cbc:Name) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-23]-Seller tax representative VAT identifier shall occur maximum once, if the Seller has a tax representative",
    "context": "cac:TaxRepresentativeParty",
    "test": "(count(cac:PartyTaxScheme/cbc:CompanyID) \u003c= 1)",
    "phases": null
  },
  {
    "id": "UBL-SR-32",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[UBL-SR-32]-VAT exemption reason text shall occur maximum once",
    "context": "cac:TaxSubtotal",
    "test": "(count(cac:TaxCategory/cbc:TaxExemptionReason) \u003c= 1)",
    "phases": null
  },
  {
    "id": "BR-CL-01",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.",
    "context": "cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode",
    "test": "(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 84 102 130 202 203 204 211 218 219 295 325 326 331 380 382 383 384 385 386 387 388 389 390 393 394 395 456 457 471 472 473 500 501 527 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 261 262 296 308 381 396 420 458 502 503 532 ', concat(' ', normalize-space(.), ' ')))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-03",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-03]-currencyID MUST be coded using ISO code list 4217 alpha-3",
    "context": "cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cbc:TaxAmount | cbc:TaxableAmount | cbc:LineExtensionAmount | cbc:TaxExclusiveAmount | cbc:TaxInclusiveAmount | cbc:AllowanceTotalAmount | cbc:ChargeTotalAmount | cbc:PrepaidAmount | cbc:PayableRoundingAmount | cbc:PayableAmount",
    "test": "((not(contains(normalize-space(@currencyID), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(@currencyID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-04",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-04]-Invoice currency code MUST be coded using ISO code list 4217 alpha-3",
    "context": "cbc:DocumentCurrencyCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-05",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-05]-Tax currency code MUST be coded using ISO code list 4217 alpha-3",
    "context": "cbc:TaxCurrencyCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AED AFN ALL AMD AOA ARS AUD AWG AZN BAM BBD BDT BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYN BZD CAD CDF CHE CHF CHW CLF CLP CNH CNY COP COU CRC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLE SOS SRD SSP STN SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UYW UZS VES VED VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XCG XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWG ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-06",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-06]-Value added tax point date code MUST be coded using a restriction of UNTDID 2005.",
    "context": "cac:InvoicePeriod/cbc:DescriptionCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 3 35 432 ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-07",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-07]-Object identifier identification scheme identifier MUST be coded using a restriction of UNTDID 1153.",
    "context": "cac:AdditionalDocumentReference[cbc:DocumentTypeCode = '130']/cbc:ID[@schemeID] | cac:DocumentReference[cbc:DocumentTypeCode = '130']/cbc:ID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' AAA AAB AAC AAD AAE AAF AAG AAH AAI AAJ AAK AAL AAM AAN AAO AAP AAQ AAR AAS AAT AAU AAV AAW AAX AAY AAZ ABA ABB ABC ABD ABE ABF ABG ABH ABI ABJ ABK ABL ABM ABN ABO ABP ABQ ABR ABS ABT ABU ABV ABW ABX ABY ABZ AC ACA ACB ACC ACD ACE ACF ACG ACH ACI ACJ ACK ACL ACN ACO ACP ACQ ACR ACT ACU ACV ACW ACX ACY ACZ ADA ADB ADC ADD ADE ADF ADG ADI ADJ ADK ADL ADM ADN ADO ADP ADQ ADT ADU ADV ADW ADX ADY ADZ AE AEA AEB AEC AED AEE AEF AEG AEH AEI AEJ AEK AEL AEM AEN AEO AEP AEQ AER AES AET AEU AEV AEW AEX AEY AEZ AF AFA AFB AFC AFD AFE AFF AFG AFH AFI AFJ AFK AFL AFM AFN AFO AFP AFQ AFR AFS AFT AFU AFV AFW AFX AFY AFZ AGA AGB AGC AGD AGE AGF AGG AGH AGI AGJ AGK AGL AGM AGN AGO AGP AGQ AGR AGS AGT AGU AGV AGW AGX AGY AGZ AHA AHB AHC AHD AHE AHF AHG AHH AHI AHJ AHK AHL AHM AHN AHO AHP AHQ AHR AHS AHT AHU AHV AHX AHY AHZ AIA AIB AIC AID AIE AIF AIG AIH AII AIJ AIK AIL AIM AIN AIO AIP AIQ AIR AIS AIT AIU AIV AIW AIX AIY AIZ AJA AJB AJC AJD AJE AJF AJG AJH AJI AJJ AJK AJL AJM AJN AJO AJP AJQ AJR AJS AJT AJU AJV AJW AJX AJY AJZ AKA AKB AKC AKD AKE AKF AKG AKH AKI AKJ AKK AKL AKM AKN AKO AKP AKQ AKR AKS AKT AKU AKV AKW AKX AKY AKZ ALA ALB ALC ALD ALE ALF ALG ALH ALI ALJ ALK ALL ALM ALN ALO ALP ALQ ALR ALS ALT ALU ALV ALW ALX ALY ALZ AMA AMB AMC AMD AME AMF AMG AMH AMI AMJ AMK AML AMM AMN AMO AMP AMQ AMR AMS AMT AMU AMV AMW AMX AMY AMZ ANA ANB ANC AND ANE ANF ANG ANH ANI ANJ ANK ANL ANM ANN ANO ANP ANQ ANR ANS ANT ANU ANV ANW ANX ANY AOA AOD AOE AOF AOG AOH AOI AOJ AOK AOL AOM AON AOO AOP AOQ AOR AOS AOT AOU AOV AOW AOX AOY AOZ AP APA APB APC APD APE APF APG APH API APJ APK APL APM APN APO APP APQ APR APS APT APU APV APW APX APY APZ AQA AQB AQC AQD AQE AQF AQG AQH AQI AQJ AQK AQL AQM AQN AQO AQP AQQ AQR AQS AQT AQU AQV AQW AQX AQY AQZ ARA ARB ARC ARD ARE ARF ARG ARH ARI ARJ ARK ARL ARM ARN ARO ARP ARQ ARR ARS ART ARU ARV ARW ARX ARY ARZ ASA ASB ASC ASD ASE ASF ASG ASH ASI ASJ ASK ASL ASM ASN ASO ASP ASQ ASR ASS AST ASU ASV ASW ASX ASY ASZ ATA ATB ATC ATD ATE ATF ATG ATH ATI ATJ ATK ATL ATM ATN ATO ATP ATQ ATR ATS ATT ATU ATV ATW ATX ATY ATZ AU AUA AUB AUC AUD AUE AUF AUG AUH AUI AUJ AUK AUL AUM AUN AUO AUP AUQ AUR AUS AUT AUU AUV AUW AUX AUY AUZ AV AVA AVB AVC AVD AVE AVF AVG AVH AVI AVJ AVK AVL AVM AVN AVO AVP AVQ AVR AVS AVT AVU AVV AVW AVX AVY AVZ AWA AWB AWC AWD AWE AWF AWG AWH AWI AWJ AWK AWL AWM AWN AWO AWP AWQ AWR AWS AWT AWU AWV AWW AWX AWY AWZ AXA AXB AXC AXD AXE AXF AXG AXH AXI AXJ AXK AXL AXM AXN AXO AXP AXQ AXR AXS AXU BA BC BD BE BH BM BN BO BR BT BTP BW CAS CAT CAU CAV CAW CAX CAY CAZ CBA CBB CD CEC CED CFE CFF CFO CG CH CK CKN CM CMR CN CNO COF CP CR CRN CS CST CT CU CV CW CZ DA DAN DB DI DL DM DQ DR EA EB ED EE EEP EI EN EQ ER ERN ET EX FC FF FI FLW FN FO FS FT FV FX GA GC GD GDN GN HS HWB IA IB ICA ICE ICO II IL INB INN INO IP IS IT IV JB JE LA LAN LAR LB LC LI LO LRC LS MA MB MF MG MH MR MRN MS MSS MWB NA NF OH OI ON OP OR PB PC PD PE PF PI PK PL POR PP PQ PR PS PW PY RA RC RCN RE REN RF RR RT SA SB SD SE SEA SF SH SI SM SN SP SQ SRN SS STA SW SZ TB TCR TE TF TI TIN TL TN TP UAR UC UCN UN UO URI VA VC VGR VM VN VON VOR VP VR VS VT VV WE WM WN WR WS WY XA XC XP ZZZ ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-10",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-10]-Any identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.",
    "context": "cac:PartyIdentification/cbc:ID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))  or ((not(contains(normalize-space(@schemeID), ' ')) and contains(' SEPA ', concat(' ', normalize-space(@schemeID), ' '))) and ((ancestor::cac:AccountingSupplierParty) or (ancestor::cac:PayeeParty)))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-11",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-11]-Any registration identifier identification scheme identifier MUST be coded using one of the ISO 6523 ICD list.",
    "context": "cac:PartyLegalEntity/cbc:CompanyID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-13",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-13]-Item classification identifier identification scheme identifier MUST be\n      coded using one of the UNTDID 7143 list.",
    "context": "cac:CommodityClassification/cbc:ItemClassificationCode[@listID]",
    "test": "((not(contains(normalize-space(@listID), ' ')) and contains(' AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW AX AY AZ BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ CC CG CL CR CV DR DW EC EF EMD EN FS GB GN GMN GS HS IB IN IS IT IZ MA MF MN MP NB ON PD PL PO PPI PV QS RC RN RU RY SA SG SK SN SRS SRT SRU SRV SRW SRX SRY SRZ SS SSA SSB SSC SSD SSE SSF SSG SSH SSI SSJ SSK SSL SSM SSN SSO SSP SSQ SSR SSS SST SSU SSV SSW SSX SSY SSZ ST STA STB STC STD STE STF STG STH STI STJ STK STL STM STN STO STP STQ STR STS STT STU STV STW STX STY STZ SUA SUB SUC SUD SUE SUF SUG SUH SUI SUJ SUK SUL SUM TG TSN TSO TSP TSQ TSR TSS TST TSU UA UP VN VP VS VX ZZZ ', concat(' ', normalize-space(@listID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-14",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-14]-Country codes in an invoice MUST be coded using ISO code list 3166-1",
    "context": "cac:Country/cbc:IdentificationCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-15",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-15]-Country codes in an invoice MUST be coded using ISO code list 3166-1",
    "context": "cac:OriginCountry/cbc:IdentificationCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-16",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-16]-Payment means in an invoice MUST be coded using UNCL4461 code list",
    "context": "cac:PaymentMeans/cbc:PaymentMeansCode",
    "test": "( ( not(contains(normalize-space(.),' ')) and contains( ' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 74 75 76 77 78 91 92 93 94 95 96 97 98 ZZZ ',concat(' ',normalize-space(.),' ') ) ) )",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-17",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-17]-Invoice tax categories MUST be coded using UNCL5305 code list",
    "context": "cac:TaxCategory/cbc:ID",
    "test": "( ( not(contains(normalize-space(.),' ')) and contains( ' AE L M E S Z G O K B ',concat(' ',normalize-space(.),' ') ) ) )",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-18",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-18]-Invoice tax categories MUST be coded using UNCL5305 code list",
    "context": "cac:ClassifiedTaxCategory/cbc:ID",
    "test": "( ( not(contains(normalize-space(.),' ')) and contains( ' AE L M E S Z G O K B ',concat(' ',normalize-space(.),' ') ) ) )",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-19",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-19]-Coded allowance reasons MUST belong to the UNCL 5189 code list",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator = false()]/cbc:AllowanceChargeReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' 41 42 60 62 63 64 65 66 67 68 70 71 88 95 100 102 103 104 105 ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-20",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-20]-Coded charge reasons MUST belong to the UNCL 7161 code list",
    "context": "cac:AllowanceCharge[cbc:ChargeIndicator = true()]/cbc:AllowanceChargeReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' AA AAA AAC AAD AAE AAF AAH AAI AAS AAT AAV AAY AAZ ABA ABB ABC ABD ABF ABK ABL ABN ABR ABS ABT ABU ACF ACG ACH ACI ACJ ACK ACL ACM ACS ADC ADE ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADT ADW ADY ADZ AEA AEB AEC AED AEF AEH AEI AEJ AEK AEL AEM AEN AEO AEP AES AET AEU AEV AEW AEX AEY AEZ AJ AU CA CAB CAD CAE CAF CAI CAJ CAK CAL CAM CAN CAO CAP CAQ CAR CAS CAT CAU CAV CAW CAX CAY CAZ CD CG CS CT DAB DAD DAC DAF DAG DAH DAI DAJ DAK DAL DAM DAN DAO DAP DAQ DL EG EP ER FAA FAB FAC FC FH FI GAA HAA HD HH IAA IAB ID IF IR IS KO L1 LA LAA LAB LF MAE MI ML NAA OA PA PAA PC PL PRV RAB RAC RAD RAF RE RF RH RV SA SAA SAD SAE SAI SG SH SM SU TAB TAC TT TV V1 V2 WH XAA YY ZZZ ', concat(' ', normalize-space(.), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-21",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-21]-Item standard identifier scheme identifier MUST belong to the ISO 6523 ICD code list",
    "context": "cac:StandardItemIdentification/cbc:ID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-22",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-22]-Tax exemption reason code identifier scheme identifier MUST belong to the CEF VATEX code list",
    "context": "cbc:TaxExemptionReasonCode",
    "test": "((not(contains(normalize-space(.), ' ')) and contains(' VATEX-EU-79-C VATEX-EU-132 VATEX-EU-132-1A VATEX-EU-132-1B VATEX-EU-132-1C VATEX-EU-132-1D VATEX-EU-132-1E VATEX-EU-132-1F VATEX-EU-132-1G VATEX-EU-132-1H VATEX-EU-132-1I VATEX-EU-132-1J VATEX-EU-132-1K VATEX-EU-132-1L VATEX-EU-132-1M VATEX-EU-132-1N VATEX-EU-132-1O VATEX-EU-132-1P VATEX-EU-132-1Q VATEX-EU-135-1 VATEX-EU-143 VATEX-EU-143-1A VATEX-EU-143-1B VATEX-EU-143-1C VATEX-EU-143-1D VATEX-EU-143-1E VATEX-EU-143-1F VATEX-EU-143-1FA VATEX-EU-143-1G VATEX-EU-143-1H VATEX-EU-143-1I VATEX-EU-143-1J VATEX-EU-143-1K VATEX-EU-143-1L VATEX-EU-144 VATEX-EU-146-1E VATEX-EU-159 VATEX-EU-309 VATEX-EU-148 VATEX-EU-148-A VATEX-EU-148-B VATEX-EU-148-C VATEX-EU-148-D VATEX-EU-148-E VATEX-EU-148-F VATEX-EU-148-G VATEX-EU-151 VATEX-EU-151-1A VATEX-EU-151-1AA VATEX-EU-151-1B VATEX-EU-151-1C VATEX-EU-151-1D VATEX-EU-151-1E VATEX-EU-G VATEX-EU-O VATEX-EU-IC VATEX-EU-AE VATEX-EU-D VATEX-EU-F VATEX-EU-I VATEX-EU-J VATEX-FR-FRANCHISE VATEX-FR-CNWVAT VATEX-EU-153 VATEX-FR-CGI261-1 VATEX-FR-CGI261-2 VATEX-FR-CGI261-3 VATEX-FR-CGI261-4 VATEX-FR-CGI261-5 VATEX-FR-CGI261-7 VATEX-FR-CGI261-8 VATEX-FR-CGI261A VATEX-FR-CGI261B VATEX-FR-CGI261C-1 VATEX-FR-CGI261C-2 VATEX-FR-CGI261C-3 VATEX-FR-CGI261D-1 VATEX-FR-CGI261D-1BIS VATEX-FR-CGI261D-2 VATEX-FR-CGI261D-3 VATEX-FR-CGI261D-4 VATEX-FR-CGI261E-1 VATEX-FR-CGI261E-2 VATEX-FR-CGI277A VATEX-FR-CGI275 VATEX-FR-298SEXDECIESA VATEX-FR-CGI295 VATEX-FR-AE VATEX-ES-N1 VATEX-ES-N2 VATEX-ES-IVA20 VATEX-ES-IVA21 VATEX-ES-IVA22 VATEX-ES-IVA23/24 VATEX-ES-IVA25 VATEX-ES-IVA140BIS VATEX-ES-OTROS VATEX-ES-IGIC1TR VATEX-ES-IGIC11 VATEX-ES-IGIC12 VATEX-ES-IGIC13 VATEX-ES-IGIC25 VATEX-ES-IGIC47 VATEX-ES-IGIC90 VATEX-ES-IPSI7 VATEX-ES-IPSI8 ', concat(' ', normalize-space(upper-case(.)), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-23",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-23]-Unit code MUST be coded according to the UN/ECE Recommendation 20 with\n      Rec 21 extension",
    "context": "cbc:InvoicedQuantity[@unitCode] | cbc:BaseQuantity[@unitCode] | cbc:CreditedQuantity[@unitCode]",
    "test": "((not(contains(normalize-space(@unitCode), ' ')) and contains(' 10 11 13 14 15 20 21 22 23 24 25 27 28 33 34 35 37 38 40 41 56 57 58 59 60 61 74 77 80 81 85 87 89 91 1I 2A 2B 2C 2G 2H 2I 2J 2K 2L 2M 2N 2P 2Q 2R 2U 2X 2Y 2Z 3B 3C 4C 4G 4H 4K 4L 4M 4N 4O 4P 4Q 4R 4T 4U 4W 4X 5A 5B 5E 5J A10 A11 A12 A13 A14 A15 A16 A17 A18 A19 A2 A20 A21 A22 A23 A24 A26 A27 A28 A29 A3 A30 A31 A32 A33 A34 A35 A36 A37 A38 A39 A4 A40 A41 A42 A43 A44 A45 A47 A48 A49 A5 A53 A54 A55 A56 A59 A6 A68 A69 A7 A70 A71 A73 A74 A75 A76 A8 A84 A85 A86 A87 A88 A89 A9 A90 A91 A93 A94 A95 A96 A97 A98 A99 AA AB ACR ACT AD AE AH AI AK AL AMH AMP ANN APZ AQ AS ASM ASU ATM AWG AY AZ B1 B10 B11 B12 B13 B14 B15 B16 B17 B18 B19 B20 B21 B22 B23 B24 B25 B26 B27 B28 B29 B3 B30 B31 B32 B33 B34 B35 B4 B41 B42 B43 B44 B45 B46 B47 B48 B49 B50 B52 B53 B54 B55 B56 B57 B58 B59 B60 B61 B62 B63 B64 B66 B67 B68 B69 B7 B70 B71 B72 B73 B74 B75 B76 B77 B78 B79 B8 B80 B81 B82 B83 B84 B85 B86 B87 B88 B89 B90 B91 B92 B93 B94 B95 B96 B97 B98 B99 BAR BB BFT BHP BIL BLD BLL BP BPM BQL BTU BUA BUI C0 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C3 C30 C31 C32 C33 C34 C35 C36 C37 C38 C39 C40 C41 C42 C43 C44 C45 C46 C47 C48 C49 C50 C51 C52 C53 C54 C55 C56 C57 C58 C59 C60 C61 C62 C63 C64 C65 C66 C67 C68 C69 C7 C70 C71 C72 C73 C74 C75 C76 C78 C79 C8 C80 C81 C82 C83 C84 C85 C86 C87 C88 C89 C9 C90 C91 C92 C93 C94 C95 C96 C97 C99 CCT CDL CEL CEN CG CGM CKG CLF CLT CMK CMQ CMT CNP CNT COU CTG CTM CTN CUR CWA CWI D03 D04 D1 D10 D11 D12 D13 D15 D16 D17 D18 D19 D2 D20 D21 D22 D23 D24 D25 D26 D27 D29 D30 D31 D32 D33 D34 D36 D41 D42 D43 D44 D45 D46 D47 D48 D49 D5 D50 D51 D52 D53 D54 D55 D56 D57 D58 D59 D6 D60 D61 D62 D63 D65 D68 D69 D73 D74 D77 D78 D80 D81 D82 D83 D85 D86 D87 D88 D89 D91 D93 D94 D95 DAA DAD DAY DB DBM DBW DD DEC DG DJ DLT DMA DMK DMO DMQ DMT DN DPC DPR DPT DRA DRI DRL DT DTN DWT DZN DZP E01 E07 E08 E09 E10 E12 E14 E15 E16 E17 E18 E19 E20 E21 E22 E23 E25 E27 E28 E30 E31 E32 E33 E34 E35 E36 E37 E38 E39 E4 E40 E41 E42 E43 E44 E45 E46 E47 E48 E49 E50 E51 E52 E53 E54 E55 E56 E57 E58 E59 E60 E61 E62 E63 E64 E65 E66 E67 E68 E69 E70 E71 E72 E73 E74 E75 E76 E77 E78 E79 E80 E81 E82 E83 E84 E85 E86 E87 E88 E89 E90 E91 E92 E93 E94 E95 E96 E97 E98 E99 EA EB EQ F01 F02 F03 F04 F05 F06 F07 F08 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31 F32 F33 F34 F35 F36 F37 F38 F39 F40 F41 F42 F43 F44 F45 F46 F47 F48 F49 F50 F51 F52 F53 F54 F55 F56 F57 F58 F59 F60 F61 F62 F63 F64 F65 F66 F67 F68 F69 F70 F71 F72 F73 F74 F75 F76 F77 F78 F79 F80 F81 F82 F83 F84 F85 F86 F87 F88 F89 F90 F91 F92 F93 F94 F95 F96 F97 F98 F99 FAH FAR FBM FC FF FH FIT FL FNU FOT FP FR FS FTK FTQ G01 G04 G05 G06 G08 G09 G10 G11 G12 G13 G14 G15 G16 G17 G18 G19 G2 G20 G21 G23 G24 G25 G26 G27 G28 G29 G3 G30 G31 G32 G33 G34 G35 G36 G37 G38 G39 G40 G41 G42 G43 G44 G45 G46 G47 G48 G49 G50 G51 G52 G53 G54 G55 G56 G57 G58 G59 G60 G61 G62 G63 G64 G65 G66 G67 G68 G69 G70 G71 G72 G73 G74 G75 G76 G77 G78 G79 G80 G81 G82 G83 G84 G85 G86 G87 G88 G89 G90 G91 G92 G93 G94 G95 G96 G97 G98 G99 GB GBQ GDW GE GF GFI GGR GIA GIC GII GIP GJ GL GLD GLI GLL GM GO GP GQ GRM GRN GRO GV GWH H03 H04 H05 H06 H07 H08 H09 H10 H11 H12 H13 H14 H15 H16 H18 H19 H20 H21 H22 H23 H24 H25 H26 H27 H28 H29 H30 H31 H32 H33 H34 H35 H36 H37 H38 H39 H40 H41 H42 H43 H44 H45 H46 H47 H48 H49 H50 H51 H52 H53 H54 H55 H56 H57 H58 H59 H60 H61 H62 H63 H64 H65 H66 H67 H68 H69 H70 H71 H72 H73 H74 H75 H76 H77 H79 H80 H81 H82 H83 H84 H85 H87 H88 H89 H90 H91 H92 H93 H94 H95 H96 H98 H99 HA HAD HBA HBX HC HDW HEA HGM HH HIU HKM HLT HM HMO HMQ HMT HPA HTZ HUR HWE IA IE INH INK INQ ISD IU IUG IV J10 J12 J13 J14 J15 J16 J17 J18 J19 J2 J20 J21 J22 J23 J24 J25 J26 J27 J28 J29 J30 J31 J32 J33 J34 J35 J36 J38 J39 J40 J41 J42 J43 J44 J45 J46 J47 J48 J49 J50 J51 J52 J53 J54 J55 J56 J57 J58 J59 J60 J61 J62 J63 J64 J65 J66 J67 J68 J69 J70 J71 J72 J73 J74 J75 J76 J78 J79 J81 J82 J83 J84 J85 J87 J90 J91 J92 J93 J95 J96 J97 J98 J99 JE JK JM JNT JOU JPS JWL K1 K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 K2 K20 K21 K22 K23 K26 K27 K28 K3 K30 K31 K32 K33 K34 K35 K36 K37 K38 K39 K40 K41 K42 K43 K45 K46 K47 K48 K49 K50 K51 K52 K53 K54 K55 K58 K59 K6 K60 K61 K62 K63 K64 K65 K66 K67 K68 K69 K70 K71 K73 K74 K75 K76 K77 K78 K79 K80 K81 K82 K83 K84 K85 K86 K87 K88 K89 K90 K91 K92 K93 K94 K95 K96 K97 K98 K99 KA KAT KB KBA KCC KDW KEL KGM KGS KHY KHZ KI KIC KIP KJ KJO KL KLK KLX KMA KMH KMK KMQ KMT KNI KNM KNS KNT KO KPA KPH KPO KPP KR KSD KSH KT KTN KUR KVA KVR KVT KW KWH KWN KWO KWS KWT KWY KX L10 L11 L12 L13 L14 L15 L16 L17 L18 L19 L2 L20 L21 L23 L24 L25 L26 L27 L28 L29 L30 L31 L32 L33 L34 L35 L36 L37 L38 L39 L40 L41 L42 L43 L44 L45 L46 L47 L48 L49 L50 L51 L52 L53 L54 L55 L56 L57 L58 L59 L60 L63 L64 L65 L66 L67 L68 L69 L70 L71 L72 L73 L74 L75 L76 L77 L78 L79 L80 L81 L82 L83 L84 L85 L86 L87 L88 L89 L90 L91 L92 L93 L94 L95 L96 L98 L99 LA LAC LBR LBT LD LEF LF LH LK LM LN LO LP LPA LR LS LTN LTR LUB LUM LUX LY M1 M10 M11 M12 M13 M14 M15 M16 M17 M18 M19 M20 M21 M22 M23 M24 M25 M26 M27 M29 M30 M31 M32 M33 M34 M35 M36 M37 M38 M39 M4 M40 M41 M42 M43 M44 M45 M46 M47 M48 M49 M5 M50 M51 M52 M53 M55 M56 M57 M58 M59 M60 M61 M62 M63 M64 M65 M66 M67 M68 M69 M7 M70 M71 M72 M73 M74 M75 M76 M77 M78 M79 M80 M81 M82 M83 M84 M85 M86 M87 M88 M89 M9 M90 M91 M92 M93 M94 M95 M96 M97 M98 M99 MAH MAL MAM MAR MAW MBE MBF MBR MC MCU MD MGM MHZ MIK MIL MIN MIO MIU MKD MKM MKW MLD MLT MMK MMQ MMT MND MNJ MON MPA MQD MQH MQM MQS MQW MRD MRM MRW MSK MTK MTQ MTR MTS MTZ MVA MWH N1 N10 N11 N12 N13 N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 N26 N27 N28 N29 N3 N30 N31 N32 N33 N34 N35 N36 N37 N38 N39 N40 N41 N42 N43 N44 N45 N46 N47 N48 N49 N50 N51 N52 N53 N54 N55 N56 N57 N58 N59 N60 N61 N62 N63 N64 N65 N66 N67 N68 N69 N70 N71 N72 N73 N74 N75 N76 N77 N78 N79 N80 N81 N82 N83 N84 N85 N86 N87 N88 N89 N90 N91 N92 N93 N94 N95 N96 N97 N98 N99 NA NAR NCL NEW NF NIL NIU NL NM3 NMI NMP NPT NT NTU NU NX OA ODE ODG ODK ODM OHM ON ONZ OPM OT OZA OZI P1 P10 P11 P12 P13 P14 P15 P16 P17 P18 P19 P2 P20 P21 P22 P23 P24 P25 P26 P27 P28 P29 P30 P31 P32 P33 P34 P35 P36 P37 P38 P39 P40 P41 P42 P43 P44 P45 P46 P47 P48 P49 P5 P50 P51 P52 P53 P54 P55 P56 P57 P58 P59 P60 P61 P62 P63 P64 P65 P66 P67 P68 P69 P70 P71 P72 P73 P74 P75 P76 P77 P78 P79 P80 P81 P82 P83 P84 P85 P86 P87 P88 P89 P90 P91 P92 P93 P94 P95 P96 P97 P98 P99 PAL PD PFL PGL PI PLA PO PQ PR PS PTD PTI PTL PTN Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21 Q22 Q23 Q24 Q25 Q26 Q27 Q28 Q29 Q3 Q30 Q31 Q32 Q33 Q34 Q35 Q36 Q37 Q38 Q39 Q40 Q41 Q42 QA QAN QB QR QTD QTI QTL QTR R1 R9 RH RM ROM RP RPM RPS RT S3 S4 SAN SCO SCR SEC SET SG SIE SM3 SMI SQ SQR SR STC STI STK STL STN STW SW SX SYR T0 T3 TAH TAN TI TIC TIP TKM TMS TNE TP TPI TPR TQD TRL TST TTS U1 U2 UB UC VA VLT VP W2 WA WB WCD WE WEB WEE WG WHR WM WSD WTT X1 YDK YDQ YRD Z11 Z9 ZP ZZ X1A X1B X1D X1F X1G X1W X2C X3A X3H X43 X44 X4A X4B X4C X4D X4F X4G X4H X5H X5L X5M X6H X6P X7A X7B X8A X8B X8C XAA XAB XAC XAD XAE XAF XAG XAH XAI XAJ XAL XAM XAP XAT XAV XB4 XBA XBB XBC XBD XBE XBF XBG XBH XBI XBJ XBK XBL XBM XBN XBO XBP XBQ XBR XBS XBT XBU XBV XBW XBX XBY XBZ XCA XCB XCC XCD XCE XCF XCG XCH XCI XCJ XCK XCL XCM XCN XCO XCP XCQ XCR XCS XCT XCU XCV XCW XCX XCY XCZ XDA XDB XDC XDG XDH XDI XDJ XDK XDL XDM XDN XDP XDR XDS XDT XDU XDV XDW XDX XDY XEC XED XEE XEF XEG XEH XEI XEN XFB XFC XFD XFE XFI XFL XFO XFP XFR XFT XFW XFX XGB XGI XGL XGR XGU XGY XGZ XHA XHB XHC XHG XHN XHR XIA XIB XIC XID XIE XIF XIG XIH XIK XIL XIN XIZ XJB XJC XJG XJR XJT XJY XKG XKI XLE XLG XLT XLU XLV XLZ XMA XMB XMC XME XMR XMS XMT XMW XMX XNA XNE XNF XNG XNS XNT XNU XNV XO1 XO2 XO3 XO4 XO5 XO6 XO7 XO8 XO9 XOA XOB XOC XOD XOE XOF XOG XOH XOI XOJ XOK XOL XOM XON XOP XOQ XOR XOS XOT XOU XOV XOW XOX XOY XOZ XP1 XP2 XP3 XP4 XPA XPB XPC XPD XPE XPF XPG XPH XPI XPJ XPK XPL XPN XPO XPP XPR XPT XPU XPV XPX XPY XPZ XQA XQB XQC XQD XQF XQG XQH XQJ XQK XQL XQM XQN XQP XQQ XQR XQS XRD XRG XRJ XRK XRL XRO XRT XRZ XSA XSB XSC XSD XSE XSH XSI XSK XSL XSM XSO XSP XSS XST XSU XSV XSW XSX XSY XSZ XT1 XTB XTC XTD XTE XTG XTI XTK XTL XTN XTO XTR XTS XTT XTU XTV XTW XTY XTZ XUC XUN XVA XVG XVI XVK XVL XVN XVO XVP XVQ XVR XVS XVY XWA XWB XWC XWD XWF XWG XWH XWJ XWK XWL XWM XWN XWP XWQ XWR XWS XWT XWU XWV XWW XWX XWY XWZ XXA XXB XXC XXD XXF XXG XXH XXJ XXK XYA XYB XYC XYD XYF XYG XYH XYJ XYK XYL XYM XYN XYP XYQ XYR XYS XYT XYV XYW XYX XYY XYZ XZA XZB XZC XZD XZF XZG XZH XZJ XZK XZL XZM XZN XZP XZQ XZR XZS XZT XZU XZV XZW XZX XZY XZZ ', concat(' ', normalize-space(@unitCode), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-24",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-24]-For Mime code in attribute use MIMEMediaType.",
    "context": "cbc:EmbeddedDocumentBinaryObject[@mimeCode]",
    "test": "((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet'))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-25",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-25]-Endpoint identifier scheme identifier MUST belong to the CEF EAS code list",
    "context": "cbc:EndpointID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0007 0009 0037 0060 0088 0096 0097 0106 0130 0135 0142 0147 0151 0154 0158 0170 0177 0183 0184 0188 0190 0191 0192 0193 0194 0195 0196 0198 0199 0200 0201 0202 0203 0204 0205 0208 0209 0210 0211 0212 0213 0215 0216 0217 0218 0221 0225 0230 0235 0240 0244 0242 0245 0246 0248 9910 9913 9914 9915 9918 9919 9920 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9957 9959 9960 AN AQ AS AU EM ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  },
  {
    "id": "BR-CL-26",
    "syntax": "UBL",
    "source": "en16931",
    "flag": "fatal",
    "text": "[BR-CL-26]-Delivery location identifier scheme identifier MUST belong to the ISO 6523 ICD code list",
    "context": "cac:DeliveryLocation/cbc:ID[@schemeID]",
    "test": "((not(contains(normalize-space(@schemeID), ' ')) and contains(' 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193 0194 0195 0196 0197 0198 0199 0200 0201 0202 0203 0204 0205 0206 0207 0208 0209 0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228 0229 0230 0231 0232 0233 0234 0235 0236 0237 0238 0239 0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 ', concat(' ', normalize-space(@schemeID), ' '))))",
    "phases": [
      "codelist_phase"
    ]
  }
]
