Sum of all charges on document level in the Invoice.
請求書レベルの追加請求の合計。


About

Syntax binding
ubl:Invoice / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
Restricted Syntax Cardinality
0..1
Example
100
Attribute(s)
@currencyID
UBL 2.1
XPath
/ Invoice / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
Occurrence
0..1
Datatype
AmountType
UBL Definition
The total monetary amount of all charges.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Sum of charges on document level

請求書レベルの追加請求の合計
ID
ibt-108
Description
Sum of all charges on document level in the Invoice.
請求書レベルの追加請求の合計。
Aligned Cardinality
0..1
Semantic datatype
Amount

Code list

ISO4217
ISO 4217 Currency codes

Child element

  ID Business term Sem. Card. Syntax Card. XPath
  1..1 1..1 / Invoice / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount / @currencyID

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-122(fatal)
Unchanged
Same as 0.9.2
ibr-co-12(fatal)
Unchanged
Same as 0.9.2
ibr-co-13(fatal)
Unchanged
Same as 0.9.2

VERSION 0.9.2 RULES
JP PINT 0.9.2 Shared rules
ibr-122(fatal)
Still valid
[ibr-122]-Document level charge amount (ibt-108) MUST have no more than 2 decimals.
context
cac:LegalMonetaryTotal
test
string-length(substring-after(cbc:ChargeTotalAmount, '.')) <= 2
ibr-co-12(fatal)
Still valid
[ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).
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()])
)
ibr-co-13(fatal)
Still valid
[ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-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)
  )
)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:ChargeTotalAmount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK 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 MRO 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 SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

VERSION 0.9.1 RULES
Obsoleted
Shared rules (0.9.1)
ibr-co-12 (fatal)
[ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).
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()])
)
ibr-co-13 (fatal)
[ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-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)
  )
)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:ChargeTotalAmount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK 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 MRO 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 SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

JP PINT 0.9 RULES
Obsoleted
Shared Rules (0.9)
ibr-co-12(fatal)
[ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).
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()])
)

PEPPOL BIS BILLING 3.0 RULES
EN16931 model bound to UBL rules
BR-CO-12 (fatal)
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()])
)
BR-CO-13 (fatal)
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)
  )
)
BR-DEC-11 (fatal)
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,'.'))<=2