# Recent invoices

To view the most recently created/edited invoices, go to the "Invoices" ➡️ "Recent" submenu in the main menu. This menu item displays all invoices created or edited in the past eleven days.

By default, when clicking the link in the menu, the invoice viewing window looks as follows:

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

On the left side, there is a search and sorting panel, as well as the list of recent invoices. On the right side, the selected invoice is displayed. By default, when landing on the page, no invoice is selected.

In the image above:

1 — Selection of the sorting method for recent invoices. By default, the sorting is based on the editing/creation time of the invoice (from newest to oldest), as shown in the image below item 4. If the sorting method is set to user-based, the invoice list will look like this:

<figure><img src="/files/4TRiooia1hO2BrQiXyKM" alt=""><figcaption></figcaption></figure>

Each client's name is listed as a separate item (on the image, each name is obscured for confidentiality), and to view the client's invoices, you need to click on their name, which expands the list of their recent invoices, as indicated by the arrow in the image.

2 — Filter for recent invoices based on categories/statuses. By default, the following categories are selected:

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

In the list, invoices are highlighted based on the color of their category.

3 — Search for invoices based on client data.

4 — List of invoices with brief descriptions: invoice creation date, total price, number of procedures in the invoice.

After selecting an invoice, the invoice itself is displayed in the right window.

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

In the top right corner, above the invoice, there are control buttons:

* Cancel/Restore invoice;
* Edit invoice;
* Open invoice in a new window.

The invoice is displayed in the window in the same format as it would appear when printed.

Clicking the "Open invoice in a new window" button opens a page that looks like this:

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

On the opened page, there is nothing but the invoice itself. This page is designed for printing the invoice.


---

# Agent Instructions: 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:

```
GET https://maxbasev.gitbook.io/santa-maria-dashboard/en/menu/invoices-section/last-invoices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
