InvoiceGlass

Currency code on an amount · CII-DT-031

  • Severity · Error
  • Applies to · CII
  • Editorial review pending

The invoice currency appears in the settlement section. This amount field does not take a separate currency attribute.

As of

Who can correct it?

The sender can correct the invoice.

How to fix it

  1. Keep the actual invoice currency in ram:InvoiceCurrencyCode. Omit currencyID from the reported amount field.
  2. CII · //ram:*[ends-with(name(), 'Amount') and not (self::ram:TaxTotalAmount)]/@currencyID

Rule text and source

Paraphrase · CII amount elements with names ending in Amount must omit the currencyID attribute, except for TaxTotalAmount.

Message to the sender

Hello,

Validation of the invoice XML for {invoiceNumber} returned CII-DT-031. The message concerns currency code on an amount. Please correct the export and send me the updated XML file.

Thank you.

Example

The line net amount stays the same. The corrected amount omits the extra currency attribute.

CII

//ram:*[ends-with(name(), 'Amount') and not (self::ram:TaxTotalAmount)]/@currencyID

Fails the rule
<ram:LineTotalAmount currencyID="EUR">100.00</ram:LineTotalAmount>

Corrected
<ram:LineTotalAmount>100.00</ram:LineTotalAmount>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file