The quantity of items (goods or services) that is charged in the Invoice line.
請求書明細行で請求する品目(財又はサービス)の数量。


About

Syntax binding
ubl:Invoice / cac:InvoiceLine / cbc:InvoicedQuantity
Restricted Syntax Cardinality
1..1
Example
4
Attribute(s)
@unitCode
UBL 2.1
XPath
/ Invoice / cac:InvoiceLine / cbc:InvoicedQuantity
Occurrence
0..1
Datatype
QuantityType
UBL Definition
The quantity (of items) on this invoice line.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Invoiced quantity

請求する数量
ID
ibt-129
Description
The quantity of items (goods or services) that is charged in the Invoice line.
請求書明細行で請求する品目(財又はサービス)の数量。
Aligned Cardinality
1..1
Semantic datatype
Quantity

Code list

UNECERec20
Recommendation 20, including Recommendation 21 codes - prefixed with X (UN/ECE)

Child element

  ID Business term Sem. Card. Syntax Card. XPath
 ibt-130 1..1 1..1 / Invoice / cac:InvoiceLine / cbc:InvoicedQuantity / @unitCode

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-022(fatal)
Unchanged
Same as 0.9.2
ibr-088(fatal)
Changed Message
[ibr-088]-Unit code (ibt-150) of price base quantity (ibt-150) MUST be same as the unit code (ibt-130) of invoiced quantity (ibt-129).
context
cac:Price/cbc:BaseQuantity[@unitCode]
test
not(../../cbc:InvoicedQuantity or
  ../../cbc:CreditedQuantity) or
(@unitCode =
  ../../cbc:InvoicedQuantity/@unitCode) or
(@unitCode =
  ../../cbc:CreditedQuantity/@unitCode
)

VERSION 0.9.2 RULES
JP PINT 0.9.2 Aligned rule
aligned-ibrp-053(fatal)
Obsoleted
[aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136).
context
cac:InvoiceLine |
cac:CreditNoteLine
test
(exists(cac:Price/cbc:BaseQuantity) and
  u:slack(xs:decimal(cbc:LineExtensionAmount), xs:decimal(((cbc:InvoicedQuantity|cbc:CreditedQuantity) * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity)) +
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount) -
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)), 0.02)) or
(
  not(
    exists(cac:Price/cbc:BaseQuantity)) and
  u:slack(xs:decimal(cbc:LineExtensionAmount), xs:decimal(((cbc:InvoicedQuantity|cbc:CreditedQuantity) * cac:Price/cbc:PriceAmount) +
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount) -
      sum(//cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)), 0.02
  )
)
JP PINT 0.9.2 Shared rule
ibr-022(fatal)
Still valid
[ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..
context
cac:InvoiceLine |
cac:CreditNoteLine
test
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)

VERSION 0.9.1 RULE
Obsoleted
Shared rule (0.9.1)
ibr-022 (fatal)
[ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..
context
cac:InvoiceLine |
cac:CreditNoteLine
test
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)

JP PINT 0.9 RULES
Obsoleted
Aligned Rules (0.9)
jp-br-09(fatal)
[jp-br-09]-Invoice line net amount (ibt-131) = Item net price (ibt-146) X Invoiced quantity (ibt-129) ÷ Item price base quantity (ibt-149) + Invoice line charge amount (ibt-141) – Invoice line allowance amount (ibt-136).
context
/ubl:Invoice[cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'JP' ]/cac:InvoiceLine
test
(exists(cac:Price/cbc:BaseQuantity) and
  (
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount)) or
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity) -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount div cac:Price/cbc:BaseQuantity))))) or
(
  not(
    exists(cac:Price/cbc:BaseQuantity)) and
  (
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount +
        cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount -
        cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount)) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()]) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount +
          cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:Amount))) or
    (exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()]) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount -
          cac:AllowanceCharge[cbc:ChargeIndicator=false()]/cbc:Amount))) or
    (
      not(
        exists(cac:AllowanceCharge[cbc:ChargeIndicator=false()])) and
      not(exists(cac:AllowanceCharge[cbc:ChargeIndicator=true()])) and
      (cbc:LineExtensionAmount =
        cbc:InvoicedQuantity * (cac:Price/cbc:PriceAmount))
    )
  )
)
Shared Rules (0.9)
ibr-22(fatal)
[ibr-22]-Each Invoice line (ibg-25) shall have an Invoiced quantity (ibt-129).
context
cac:InvoiceLine | cac:CreditNoteLine
test
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)

PEPPOL BIS BILLING 3.0 RULE
EN16931 model bound to UBL rule
BR-22 (fatal)
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)