/ubl:Invoice/cac:InvoiceLine

Invoice Line

Portugal | VRBL-Invoice-PT-2p1
Context ID INV1150
Usage M+

Description

A group of business terms providing information on individual Invoice lines.

Child elements
Usage Element Description Cardinality
M cbc:ID Invoice Line ID

An identifier for this invoice line.

1..1
O cbc:Note Invoice Line Note

Free-form text conveying information that is not contained explicitly in other structures.

0..n
M cbc:InvoicedQuantity Invoiced Quantity

The quantity (of items) on this invoice line.

0..1
M cbc:LineExtensionAmount Invoice Line Net Amount

The total amount for this invoice line, including allowance charges but net of taxes.

1..1
O cbc:AccountingCost Invoice Line Buyer Accounting Reference

The buyer's accounting cost centre for this invoice line, expressed as text.

0..1
O cac:OrderLineReference Order Line Reference

A reference to an order line associated with this invoice line.

0..n
O* cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false'] Invoice Line Allowances

An allowance or charge associated with this invoice line.

0..n
O* cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true'] Invoice Line Charges

An allowance or charge associated with this invoice line.

0..n
M cac:Item Item Information

The item associated with this invoice line.

1..1
M cac:Price Price Details

The price of the item associated with this invoice line.

0..1
Details

Example: PT_creditnote_381.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:InvoiceLine>
    <cbc:ID>000010</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">3.00</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
    <cac:OrderLineReference>
      <cbc:LineID>000001</cbc:LineID>
    </cac:OrderLineReference>
    <cac:Item>
      <cbc:Name>ItemName</cbc:Name>
      <cac:SellersItemIdentification>
        <cbc:ID>730430</cbc:ID>
      </cac:SellersItemIdentification>
      <cac:CommodityClassification>
        <cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
      </cac:CommodityClassification>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>25.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
      <cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
    </cac:Price>
  </cac:InvoiceLine>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-PT-2p1-187 Each Invoice Line must have a Invoiced Item Tax Scheme Code .
VRBL-INV-PT-2p1-188 The Item Price Base Quantity must be greater than zero.
VRBL-INV-PT-2p1-189 The Invoice Line Net Amount must equal the multiplication between the Invoiced Quantity and the Item Net Price divided by the Item Price Base Quantity subtracted by the sum of the Invoice Line Allowances and added the sum of the Invoice Line Charges, with an acceptance range of 1.00 EURO (it does not mean that this tolerance is accepted by the customer).
VRBL-INV-EN16931-S-242 The Purchase Order Line Reference is expected no more than 1 times within the Invoice Line.
VRBL-INV-EN16931-S-243 The Invoice Line Period is expected no more than 1 times within the Invoice Line.
VRBL-INV-EN16931-S-246 The Item Description is expected no more than 1 times within the Invoice Line.
VRBL-INV-EN16931-M-98 The Invoice Line ID must be provided in the Invoice Line.
VRBL-INV-EN16931-M-102 The Item Name must be provided in the Invoice Line.
VRBL-INV-EN16931-M-105 The Item Gross Price must not be negative.