The line charge base has too many decimal places · BR-DEC-28
- Severity · Error
- Applies to · UBL / CII
- Editorial review pending
The line charge base amount field (BT-142) may have up to two decimal places. This is the amount to which the line charge percentage is applied. Trailing zeros in the XML also count as decimal places.
As of
Who can correct it?
The sender can correct the invoice.
How to fix it
- Export the line charge base amount with at most two decimal places. Then verify any totals that use this amount.
- XML fields in the affected group · UBL cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cbc:BaseAmount · CII ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true()]/ram:BasisAmount
Rule text and source
Paraphrase · BT-142 is limited to amounts with at most two decimal places.
Message to the sender
Subject: Invoice {invoiceNumber} – The line charge base has too many decimal places
Hello,
could you clarify a detail on your invoice {invoiceNumber} dated {issueDate} (BR-DEC-28)? The line charge base amount field (BT-142) may have up to two decimal places. Please export the amount with at most two decimal places and verify the totals that use it.
Could you send us the corrected invoice?
Thank you and kind regardsExample
The line charge base amount is written as 12.346 in the XML, with three decimal places. The value rounded to two places is 12.35.
UBL
cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:BaseAmount
Fails the rule
<cbc:BaseAmount currencyID="EUR">12.346</cbc:BaseAmount>
Corrected
<cbc:BaseAmount currencyID="EUR">12.35</cbc:BaseAmount>
CII
ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator=true]/ram:BasisAmount
Fails the rule
<ram:BasisAmount>12.346</ram:BasisAmount>
Corrected
<ram:BasisAmount>12.35</ram:BasisAmount>Business terms
Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17