errorcalculationcii-d16b

CII-FIX-LINE-AMOUNTS:CII line total amount recalculation

Fix: Recalculate line total from price × quantity ± allowances/charges.

Each invoice line total (ram:LineTotalAmount) must equal the unit price times quantity, plus charges minus allowances. When the declared amount differs from the calculated amount by more than 1 cent, the system can recalculate it. This changes a financial value and requires your confirmation.

Severity
Fatal
Rule set
cii-d16b
Country
All EU
Fix type
CONFIRM
Confidence
85%
Category
calculation

Engine Classification

Requires user confirmation before application

What is CII-FIX-LINE-AMOUNTS?

CII-FIX-LINE-AMOUNTS is a fatal validation rule defined in the cii-d16b specification. It validates the ram:LineTotalAmount element in the UBL invoice XML.

When this rule fires, the invoice is rejected by Peppol access points and never reaches the buyer.

Target path: ram:LineTotalAmount

Why This Error Matters

CII-FIX-LINE-AMOUNTS is a hard failure — the invoice must be corrected and re-sent before it can reach the recipient.

Incorrect line totals cause the invoice to fail EN 16931 calculation rules. The receiver cannot reconcile the invoice against purchase orders.

Validator Behavior

  • ·Causes invoice rejection
  • ·Fails CII schema validation
  • ·Error returned: CII-FIX-LINE-AMOUNTS
  • ·Specification: cii-d16b

How to Fix It

1.

Identify the calculation mismatch

Check ram:LineTotalAmount at ram:LineTotalAmount. The value does not match the expected sum or formula result.

2.

Recalculate the value

Recalculate line total from price × quantity ± allowances/charges.

3.

Re-validate your invoice

Upload the corrected invoice to confirm CII-FIX-LINE-AMOUNTS is resolved. Calculation errors can cascade — check related totals too.

XML Example

Generic example based on the rule's target XPath. Your actual XML structure may differ.

Before
<!-- Triggers validation error -->
<ram:LineTotalAmount></ram:LineTotalAmount>
After
<!-- Corrected -->
<ram:LineTotalAmount>VALID_VALUE</ram:LineTotalAmount>

Technical Reference

XPathram:LineTotalAmount
Speccii-d16b
Operationrecalculate
StrategyRecalculate each line LineTotalAmount = (ChargeAmount × BilledQuantity) + charges - allowances

Common Causes

  • ·Rounding error in ERP calculation
  • ·Manual override of line total
  • ·Allowances/charges added after total was calculated

Seeing this in production? The API handles CII-FIX-LINE-AMOUNTS automatically. See the fix response →

Commonly Seen In

ZUGFeRD generatorsFactur-X converters

Frequently Asked Questions

Each invoice line total (ram:LineTotalAmount) must equal the unit price times quantity, plus charges minus allowances. When the declared amount differs from the calculated amount by more than 1 cent, the system can recalculate it. This changes a financial value and requires your confirmation.

Recalculate line total from price × quantity ± allowances/charges. You can also use Invoice Navigator's compliance engine to correct this automatically in your pipeline.

Yes, CII-FIX-LINE-AMOUNTS is a critical error that will cause invoice rejection. It must be fixed before submission.

Many instances of CII-FIX-LINE-AMOUNTS can be automatically corrected using Invoice Navigator's compliance engine. The fix is applied in your pipeline with full audit evidence.

CII-FIX-LINE-AMOUNTS is commonly seen in exports from ZUGFeRD generators, Factur-X converters. These packages sometimes generate invoices that need adjustment.

Related Content

Last updated: 14 April 2026

Share this guide:

Validate your invoice

Drop your XML here to check for CII-FIX-LINE-AMOUNTS

Fix CII-FIX-LINE-AMOUNTS with one click

Upload your invoice and we'll suggest a fix for your review before applying it.