# Approve or change the status of a purchase order

## Overview

[Video: Approve or change the status of a purchase order](https://www.youtube.com/watch?v=bEvA5YF3Da4)

This flow describes how to approve a [purchase order](https://docs.ohc.network/concepts/supply/purchase-order.md) in Care, and how to change its status later.

You approve a purchase order when its list of items is complete. Its status then changes from **Draft** to **Pending**, and Care shows **Create Delivery Order**, which starts a purchase delivery for the goods.

From the ⋮ menu, you can later return the purchase order to **Draft**, mark it **Completed**, or cancel it as **Abandoned** or **Entered in Error**. **Abandoned** and **Entered in Error** are final. **Abandoned** also sets every item to **Cancelled**, and **Entered in Error** sets every item to **Entered in Error**.

## Pre-requisites

* You belong to a department of the facility.
* The facility has a store location, that is, a location whose inventory usage is **Store**.
* A service of the facility lists the store location under **Available Locations**.
* The store location has a purchase order. If it has none, see [Create a purchase order](https://docs.ohc.network/flows/supply/purchase-order/create-purchase-order.md).
* If you approve the purchase order, its status is **Draft**, and it has at least one saved item. If it has no items, see [Add items to a purchase order](https://docs.ohc.network/flows/supply/purchase-order/add-items-purchase-order.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Supply Request on Facility | Lets you approve the purchase order and change its status. You must hold this permission in one of the departments of the store location. By default, the Facility Admin, Staff, Doctor, and Nurse roles hold this permission. |
| Can Read Healthcare Service | Lets you open **Services** and the service that lists the store location. You can hold this permission in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |
| Can List Facility Locations | Lets you open the store location. You must hold this permission in one of the departments of the store location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, and Pharmacist roles hold this permission. |
| Can Read Supply Request | Lets you see the purchase orders of the store location and open one. You must hold this permission in one of the departments of the store location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |

The departments of a location are the departments linked to it or to a location that contains it, the departments above them, and Administration.

Care counts only the roles that you hold in the departments of the facility.

Note: Care shows **Mark as Approved** and the ⋮ menu without checking your permissions. Care checks Can Create Supply Request on Facility when you select an option. Without it in a department of the store location, Care shows **Error updating order** and does not change the status.

## Steps

### 1. Open the purchase order

1. Open your facility.
2. In the sidebar, select **Services**.
3. Select the service that lists the store location.
4. Under **Available Locations**, select the button on the card of the store location.
5. In the location sidebar, select **Inventory**. The Inventory group opens.
6. Under **External Supply**, select **Purchase Orders**.
7. Select the tab for the status of the purchase order.
8. In the row of the purchase order, select **See Details**.

![The Requested tab of Purchase Orders with the row of a Draft purchase order outlined](/assets/images/update-purchase-order-status-1-a5942b861dcba7699fb4cff3e052e8e1.webp)

Care opens the purchase order.

Note: The **Requested** tab lists the purchase orders with the status **Draft** or **Pending**. The **Completed** tab lists the purchase orders with the status **Completed**, **Abandoned**, or **Entered in Error**.

Note: The button on the location card depends on the type of the service. For a Store service, it reads **View Inventory**. For a Pharmacy service, it reads **View Prescriptions**. Both buttons open a page of the location, with the location sidebar.

Note: If the inventory usage of the location is not **Store**, the sidebar does not show **External Supply**.

### 2. Approve the purchase order

If the status of the purchase order is not **Draft**, skip this step.

1. If the page shows unsaved rows, select **Save List** first.
2. In the box **Review and finalise this request order**, select **Mark as Approved**.

![A Draft purchase order with saved items and the Review and finalise this request order box outlined, with Mark as Approved](/assets/images/update-purchase-order-status-2-bdd5e89551694f3128245e1cb3bbe6cb.webp)

Care does not ask you to confirm. Care changes the status to **Pending** and shows **Order updated successfully**.

**Mark as Approved** is disabled while the purchase order has no saved items.

After the approval, Care no longer shows the controls to add items. **Create Delivery Order** shows in the page header.

![The purchase order with the status Pending, the message Order updated successfully, and Create Delivery Order outlined in the page header](/assets/images/update-purchase-order-status-3-0a5e0f6b8dcb0f73cd9646cab582f2ed.webp)

Note: **Mark as Approved** shows the keyboard shortcut M. To select it with the keyboard, press M.

### 3. Change the status from the menu

In the page header, open the ⋮ menu. Then select an option.

![The open menu of a Pending purchase order outlined, with Mark as Draft, Mark as Completed, Mark as entered in error, and Mark as Abandoned](/assets/images/update-purchase-order-status-4-8ae9deecd423b64f77bf58e03524f86d.webp)

| Option | When Care shows it | What it does |
| - | - | - |
| **Mark as Draft** | When the status is not **Draft**. | Sets the status to **Draft**. Care shows the controls to add items again. |
| **Mark as Completed** | Only when the status is **Pending**. | Sets the status to **Completed**. |
| **Mark as entered in error** | Whenever Care shows the menu. | Sets the status to **Entered in Error**. Care also sets every item of the purchase order to **Entered in Error**. |
| **Mark as Abandoned** | Whenever Care shows the menu. | Sets the status to **Abandoned**. Care also sets every item of the purchase order to **Cancelled**. |

Care changes the status at once and does not ask you to confirm. Care shows **Order updated successfully**.

If Care cannot save the change, it shows **Error updating order**.

On a **Draft** purchase order, the menu shows only **Mark as entered in error** and **Mark as Abandoned**.

Warning: **Abandoned** and **Entered in Error** are final. After either of them, Care does not save any other status change.

When the purchase order becomes **Abandoned** or **Entered in Error**, Care changes every item, whatever the status of the item.

Note: Care still shows the ⋮ menu on an **Abandoned** purchase order. If you select **Mark as Draft** or **Mark as entered in error**, Care refuses the change. Care shows **Error updating order**, and the status stays **Abandoned**.

Note: Care shows the ⋮ menu only at the store location that raised the purchase order. Care does not show the menu when the status is **Completed** or **Entered in Error**.

Note: When you mark the purchase order **Completed**, Care does not check its items, and it changes nothing else.

Note: Receiving the goods in a purchase delivery does not change the status of the requested items. To close the purchase order, mark it **Completed**.

Note: **Edit** does not change the status. You can still edit the details of an **Abandoned** or **Entered in Error** purchase order. See [Edit a purchase order](https://docs.ohc.network/flows/supply/purchase-order/edit-purchase-order.md).

## Expected Outcome

* Care saves the new status of the purchase order.
* If you approved the purchase order, its status is **Pending**, and the page header shows **Create Delivery Order**. See [Create a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/create-purchase-delivery.md).
* If the status is **Completed**, **Abandoned**, or **Entered in Error**, the purchase order shows in the **Completed** tab of **Purchase Orders**.
* If you abandoned the purchase order, each item shows the status **Cancelled**. If you marked it as entered in error, each item shows **Entered in Error**.

## Related

Concepts:

* [Purchase Order](https://docs.ohc.network/concepts/supply/purchase-order.md)
* [Purchase Delivery](https://docs.ohc.network/concepts/supply/purchase-delivery.md)

Flows:

* [Add items to a purchase order](https://docs.ohc.network/flows/supply/purchase-order/add-items-purchase-order.md)
* [Edit a purchase order](https://docs.ohc.network/flows/supply/purchase-order/edit-purchase-order.md)
* [View a purchase order](https://docs.ohc.network/flows/supply/purchase-order/view-purchase-order.md)
* [Create a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/create-purchase-delivery.md)
