> For the complete documentation index, see [llms.txt](https://docs.cleartax.in/product-help-and-support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleartax.in/product-help-and-support/for-large-businesses/cleartax-e-invoicing-malaysia/b2b-sales-documents/generate-consolidated-e-invoice.md).

# Generate consolidated e-invoice

Consolidation of invoices is allowed by LHDN for reporting of B2B & B2C invoices where e-invoice is not requested by the consumer.

Steps -&#x20;

* In the "Sales Document" or "Purchase Document" screen, select the invoices that you want to consolidate and click on "Action" and select "Generate Consolidated e-invoice"

<figure><img src="/files/mVPokvsAXTifRxsGoIJQ" alt=""><figcaption></figcaption></figure>

* The selected invoice will be consolidated using the ClearTax algorithm and all invoice totals and tax totals will be aggregated and send to LHDN
* The invoice status will change to "Consolidated" and consolidated document number thus generated will be visible in the column "Consolidated Document Number". This document series is auto generated by ClearTax
* The invoice after consolidation will be visible in the "Consolidates Documents" tab
* In order to view the consolidated invoice, go to "Consolidates Documents" and find the consolidated document number
* The invoice series of the consolidated documents can be viewed in the line items section, column - "Description of Product or Service"

<figure><img src="/files/7viETMU0qn4yAsq8gcWd" alt=""><figcaption></figcaption></figure>

* The consolidated invoice document series is also available in the invoice print PDF of the consolidated e-invoice


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cleartax.in/product-help-and-support/for-large-businesses/cleartax-e-invoicing-malaysia/b2b-sales-documents/generate-consolidated-e-invoice.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
