A group of business terms providing information on individual Invoice lines.
請求書明細行に関する情報を提供するビジネス用語のグループ。
cac
urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2ID | Business term | Sem. Card. | Syntax Card. | XPath | |
---|---|---|---|---|---|
ibt-126 | • Invoice line identifier 請求書明細行ID |
1..1 | / Invoice / cac:InvoiceLine / cbc:ID | ||
ibt-127 | • Invoice line note 請求書明細行注釈 |
0..1 | / Invoice / cac:InvoiceLine / cbc:Note | ||
ibt-129 | • Invoiced quantity 請求する数量 |
1..1 | / Invoice / cac:InvoiceLine / cbc:InvoicedQuantity | ||
ibt-130 | • Invoiced quantity unit of measure code 請求する数量の数量単位コード |
1..1 | / Invoice / cac:InvoiceLine / cbc:InvoicedQuantity / @unitCode | ||
ibt-131 | • Invoice line net amount 値引後請求書明細行金額(税抜き) |
1..1 | / Invoice / cac:InvoiceLine / cbc:LineExtensionAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cbc:LineExtensionAmount / @currencyID | |||
ibt-133 | • Invoice line Buyer accounting reference 請求書明細行買い手会計参照 |
0..1 | / Invoice / cac:InvoiceLine / cbc:AccountingCost | ||
ibg-26 | • INVOICE LINE PERIOD 請求書明細行の期間 |
0..1 | / Invoice / cac:InvoiceLine / cac:InvoicePeriod | ||
ibt-134 | • • Invoice line period start date 請求書明細行の期間開始日 |
0..1 | / Invoice / cac:InvoiceLine / cac:InvoicePeriod / cbc:StartDate | ||
ibt-135 | • • Invoice line period end date 請求書明細行の期間終了日 |
0..1 | / Invoice / cac:InvoiceLine / cac:InvoicePeriod / cbc:EndDate | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:OrderLineReference | |||
ibt-132 | • Referenced purchase order line reference 購買発注明細行参照 |
1..1 | / Invoice / cac:InvoiceLine / cac:OrderLineReference / cbc:LineID | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:OrderLineReference / cac:OrderReference | |||
ibt-183 | • Purchase order reference 購買発注書参照 |
1..1 | / Invoice / cac:InvoiceLine / cac:OrderLineReference / cac:OrderReference / cbc:ID | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:DespatchLineReference | |||
(Syntax required item. Value shall be 'NA'.) |
1..1 | / Invoice / cac:InvoiceLine / cac:DespatchLineReference / cbc:LineID | |||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:DespatchLineReference / cac:DocumentReference | |||
ibt-184 | • Despatch advice reference 出荷案内書参照 |
1..1 | / Invoice / cac:InvoiceLine / cac:DespatchLineReference / cac:DocumentReference / cbc:ID | ||
ibg-36 | • LINE DOCUMENT REFERENCE 明細行文書参照 |
0..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ not(cbc:DocumentTypeCode = '130') ] | ||
ibt-188 | • • Invoice line document identifier 明細行文書ID |
1..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ not(cbc:DocumentTypeCode = '130') ] / cbc:ID | ||
ibt-189 | • • Document type code 文書タイプコード |
0..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ not(cbc:DocumentTypeCode = '130') ] / cbc:DocumentTypeCode | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ cbc:DocumentTypeCode = '130' ] | |||
ibt-128 | • Invoice line object identifier 請求書明細行オブジェクトID |
1..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ cbc:DocumentTypeCode = '130' ] / cbc:ID | ||
ibt-128-1 | • • Scheme identifier スキーマID |
0..1 | / Invoice / cac:InvoiceLine / cac:DocumentReference [ cbc:DocumentTypeCode = '130' ] / cbc:ID / @schemeID | ||
ibg-27 | • INVOICE LINE ALLOWANCES 請求書明細行の返金 |
0..n | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] | ||
(Syntax qualifier - Use “false” when informing about Allowances) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:ChargeIndicator | |||
ibt-140 | • • Invoice line allowance reason code 請求書明細行の返金理由コード |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:AllowanceChargeReasonCode | ||
ibt-139 | • • Invoice line allowance reason 請求書明細行の返金理由 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:AllowanceChargeReason | ||
ibt-138 | • • Invoice line allowance percentage 請求書明細行の返金の率 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:MultiplierFactorNumeric | ||
ibt-136 | • • Invoice line allowance amount 請求書明細行の返金金額(税抜き) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount / @currencyID | |||
ibt-137 | • • Invoice line allowance base amount 請求書明細行の返金金額の基準金額 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:BaseAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:BaseAmount / @currencyID | |||
ibg-28 | • INVOICE LINE CHARGES 請求書明細行の追加請求 |
0..n | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] | ||
(Syntax qualifier - Use “true” when informing about Allowances) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:ChargeIndicator | |||
ibt-145 | • • Invoice line charge reason code 請求書明細行の追加請求理由コード |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:AllowanceChargeReasonCode | ||
ibt-144 | • • Invoice line charge reason 請求書明細行の追加請求理由 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:AllowanceChargeReason | ||
ibt-143 | • • Invoice line charge percentage 請求書明細行の追加請求の率 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:MultiplierFactorNumeric | ||
ibt-141 | • • Invoice line charge amount 請求書明細行の追加請求金額(税抜き) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:Amount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:Amount / @currencyID | |||
ibt-142 | • • Invoice line charge base amount 請求書明細行の追加請求の基準金額 |
0..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:BaseAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:BaseAmount / @currencyID | |||
ibg-31 | • ITEM INFORMATION 品目情報 |
1..1 | / Invoice / cac:InvoiceLine / cac:Item | ||
ibt-154 | • • Item description 品目摘要 |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cbc:Description | ||
ibt-153 | • • Item name 品名 |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cbc:Name | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:BuyersItemIdentification | |||
ibt-156 | • • Item Buyer's identifier 買い手による品目ID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:BuyersItemIdentification / cbc:ID | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:SellersItemIdentification | |||
ibt-155 | • • Item Seller's identifier 売り手による品目ID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:SellersItemIdentification / cbc:ID | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:StandardItemIdentification | |||
ibt-157 | • • Item standard identifier 品目標準ID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:StandardItemIdentification / cbc:ID | ||
ibt-157-1 | • • • Scheme identifier スキーマID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:StandardItemIdentification / cbc:ID / @schemeID | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:OriginCountry | |||
ibt-159 | • • Item country of origin 品目の原産国 |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:OriginCountry / cbc:IdentificationCode | ||
(Syntax required class) |
0..n | / Invoice / cac:InvoiceLine / cac:Item / cac:CommodityClassification | |||
ibt-158 | • • Item classification identifier 品目分類ID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:CommodityClassification / cbc:ItemClassificationCode | ||
ibt-158-1 | • • • Scheme identifier スキーマID |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:CommodityClassification / cbc:ItemClassificationCode / @listID | ||
ibt-158-2 | • • • Scheme version identifier スキーマのバージョンID |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:CommodityClassification / cbc:ItemClassificationCode / @listVersionID | ||
ibg-30 | • LINE TAX INFORMATION 請求書明細行税情報 |
1..n | 1..n | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory | |
ibt-151 | • • Invoiced item TAX category code 請求する品目に対する課税分類コード |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:ID | ||
ibt-152 | • • Invoiced item TAX rate 請求する品目に対する税率 |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:Percent | ||
ibt-166 | • • Unit TAX (amount) 請求する品目に対する単位数量当たりの税金額 |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:PerUnitAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:PerUnitAmount / @currencyID | |||
ibt-185 | • • TAX exemption reason text 非課税理由テキスト |
0..0 | 0..0 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:TaxExemptionReasonCode | |
ibt-186 | • • TAX exemption reason code 非課税理由コード |
0..0 | 0..0 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:TaxExemptionReason | |
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cac:TaxScheme | |||
ibt-167 | • • Tax Scheme 税スキーマ |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cac:TaxScheme / cbc:ID | ||
ibg-32 | • • ITEM ATTRIBUTES 品目属性 |
0..n | / Invoice / cac:InvoiceLine / cac:Item / cac:AdditionalItemProperty | ||
ibt-160 | • • • Item attribute name 品目属性名 |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:AdditionalItemProperty / cbc:Name | ||
ibt-161 | • • • Item attribute value 品目属性値 |
1..1 | / Invoice / cac:InvoiceLine / cac:Item / cac:AdditionalItemProperty / cbc:Value | ||
ibg-29 | • PRICE DETAILS 取引価格詳細 |
1..1 | / Invoice / cac:InvoiceLine / cac:Price | ||
ibt-146 | • • Item net price 品目単価(値引後)(税抜き) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cbc:PriceAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cbc:PriceAmount / @currencyID | |||
ibt-149 | • • Item price base quantity 品目単価基準数量 |
0..1 | / Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity | ||
ibt-150 | • • Item price base quantity unit of measure code 品目単価基準数量の数量単位コード |
0..1 | / Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity / @unitCode | ||
(Syntax required class) |
0..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] | |||
(Syntax qualifier - Use “false” when informing about Allowances) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:ChargeIndicator | |||
ibt-147 | • • Item price discount 品目単価値引(税抜き) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:Amount / @currencyID | |||
ibt-148 | • • Item gross price 品目単価(値引前)(税抜き) |
0..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:BaseAmount | ||
(currency id - Invoice currency code) |
1..1 | / Invoice / cac:InvoiceLine / cac:Price / cac:AllowanceCharge [ cbc:ChargeIndicator = false() ] / cbc:BaseAmount / @currencyID |
(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID) and
(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:Percent)
(
(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']
)
)
(
(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']
)
)
(
(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']
)
)
exists(cbc:InvoicedQuantity/@unitCode) or
exists(cbc:CreditedQuantity/@unitCode)
(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
not(cbc:Percent)
(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']
)
(
(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) 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
)
(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']
)
)
(
xs:decimal(cbc:Percent) > 0
)
(
(count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) =
'Z']) +
count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) =
'Z'])) > 0 and
count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) =
'Z']) > 0) or
(
(count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) =
'Z']) +
count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) =
'Z'])) =
0 and
count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) =
'Z']) =
0
)
(
xs:decimal(cbc:Percent) =
0
)
exists(cac:InvoiceLine) or
exists(cac:CreditNoteLine)
(cbc:ID) != ''
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
exists(cbc:InvoicedQuantity/@unitCode) or
exists(cbc:CreditedQuantity/@unitCode)
exists(cbc:LineExtensionAmount)
(cac:Item/cbc:Name) != ''
exists(cac:Price/cbc:PriceAmount)
(count(cac:DocumentReference[cbc:DocumentTypeCode =
130]) <= 1
)
(//cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID) and
(//cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:Percent)
(
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
not(cbc:Percent)
exists(cac:InvoiceLine) or
exists(cac:CreditNoteLine)
(cbc:ID) != ''
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
exists(cbc:InvoicedQuantity/@unitCode) or
exists(cbc:CreditedQuantity/@unitCode)
exists(cbc:LineExtensionAmount)
(cac:Item/cbc:Name) != ''
exists(cac:Price/cbc:PriceAmount)
(count(cac:DocumentReference[cbc:DocumentTypeCode =
130]) <= 1
)
(//cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID) and
(//cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:Percent)
exists(cac:InvoiceLine) or
exists(cac:CreditNoteLine)
exists(cac:InvoiceLine) or
exists(cac:CreditNoteLine)
(cbc:ID) != ''
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
exists(cbc:InvoicedQuantity/@unitCode) or
exists(cbc:CreditedQuantity/@unitCode)
exists(cbc:LineExtensionAmount)
(cac:Item/cbc:Name) != ''
exists(cac:Price/cbc:PriceAmount)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(//cac:TaxCategory/cbc:ID ='B' or
//cac:ClassifiedTaxCategory/cbc:ID =
'B') and
(
not(
//cac:TaxCategory/cbc:ID ='S' or
//cac:ClassifiedTaxCategory/cbc:ID =
'S'))) or
(
not(
//cac:TaxCategory/cbc:ID ='B' or
//cac:ClassifiedTaxCategory/cbc:ID =
'B'
)
)
(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/(normalize-space(upper-case(cbc:ID))='VAT')]/cbc:ID)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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']
)
)
(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']
)
(
xs:decimal(cbc:Percent) =
0
)
(
(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[cbc:ID =
'L']) > 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
)
(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']
)
)
(cbc:Percent) >= 0
(
(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[cbc:ID =
'M'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) > 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
)
(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']
)
)
(cbc:Percent) >= 0
(
(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']
)
)
(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']
)
not(cbc:Percent)
(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']
)
(
(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) 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
)
(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']
)
)
(cbc:Percent) > 0
(
(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']
)
)
(
xs:decimal(cbc:Percent) =
0
)