/ubl:Invoice/cac:InvoiceLine

Invoice Line

Saudi Arabia | VRBL-Invoice-SA-1p2
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
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* cac:DocumentReference Line Document Reference

A reference to a document associated with this invoice line.

0..n
M cac:TaxTotal[cbc:TaxAmount/@currencyID = /ubl:Invoice/cbc:DocumentCurrencyCode] Invoice Line Invoice Tax

A total amount of taxes of a particular kind applicable to 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: SA_Creditnote_381.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="H87">2.000000</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="SAR">4.00</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
        <cbc:TaxInclusiveAmount currencyID="SAR">4.60</cbc:TaxInclusiveAmount>
        <cac:TaxCategory>
          <cbc:ID>S</cbc:ID>
          <cbc:Percent>15.00</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>قلم</cbc:Name>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>15.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="SAR">2.00</cbc:PriceAmount>
      <cac:AllowanceCharge>
        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
        <cbc:BaseAmount currencyID="SAR">2.00</cbc:BaseAmount>
      </cac:AllowanceCharge>
    </cac:Price>
  </cac:InvoiceLine>
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-SA-1p2-103 If the Line Document Reference ID is provided, then Invoice Line Net Amount, Invoice Line Tax Amount, Invoice Line Tax Rounding Amount and Item Net Price must be 0 (Zero), if exist.
VRBL-INV-SA-1p2-104 If the Line Document Reference ID is provided in an Invoice Line, then the following data is mandatory to provide in that invoice line - Invoice Line Tax Subtotal Amount, Invoice Line Tax Subtotal Tax Percent, Invoice Line Tax Subtotal Taxable Amount.
VRBL-INV-SA-1p2-105 An Invoice line Invoice Line Tax Subtotal Tax ID is "Zero rated" the Invoice Line Tax Subtotal Tax Percent must be 0 (zero).
VRBL-INV-SA-1p2-106 An Invoice line where the Invoice Line Tax Subtotal Tax ID is "Exempt from VAT" the Invoice Line Tax Subtotal Tax Percent must be 0 (zero).
VRBL-INV-SA-1p2-107 An Invoice line where the Invoice Line Tax Subtotal Tax ID is "Not subject to VAT" the Invoice Line Tax Subtotal Tax Percent must be 0 (zero).
VRBL-INV-SA-1p2-109 The Invoice Line Tax Subtotal Taxable Amount and Invoice Line Tax Subtotal Amount must have a maximum two decimals.
VRBL-INV-SA-1p2-110 The Line Item Tax Sub Total Tax Inclusive Amount = Invoice Line Net Amount + Invoice Line Tax Amount.
VRBL-INV-SA-1p2-111 In case of a tax invoice the Invoice Line Tax Amount is mandatory.
VRBL-INV-SA-1p2-112 The Line Item Tax Sub Total Tax Inclusive Amount is mandatory for Invoice Simplified Invoice Indicator 'true'.
VRBL-INV-SA-1p2-113 An Invoice line where the Invoiced Item Tax Category Code is "Not subject to VAT", the Invoiced Item Tax Rate must be 0 (zero), if exist.
VRBL-INV-SA-1p2-114 The Invoiced Item Tax Rate must be from 0.00 to 100.00, with maximum two decimals.Only numerals are accepted, the percentage symbol (%) is not allowed.
VRBL-INV-SA-1p2-115 The Invoice Line Tax Amount must have a maximum two decimals.
VRBL-INV-SA-1p2-116 The Invoice Line Tax Rounding Amount must have a maximum two decimals.
VRBL-INV-SA-1p2-117 The Price Charge Indicator must be 'false'.
VRBL-INV-SA-1p2-119 The Invoice Line Extension Amount Currency Code must have the same value as the Document Currency Code.
VRBL-INV-SA-1p2-120 The Invoice Line Document Reference Issue Time must be in the format: hh:mm:ss for time expressed in AST or hh:mm:ssZ for time expressed in UTC.(eg 19:20:30)
VRBL-INV-SA-1p2-121 The Invoice Line Document Reference Issue Date must be formatted YYYY-MM-DD, in accordance to the "Calendar date complete representation" as specified by ISO 8601:2004, format YYYY-MM-DD.
VRBL-INV-SA-1p2-122 The Invoiced Quantity must be positive.
VRBL-INV-SA-1p2-123 The Invoice Line Net Amount must be positive.
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.