The number of item units to which the price applies.
単価が適用される品目の数量単位での基準数。


About

Syntax binding
ubl:Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity
Restricted Syntax Cardinality
0..1
Example
2
Attribute(s)
@unitCode
UBL 2.1
XPath
/ Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity
Occurrence
0..1
Datatype
QuantityType
UBL Definition
The quantity at which this price applies.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Item price base quantity

品目単価基準数量
ID
ibt-149
Description
The number of item units to which the price applies.
単価が適用される品目の数量単位での基準数。
Aligned Cardinality
0..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-150 0..1 0..1 / Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity / @unitCode

VERSION 1.0 RULE

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULE
JP PINT 0.9.3 Shared rule
ibr-087(fatal)
Unchanged
Same as 0.9.2

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-087(fatal)
Still valid
[ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero.
context
/ubl:Invoice |
/cn:CreditNote
test
not(cac:Price/cbc:BaseQuantity) or
xs:decimal(cac:Price/cbc:BaseQuantity) > 0

VERSION 0.9.1 RULE
Obsoleted
Shared rule (0.9.1)
ibr-087 (fatal)
[ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero.
context
/ubl:Invoice |
/cn:CreditNote
test
not(cac:Price/cbc:BaseQuantity) or
xs:decimal(cac:Price/cbc:BaseQuantity) > 0

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))
    )
  )
)