/ubl:Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode

Invoice Line Quantity Unit Code

Context ID INV1179
Cardinality 0..1
Usage O

Description

The unit of the quantity

The unit of measure that applies to the invoiced quantity.

In Polish KSeF FA(3) the Unit of Measurement related to the Invoiced Quantity is defined as free-text element, which allows for any string.

Details

vrbl-invoice-pl-b2b-3p0

Additionally it is flagged as an optional element which can be omitted in certain cases, for example for a simplified invoice. Still in VRBL the usage of the Unit Code attribute is mandatory and we recommend the usage of the codes of the UN/ECE Recommendation 20 with Rec 21 extension for outgoing invoices. For incoming invoices we provide the original free-text value from the original invoice. Altough in very limited scope we will try to convert the original unit of measure text to UN/ECE Recommendation 20 with Rec 21 extension codes.

Example containing an UN/ECE Recommendation 20 with Rec 21 extension code:

<ubl:Invoice>
    <!-- Code omitted for clarity -->
    <cac:InvoiceLine>
        <!-- Code omitted for clarity -->
        <cbc:InvoicedQuantity unitCode="H87">100</cbc:InvoicedQuantity>
        <!-- Code omitted for clarity -->
    </cac:InvoiceLine>
</ubl:Invoice>        

Example containing a free-text description of a code:

<ubl:Invoice>
    <!-- Code omitted for clarity -->
    <cac:InvoiceLine>
        <!-- Code omitted for clarity -->
        <cbc:InvoicedQuantity unitCode="sztuki">100</cbc:InvoicedQuantity>
        <!-- Code omitted for clarity -->
    </cac:InvoiceLine>
</ubl:Invoice>