# Edit a purchase order

## Overview

[Video: Edit a purchase order](https://www.youtube.com/watch?v=-LGVRYXRxMU)

This flow describes how to change the details of a [purchase order](https://docs.ohc.network/concepts/supply/purchase-order.md) in Care: its name, intent, note, reason, category, and priority.

You can edit a purchase order in any status. Editing does not change the status of the purchase order, its supplier, or the location that receives the goods.

## 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).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Supply Request on Facility | Lets you save the changes to the purchase order. 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, open one, and load it into the **Edit Order** form. 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: At the store location, Care shows **Edit** without checking your permissions. Care checks Can Create Supply Request on Facility when you select **Save**. Without it in a department of the store location, Care does not save the changes.

## 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: **Requested** or **Completed**.
8. In the row of the purchase order, select **See Details**.

![The Requested tab of Purchase Orders with the row of a purchase order outlined](/assets/images/edit-purchase-order-1-5647aa4f8a313de34b8a6aa965f0c248.webp)

Care opens the purchase order.

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. Open the edit form

In the page header, select **Edit**.

![The page of a purchase order with the Edit button outlined in the page header](/assets/images/edit-purchase-order-2-9d744478c0cd98e3ddb316732211ab11.webp)

Care opens the **Edit Order** form with the current details of the purchase order. The status badge beside the title shows the current status.

Note: Care shows **Edit** only at the store location that raised the purchase order. Care shows it in every status.

Note: **Edit** shows the keyboard shortcut E. To select **Edit** with the keyboard, press E.

### 3. Change the details

Change the fields that you need.

![The Edit Order form with a new note and the Priority options outlined, with Urgent selected](/assets/images/edit-purchase-order-3-55f27ffa65bce227dd8d3a660dfe5220.webp)

| Components | What it captures |
| - | - |
| Name | The name of the purchase order. This field is required. |
| Intent | The intent of the order: **Proposal**, **Plan**, **Directive**, **Order**, **Original Order**, **Reflex Order**, **Filler Order**, or **Instance Order**. |
| Note (Optional) | More information about the purchase order. This field is optional. |
| Reason | The reason for the order: **Patient Care** or **Ward Stock**. |
| Category | The category of the order: **Central** or **Non Stock**. |
| Priority | The priority of the order: **Routine**, **Urgent**, **ASAP**, or **STAT**. |

The **Edit Order** form has no **Vendor/Distributor** field. You cannot change the supplier after you create the purchase order.

The form has no **Order Tags** field. To change the tags, use **Add Tags** or **Tags** on the page of the purchase order.

The form has no field for the location that receives the goods. **Deliver To** stays the same.

### 4. Save the changes

Select **Save**.

![The Edit Order form with the Save button outlined](/assets/images/edit-purchase-order-4-f30dd92f24766ca4e4b8b6187f9bde0c.webp)

While Care saves the changes, the button shows **Saving...**.

Care saves the changes, shows **Order updated successfully**, and opens the page of the purchase order again.

![The page of the purchase order with the message Order updated successfully, the new priority, and the new note outlined](/assets/images/edit-purchase-order-5-20eca235d7320fb693d74684c993aa07.webp)

If **Name** is empty, Care shows **Name is required** and does not save the changes.

Note: To leave the form without saving, select **Cancel**, or press Esc. Care goes back to the page that you came from.

Note: Care saves the changes in every status, also when the purchase order is **Completed**, **Abandoned**, or **Entered in Error**.

Note: Saving does not change the status. To change the status, see [Approve or change the status of a purchase order](https://docs.ohc.network/flows/supply/purchase-order/update-purchase-order-status.md).

## Expected Outcome

* The purchase order shows the new name, intent, note, reason, category, and priority.
* The status, the supplier, and **Deliver To** of the purchase order do not change.

## Related

Concepts:

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

Flows:

* [Create a purchase order](https://docs.ohc.network/flows/supply/purchase-order/create-purchase-order.md)
* [Approve or change the status of a purchase order](https://docs.ohc.network/flows/supply/purchase-order/update-purchase-order-status.md)
* [View a purchase order](https://docs.ohc.network/flows/supply/purchase-order/view-purchase-order.md)
