> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How-to guides: Manage the invoices of a contract

> This document shows how to preview the invoices of a contract, how to view the invoices of an active contract, and how to recalculate them.

## Preview the invoices of a contract

The invoice preview shows the invoices that a [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) would produce with its current settings, before you save or publish it.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Read Invoice** permissions.
* The contract needs a customer, a currency, a [contract duration](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract-duration), and at least one [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item).

### Steps

1. Open the contract. See [Find a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#find-a-contract).

2. On the **Summary** tab, turn on **Invoice Preview**. The **Invoice Preview** screen opens next to the contract.

3. Review the invoices. To find the invoices of a month, search for the month.

   The preview updates whenever the contract changes, before you save.

4. To close the preview, turn off **Invoice Preview**.

## View the invoices of an active contract

Only an [active contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#active-contract) has an **Invoices** tab.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Read Invoice** permissions.

### Steps

1. Open the active contract. See [Find a contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/how-to-guides/contracts.md#find-a-contract).
2. Click **Invoices**. The tab lists the invoices of the contract, with their [billing period](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-period), status, invoice total, and amount due.
3. To open an invoice, click its row.

## Regenerate the invoices of a contract

Saving an active contract recalculates its draft and upcoming invoices on its own. You start the recalculation yourself, for example after an earlier run fails.

### Prerequisites

* You need a role with the **Can Read Contract** and **Can Update Contract** permissions.

### Steps

1. Open the active contract, and click **Invoices**.
2. Click **REGENERATE INVOICES**.

   While the recalculation runs, a banner replaces **REGENERATE INVOICES**, and shows the progress. If the recalculation fails, the banner offers to retry. Only one recalculation runs for a contract at a time. A second request follows the run in progress.

Zenskar recalculates the draft and upcoming invoices of the contract.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.