# Cancel an invoice

## Overview

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

This flow describes how to cancel an [invoice](https://docs.ohc.network/concepts/billing/invoice.md) in Care, or mark it as Entered in Error. Both actions take the charge items off the invoice and make them Billable again.

## Pre-requisites

* The invoice status is Draft, Issued or Balanced. Care does not offer these actions for an invoice that is already Cancelled or Entered in Error.
* If the invoice has active payments or credit notes, you know how to handle them. Cancelling the invoice does not cancel them.
* 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 Destroy Invoice | Cancel the invoice, or mark it Entered in Error. By default, you need this permission for every cancellation. Facility Admin holds it. |
| Can Read Invoice | Open the invoice. Care also checks it when you confirm. 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.

A deployment can set a period after an invoice is created. During that period, Can Write Invoice is enough to cancel the invoice. Facility Admin, Staff, Doctor, Nurse and Pharmacist hold Can Write Invoice. By default, the period is 0 minutes.

## Steps

### 1. Open the invoice

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

![The invoice number and its Issued badge on the invoice page, above the line items and a cash payment received against the invoice](/assets/images/cancel-invoice-1-d02039d6b1e553443c2edba774c87109.webp)

### 2. Open the menu

Open the more-options (**⋮**) menu.

![The three-dot more-options button next to Print on the issued invoice page](/assets/images/cancel-invoice-2-f1d942720c98c353703fd06985e55615.webp)

### 3. Choose the action

To cancel the invoice, select **Mark as Cancelled**.

To mark the invoice Entered in Error, select **Mark as entered in error**.

![The open more-options menu of the invoice, with Lock Invoice, Mark as Cancelled and Mark as entered in error](/assets/images/cancel-invoice-3-c088b9b129e9155863e999c6b32ee18b.webp)

### 4. Read the warning about payments

If the invoice has active payments or credit notes, Care shows a warning first. Its title is **Cancel Invoice with Active Payments** or **Mark as Entered in Error with Active Payments**.

The warning lists the payments and credit notes. It says that Care does not cancel them with the invoice.

To continue, select **Proceed**.

To stop, select **Cancel**.

![The Cancel Invoice with Active Payments dialog, warning that payments are not cancelled with the invoice and listing one active cash payment, with Cancel and Proceed](/assets/images/cancel-invoice-4-167384b8108f5c542f6cdf4f51f02e36.webp)

### 5. Confirm

To cancel, Care asks **Are you sure you want to mark this invoice as cancelled?** To mark the invoice Entered in Error, Care asks **Are you sure you want to mark this invoice as entered in error?**

Select **Confirm**.

![The red Confirm button in the dialog that asks to mark the invoice as cancelled, next to Cancel](/assets/images/cancel-invoice-5-89aed57a845d0d0a04a0ec284c9f3c18.webp)

## Expected Outcome

* Care shows **Invoice cancelled successfully**.
* The invoice status changes to Cancelled or to Entered in Error.
* All charge items on the invoice change back to Billable. This includes the Paid items of a Balanced invoice. You can add them to a new invoice.
* Payments and credit notes against the invoice stay active. To reverse them, see [Cancel a payment](https://docs.ohc.network/flows/billing/payment-reconciliation/cancel-payment.md) and [Record a credit note](https://docs.ohc.network/flows/billing/payment-reconciliation/record-credit-note.md).
* The account totals no longer include the invoice.
* The invoice cannot change to another status again.
* By default, if you do not have Can Destroy Invoice, Care shows "Cannot cancel invoice" and **Failed to cancel invoice**. The invoice does not change.

## Related

Concepts:

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

Flows:

* [Find and open an invoice](https://docs.ohc.network/flows/billing/invoice/view-invoice.md)
* [Mark an invoice as balanced](https://docs.ohc.network/flows/billing/invoice/mark-invoice-balanced.md)
* [Cancel a payment](https://docs.ohc.network/flows/billing/payment-reconciliation/cancel-payment.md)
* [Record a credit note](https://docs.ohc.network/flows/billing/payment-reconciliation/record-credit-note.md)
* [Create an invoice](https://docs.ohc.network/flows/billing/invoice/create-invoice.md)
