Spain B2G: Invoiced Quantity

Spain uses unique unit codes for units of measurement.

Use the InvoicedQuantity sub-element of the InvoiceLine element to model this information. Use the values listed in the Restrictions section of this topic.

Elements

The following element is grouped in the Invoice/InvoiceLine element:

Name (Technical Name)CardinalityDescription
Invoiced Quantity (InvoicedQuantity)1..n
Invoiced Quantity - Unit of Measure (InvoicedQuantity @unitCode)1..n

Restrictions

You use values from the X list here to specify the unit of measure. You must prefix this value with VRBL:ES as outlined in the following table:

VRBL ValueUNECERec20Description
VRBL:ES:01Not applicableUnits
VRBL:ES:02HURHours
VRBL:ES:03KGMKilograms
VRBL:ES:04LTRLitres
VRBL:ES:05Not applicableOther
VRBL:ES:06XBXBoxes
VRBL:ES:07XPUTrays
VRBL:ES:08XBABarrels
VRBL:ES:09Not applicableJerricans
VRBL:ES:10XBGBags
VRBL:ES:11Not applicableCarboys
VRBL:ES:12Not applicableBottles
VRBL:ES:13XCICanisters
VRBL:ES:14Not applicableTetra bricks
VRBL:ES:15CLTCentilitres
VRBL:ES:16CMTCentimetres
VRBL:ES:17XBIBins
VRBL:ES:18DZNDozens
VRBL:ES:19XCSCases
VRBL:ES:20Not applicableDemijohns
VRBL:ES:21GRMGrams
VRBL:ES:22KMTKilometres
VRBL:ES:23Not applicableCans
VRBL:ES:24Not applicableBunches
VRBL:ES:25MTRMetres
VRBL:ES:26MMTMillimetres
VRBL:ES:27Not applicable6-packs
VRBL:ES:28XPKPackages
VRBL:ES:29PINPortions
VRBL:ES:30XRORolls
VRBL:ES:31XENEnvelopes
VRBL:ES:32XTBTubs
VRBL:ES:33MTQCubic metre
VRBL:ES:34SECSecond
VRBL:ES:35WTTWatt

Example

<Invoice>
    <!-- code omitted for clarity -->
    <cac:InvoiceLine>
        <!-- code omitted for clarity -->
        <cbc:InvoicedQuantity unitCode="VRBL:ES:33">14</cbc:InvoicedQuantity>
        <!-- code omitted for clarity -->
    </cac:InvoiceLine>
</Invoice>