The amount to be added to the invoice total to round the amount to be paid.
支払金額に丸めるために請求書の合計金額に追加される金額。


About

Syntax binding
ubl:Invoice / cac:LegalMonetaryTotal / cbc:PayableRoundingAmount
Restricted Syntax Cardinality
0..1
Attribute(s)
@currencyID
UBL 2.1
XPath
/ Invoice / cac:LegalMonetaryTotal / cbc:PayableRoundingAmount
Occurrence
0..1
Datatype
AmountType
UBL Definition
The rounding amount (positive or negative) added to produce the line extension amount.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Rounding amount

丸めるための金額
ID
ibt-114
Description
The amount to be added to the invoice total to round the amount to be paid.
支払金額に丸めるために請求書の合計金額に追加される金額。
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:PayableRoundingAmount / @currencyID

VERSION 1.0 RULE

Unchanged
Same as 0.9.3

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

VERSION 0.9.2 RULE
JP PINT 0.9.2 Shared rule
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:PayableRoundingAmount
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 RULE
Obsoleted
Shared rule (0.9.1)
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:PayableRoundingAmount
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-17 (fatal)
The allowed maximum number of decimals for the Rounding amount (BT-114) is 2.
context
cac:LegalMonetaryTotal
test
string-length(substring-after(cbc:PayableRoundingAmount,'.'))<=2