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
5
Attribute(s)
@unitCode
UBL 2.1
XPath
/ Invoice / cac:InvoiceLine / cbc:InvoicedQuantity
Occurrence
0..1
Datatype
udt: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.
請求書明細行で請求する品目(財又はサービス)の数量。
Explanation
In the numerical representation for data type quantity the decimal point is . (period) and the integer part is not separated by 1000 units.
【例1】一箱1ダース(12本)入りの鉛筆10箱を購入したとき、ibt-150 品目単価基準数量の数量単位コードがDZNであれば、数量は、10。
Ibt-131 = ibt-146 x ibt-129 / ibt-149 = 1200*10/1 = 12 000
【例2】一箱1ダース(12本)入りの鉛筆10箱を購入したとき、ibt-150 品目単価基準数量の数量単位コードがEAであれば、ibt-149 品目単価基準数量が1で、数量は、120
Ibt-131 = ibt-146 x ibt-129 / ibt-149 = 100*120/1 = 12 000
いづれの場合もibt-149品目単価基準数量はデフォルト値の1。数値表現は、データ型 Quantity については、小数点はピリオド、整数部分の1000単位の区切りはなし。
Cardinality
1..1
Semantic datatype
Quantity
Section
Shared

Code list(s)

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

Child element

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

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)

JP PINT 0.9 RULES (Obsoleted)
Aligned Rule (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 Rule (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)
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)