The number of item units to which the price applies.
単価が適用される品目の数量単位での基準数。
cbc
urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2ID | Business term | Sem. Card. | Syntax Card. | XPath | |
---|---|---|---|---|---|
ibt-150 | • • Item price base quantity unit of measure code 品目単価基準数量の数量単位コード |
0..1 | / Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity / @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
)
)
not(cac:Price/cbc:BaseQuantity) or
xs:decimal(cac:Price/cbc:BaseQuantity) > 0
not(cac:Price/cbc:BaseQuantity) or
xs:decimal(cac:Price/cbc:BaseQuantity) > 0
(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))
)
)
)