The sum of amounts which have been paid in advance.
事前に支払われた金額の合計。


About

Syntax binding
ubl:Invoice / cac:LegalMonetaryTotal / cbc:PrepaidAmount
Restricted Syntax Cardinality
0..1
Attribute(s)
@currencyID
UBL 2.1
XPath
/ Invoice / cac:LegalMonetaryTotal / cbc:PrepaidAmount
Occurrence
0..1
Datatype
AmountType
UBL Definition
The total prepaid monetary amount.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Paid amount

支払済金額
ID
ibt-113
Description
The sum of amounts which have been paid in advance.
事前に支払われた金額の合計。
Aligned Cardinality
0..1
Semantic datatype
Amount

Code list

ISO4217
ISO 4217 Currency codes

Child element

  ID Business term Sem. Card. Syntax Card. XPath
  1..1 1..1 / Invoice / cac:LegalMonetaryTotal / cbc:PrepaidAmount / @currencyID

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-093(fatal)
Unchanged
Same as 0.9.2
ibr-co-16(fatal)
Unchanged
Same as 0.9.2

VERSION 0.9.2 RULES
JP PINT 0.9.2 Aligned rule
aligned-ibrp-007(fatal)
Obsoleted
[aligned-ibrp-007]-The sum of paid amounts (ibt-180) MUST equal the total prepaid amount (ibt-113).
context
/ubl:Invoice |
/cn:CreditNote
test
(
  xs:decimal(cac:LegalMonetaryTotal/cbc:PrepaidAmount) =
  (
    round(
      sum(//cac:PrepaidPayment/xs:decimal(cbc:PaidAmount)) * 10 * 10) div 100
  )
)
JP PINT 0.9.2 Shared rules
ibr-093(fatal)
Still valid
[ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist.
context
cac:PrepaidPayment[1]
test
exists(../cac:LegalMonetaryTotal/cbc:PrepaidAmount)
ibr-co-16(fatal)
Still valid
[ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114).
context
cac:LegalMonetaryTotal
test
(
  xs:decimal(cbc:PrepaidAmount) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  (
    xs:decimal(cbc:PayableAmount) =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  xs:decimal(cbc:PayableAmount) =
  xs:decimal(cbc:TaxInclusiveAmount)) or
(
  xs:decimal(cbc:PrepaidAmount) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    xs:decimal(cbc:TaxInclusiveAmount)
  )
)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:PrepaidAmount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

VERSION 0.9.1 RULES
Obsoleted
Shared rules (0.9.1)
ibr-093 (fatal)
[ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist.
context
cac:PrepaidPayment[1]
test
exists(../cac:LegalMonetaryTotal/cbc:PrepaidAmount)
ibr-co-16 (fatal)
[ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114).
context
cac:LegalMonetaryTotal
test
(
  xs:decimal(cbc:PrepaidAmount) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  (
    xs:decimal(cbc:PayableAmount) =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  xs:decimal(cbc:PayableAmount) =
  xs:decimal(cbc:TaxInclusiveAmount)) or
(
  xs:decimal(cbc:PrepaidAmount) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    xs:decimal(cbc:TaxInclusiveAmount)
  )
)
Code list rule (Shared rule)
ibr-cl-03 (fatal)
[ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3.
Context
cbc:PrepaidAmount
Test
(
  (
    not(contains(normalize-space(@currencyID), ' ')) and
    contains(' AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BOV BRL BSD BTN BWP BYR BZD CAD CDF CHE CHF CHW CLF CLP CNY COP COU CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN ETB EUR FJD FKP GBP GEL GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS INR IQD IRR ISK JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRO MUR MVR MWK MXN MXV MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD SSP STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD USN UYI UYU UZS VEF VND VUV WST XAF XAG XAU XBA XBB XBC XBD XCD XDR XOF XPD XPF XPT XSU XTS XUA XXX YER ZAR ZMW ZWL ',
      concat(' ', normalize-space(@currencyID), ' ')
    )
  )
)

JP PINT 0.9 RULES
Obsoleted
Shared Rules (0.9)
ibr-co-16(fatal)
[ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114).
context
cac:LegalMonetaryTotal
test
(
  xs:decimal(cbc:PrepaidAmount) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  (
    xs:decimal(cbc:PayableAmount) =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  not(xs:decimal(cbc:PayableRoundingAmount)) and
  xs:decimal(cbc:PayableAmount) =
  xs:decimal(cbc:TaxInclusiveAmount)) or
(
  xs:decimal(cbc:PrepaidAmount) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    xs:decimal(cbc:PrepaidAmount)) and
  xs:decimal(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    xs:decimal(cbc:TaxInclusiveAmount)
  )
)

PEPPOL BIS BILLING 3.0 RULES
EN16931 model bound to UBL rules
BR-CO-16 (fatal)
Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).
context
cac:LegalMonetaryTotal
test
(exists(cbc:PrepaidAmount) and
  not(exists(cbc:PayableRoundingAmount)) and
  (
    xs:decimal(cbc:PayableAmount) =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    exists(cbc:PrepaidAmount)) and
  not(exists(cbc:PayableRoundingAmount)) and
  xs:decimal(cbc:PayableAmount) =
  xs:decimal(cbc:TaxInclusiveAmount)) or
(exists(cbc:PrepaidAmount) and
  exists(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    (
      round(
        (xs:decimal(cbc:TaxInclusiveAmount) -
          xs:decimal(cbc:PrepaidAmount)
        ) * 10 * 10
      ) div 100
    )
)) or
(
  not(
    exists(cbc:PrepaidAmount)) and
  exists(cbc:PayableRoundingAmount) and
  (
    (round((xs:decimal(cbc:PayableAmount) -
          xs:decimal(cbc:PayableRoundingAmount)
        ) * 10 * 10
      ) div 100
    )
     =
    xs:decimal(cbc:TaxInclusiveAmount)
  )
)
BR-DEC-16 (fatal)
The allowed maximum number of decimals for the Paid amount (BT-113) is 2.
context
cac:LegalMonetaryTotal
test
string-length(substring-after(cbc:PrepaidAmount,'.'))<=2