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

# Edit invoice details before an invoice is issued

> Correct the PO number, addresses, company, VAT number, note and due date an invoice prints, before it's issued and locked.

Sometimes the order in Shopify doesn't say what the invoice should: the customer sends a PO number after ordering, the billing address has a typo, or the company's VAT number is missing. You can correct these details in Foliant without changing the order in Shopify. Foliant prints your details instead of Shopify's until the invoice is issued, and keeps them in the issued invoice.

Editing invoice details is available on every plan.

## What you can change

| Field | What it does |
| - | - |
| **PO number** | The customer's purchase order number. |
| **Due date** | When the invoice is due. |
| **Company** and **VAT number** | The buyer's company name and VAT number. |
| **Note** | Printed on the invoice. The order's note in Shopify stays as it is. |
| **Billing address** and **Shipping address** | Name, company, address, city, postal code, state or province, country and phone. |

Under a field you changed, "In Shopify:" shows what Shopify has, so you can compare. **Use Shopify's details** puts every field back to Shopify's.

Amounts and items always come from Shopify: to change them, edit the order in Shopify.

## Edit the details in Foliant

1. Open **Orders** (or **Draft orders**) in Foliant.
2. Click the **…** menu at the end of the order's row and choose **Edit invoice details**.
3. Change the fields and click **Save**.

On a draft order's page, click **Edit** on the **Invoice details** card, or **More actions › Edit invoice details**. The card shows the details you saved, or "Prints Shopify's details" when you haven't changed anything.

## Edit the details in the Shopify admin

1. In the Shopify admin, open the order.
2. Click **More actions** and choose **Edit invoice details**. If you've added Foliant's **Document numbers** block to the order page, you can also click **Edit invoice details** in it.
3. Change the fields and click **Save**.

## Save and issue

With [locked invoices](https://foliant-help.iforiti.com/invoices-and-numbering/locked-invoices.md) on, an order's invoice details also have **Save and issue**, in Foliant and in the Shopify admin. It saves the details and issues the invoice straight away, with its number, so it's locked with the details you just checked.

## Before printing issues the invoice

With locked invoices on and **Lock documents** set to **When the document is first generated**, the first print issues the invoice. Foliant reminds you: "Check the invoice details first: printing issues the invoice." Correct the details before you print, because the invoice can't change afterwards.

## Once the invoice is issued

An issued invoice can't change, so **Edit invoice details** disappears from the row's menu and from **More actions** in Shopify. The issued invoice keeps the details it was issued with. To correct an issued invoice, refund in Shopify to issue a credit note. See [Correct an invoice with a credit note](https://foliant-help.iforiti.com/invoices-and-numbering/credit-notes-for-refunds.md).

## Good to know

* The details apply to every Foliant document for that order, not only the invoice. A packing slip prints the corrected shipping address too.
* Draft orders never get an invoice, but the details you save print on their quotes and other documents.
* A corrected VAT number is the one Foliant checks and prints for the VAT notes, if your plan includes the tax compliance toolkit.
* The built-in invoice and quote templates and the visual editor's payment block print the **Note**. In a code template, print it with `{{ document_note }}`.
* **Settings › Activity log** records each change, as "Edited the invoice details of #1001".

## Related articles

* [Lock issued invoices](https://foliant-help.iforiti.com/invoices-and-numbering/locked-invoices.md)
* [See document numbers on an order](https://foliant-help.iforiti.com/invoices-and-numbering/document-numbers-on-orders.md)
* [The Orders page](https://foliant-help.iforiti.com/printing/orders-page.md)
* [Send quotes and turn them into orders](https://foliant-help.iforiti.com/printing/quotes.md)


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