InvoiceGlass

A quantity has a unit code outside the list · BR-CL-23

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

The check concerns a quantity unit code (such as BT-130 or BT-150). The check also covers the unit on the item price base quantity.

As of

Who can correct it?

The sender can correct the invoice.

How to fix it

  1. Choose the code for the actual value from UNECE Recommendation 20 with the Recommendation 21 extension. Check that your invoicing software uses the list for the selected format.
  2. XML fields in the affected group · UBL cbc:InvoicedQuantity, cbc:CreditedQuantity, cbc:BaseQuantity → @unitCode · CII ram:BilledQuantity, ram:BasisQuantity → @unitCode

Rule text and source

Paraphrase · The code for a quantity unit code (such as BT-130 or BT-150) must come from UNECE Recommendation 20 with the Recommendation 21 extension.

Message to the sender

Subject: Invoice {invoiceNumber} – A quantity has a unit code outside the list

Hello,

could you clarify a detail on your invoice {invoiceNumber} dated {issueDate} (BR-CL-23)? The check concerns a quantity unit code (such as BT-130 or BT-150). Please check the code against the list for the invoice format and send us the corrected invoice.

Thank you and kind regards

Example

Two hours use unitCode="HUR". The value unitCode="hours" triggers the rule.

UBL

cbc:InvoicedQuantity, cbc:CreditedQuantity, cbc:BaseQuantity → @unitCode

Fails the rule
<cbc:InvoicedQuantity unitCode="hours">2</cbc:InvoicedQuantity>

Corrected
<cbc:InvoicedQuantity unitCode="HUR">2</cbc:InvoicedQuantity>

CII

ram:BilledQuantity, ram:BasisQuantity → @unitCode

Fails the rule
<ram:BilledQuantity unitCode="hours">2</ram:BilledQuantity>

Corrected
<ram:BilledQuantity unitCode="HUR">2</ram:BilledQuantity>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file