# Issue an invoice

## Overview

[Video: Issue an invoice](https://www.youtube.com/watch?v=w_V54tQEU5A)

This flow describes how to issue a draft [invoice](https://docs.ohc.network/concepts/billing/invoice.md) in Care. When you issue an invoice, its lines are fixed, and Care opens the form to collect a payment.

## Pre-requisites

* The invoice status is Draft.
* The invoice has at least one charge item.
* If the invoice is locked, you have Can Manage Locked Invoice, so that you can open it.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Write Invoice | Issue the invoice. Facility Admin, Staff, Doctor, Nurse and Pharmacist hold it. |
| Can Read Invoice | Open the invoice. Care also checks it when you issue the invoice. Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist hold it. |
| Can Manage Locked Invoice | Only to open a locked invoice. Facility Admin holds it. |

You hold each permission through a role in any organization of the facility. The roles named are the default roles.

To record a payment after you issue the invoice, you also need Can Write Payment Reconciliation. See [Record a payment for an invoice](https://docs.ohc.network/flows/billing/payment-reconciliation/record-payment.md).

## Steps

### 1. Open the invoice

Open the draft invoice. See [Find and open an invoice](https://docs.ohc.network/flows/billing/invoice/view-invoice.md).

Note: An invoice that you create from a pharmacy dispense is already issued. See [Dispense a medication](https://docs.ohc.network/flows/medications/medication-dispense/dispense-medication.md).

![Draft invoice page with the invoice number and its Draft badge highlighted, above the Edit Details, Edit Items and Print buttons.](/assets/images/issue-invoice-1-92bd2cdefef3b5dacc46c345ee97e08b.webp)

### 2. Check the invoice

Make sure that the lines, the details and the totals are correct.

After you issue the invoice, you cannot change its items or its details on the invoice page.

![Draft invoice page with the table of line items highlighted: two items with performer, unit price, quantity, discount and total.](/assets/images/issue-invoice-2-240bdfd5f5bc86fadfbee7d9315243d6.webp)

### 3. Issue the invoice

Select **Issue Invoice**.

Note: Press `i` on the invoice page to issue the invoice.

Care issues the invoice at once. Care does not ask you to confirm.

If Care cannot issue the invoice, it shows the reason. Some examples:

| Message | What it means |
| - | - |
| "Cannot write invoice" | You do not have Can Write Invoice. |
| "Invoice must have at least one charge item" | The invoice has no charge items. Add one before you issue the invoice. |
| "Invoice contains charge items that it does not own" | One or more items are no longer Billed on this invoice, or are on another account. |
| "The resource you are trying to access is locked" | Someone else is changing the same account at that moment. Try again. |

![Draft invoice page with the Issue Invoice button at the top right highlighted.](/assets/images/issue-invoice-3-c6e780412a8b624ecc284279ac215aa8.webp)

### 4. Collect a payment, or close the form

Care opens **Collect Payment**.

To record a payment now, follow [Record a payment for an invoice](https://docs.ohc.network/flows/billing/payment-reconciliation/record-payment.md).

To record the payment later, close the form.

After you record a payment, Care checks the totals of the invoice. If the payments minus the credit notes equal the invoice total, Care marks the invoice as balanced. Care then shows **Invoice marked as balanced**.

![Collect Payment panel opened after issuing, with payment method, payment type and amount fields, and the Cancel button highlighted; a toast says \&quot;Invoice updated successfully\&quot;.](/assets/images/issue-invoice-4-be121b21c56aa4fcfcdf451b12d9d050.webp)

![Invoice page after issuing: the invoice number now has an Issued badge, highlighted, and Mark as balanced and Record Payment buttons appear.](/assets/images/issue-invoice-5-8e53869e00e396218853e4114c541723.webp)

## Expected Outcome

* The invoice status changes from Draft to Issued.
* If the invoice had no issue date, Care sets it to the current time. If it had one, Care keeps it.
* The lines of the invoice are fixed, and its charge items cannot be changed.
* The invoice page shows **Record Payment** and **Mark as balanced**.
* The invoice cannot go back to Draft.

## Related

Concepts:

* [Invoice](https://docs.ohc.network/concepts/billing/invoice.md)
* [Payment Reconciliation](https://docs.ohc.network/concepts/billing/payment-reconciliation.md)

Flows:

* [Record a payment for an invoice](https://docs.ohc.network/flows/billing/payment-reconciliation/record-payment.md)
* [Mark an invoice as balanced](https://docs.ohc.network/flows/billing/invoice/mark-invoice-balanced.md)
* [Change the items of a draft invoice](https://docs.ohc.network/flows/billing/invoice/edit-invoice-items.md)
* [Cancel an invoice](https://docs.ohc.network/flows/billing/invoice/cancel-invoice.md)
