The quantity of items (goods or services) that is charged in the Invoice line.
請求書明細行で請求する品目(財又はサービス)の数量。
cbc
urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2ID | Business term | Sem. Card. | Syntax Card. | XPath | |
---|---|---|---|---|---|
ibt-130 | • Invoiced quantity unit of measure code 請求する数量の数量単位コード |
1..1 | / Invoice / cac:InvoiceLine / cbc:InvoicedQuantity / @unitCode |
not(../../cbc:InvoicedQuantity or
../../cbc:CreditedQuantity) or
(@unitCode =
../../cbc:InvoicedQuantity/@unitCode) or
(@unitCode =
../../cbc:CreditedQuantity/@unitCode
)
(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
)
)
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
(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))
)
)
)
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)
exists(cbc:InvoicedQuantity) or
exists(cbc:CreditedQuantity)