InvoiceGlass

Unit code for the billed quantity · CII-DT-033

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

This issue concerns unit code for the billed quantity. If a checked quantity has a unitCode attribute, the rule looks for at least one billed quantity with a unit code anywhere on the invoice.

As of

Who can correct it?

The sender can correct the invoice.

How to fix it

  1. Check the unit code of the actual billed quantity in ram:BilledQuantity and the source of the other quantity fields.
  2. CII · //ram:*[ends-with(name(), 'Quantity')]/@unitCode

Rule text and source

Paraphrase · If a checked quantity has a unitCode attribute, the rule looks for at least one billed quantity with a unit code anywhere on the invoice.

Message to the sender

Hello,

Validation of the invoice XML for {invoiceNumber} returned CII-DT-033. The message concerns unit code for the billed quantity. Please correct the export and send me the updated XML file.

Thank you.

Example

Triggers the rule: Another quantity carries unitCode and no billed quantity has a unit code. After correction: The billed quantity carries the unit code that matches the line.

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file