/ubl:Invoice/cac:InvoiceLine

Invoice Line

Malaysia | VRBL-Invoice-MY-1p0
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: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: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
C cac:TaxTotal[cbc:TaxAmount/@currencyID = /ubl:Invoice/cbc:TaxCurrencyCode] Invoice Line Accounting 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
O cac:Price Price Details

The price of the item associated with this invoice line.

0..1
O cac:ItemPriceExtension Invoice Line Price Extension Group

The price extension, calculated by multiplying the price per unit by the quantity of items on this invoice line.

0..1
Details

Example: MY_creditnote_02_v1.0_commented.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:InvoiceLine>
    <cbc:ID>0001</cbc:ID>
    <cbc:InvoicedQuantity unitCode="C62">5</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="MYR">6000.00</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="MYR">0.00</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="MYR">6000.00</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="MYR">0.00</cbc:TaxAmount>
        <cac:TaxCategory>
          <cac:TaxScheme>
            <cbc:ID>OTH</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>Laptop Peripherals 2</cbc:Name>
      <cac:OriginCountry>
        <cbc:IdentificationCode>MY</cbc:IdentificationCode>
      </cac:OriginCountry>
      <cac:CommodityClassification>
        <cbc:ItemClassificationCode listID="VRBL:MY:PTC">9800.00.0010</cbc:ItemClassificationCode>
      </cac:CommodityClassification>
      <cac:CommodityClassification>
        <cbc:ItemClassificationCode listID="VRBL:MY:CLASS">003</cbc:ItemClassificationCode>
      </cac:CommodityClassification>
      <cac:ClassifiedTaxCategory>
        <cbc:ID>VRBL:MY:E</cbc:ID>
        <cbc:Percent>0.00</cbc:Percent>
        <cbc:TaxExemptionReason>tax exemption reason free text description</cbc:TaxExemptionReason>
        <cac:TaxScheme>
          <cbc:ID>OTH</cbc:ID>
        </cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="MYR">1200.00</cbc:PriceAmount>
    </cac:Price>
    <cac:ItemPriceExtension>
      <cbc:Amount currencyID="MYR">6000.00</cbc:Amount>
    </cac:ItemPriceExtension>
  </cac:InvoiceLine>
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-MY-1p0-105 The Invoice Line expects Invoice Line Tax exactly once when Document Currency Code is MYR and twice when it is not MYR.
VRBL-INV-MY-1p0-107 The Invoice Line Price Extension Group must exist within the Invoice Line.
VRBL-INV-MY-1p0-122 If the Document Currency Code is not equal MYR, two Invoice Line Tax groups must be provided within each Invoice Line. The first one with full VAT breakdown in foreign currency second one with full VAT breakdown in MYR.