# Edit an internal delivery

## Overview

[Video: Edit an internal delivery](https://www.youtube.com/watch?v=axBb5yy1n6Q)

This flow describes how to change the name and the note of an [internal delivery](https://docs.ohc.network/concepts/supply/supply-delivery.md) in Care.

You edit an internal delivery at the sending location, while its status is **Draft**. After the sending location approves the internal delivery, Care no longer offers the edit.

The edit form also shows the receiving location, but Care keeps the receiving location that you chose when you created the internal delivery. To change the tags, or the delivered items, you use the page of the internal delivery instead.

## Pre-requisites

* You belong to a department of the facility.
* A service of the facility lists the sending location under **Available Locations**.
* The sending location has an internal delivery with the status **Draft**. If it has none, see [Create an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/create-supply-delivery.md).
* You open the internal delivery at its sending location. Care does not offer the edit at the receiving location.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Supply Delivery on Facility | Lets you save the changes. You must hold this permission in one of the departments of the sending location. A role that you hold only at the receiving location does not count. By default, only the Facility Admin role holds this permission. |
| Can Read Healthcare Service | Lets you open **Services** and the service that lists the sending 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 sending location. You must hold this permission in one of the departments of the sending location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, and Pharmacist roles hold this permission. |
| Can Read Supply Delivery | Lets you see the outgoing deliveries of the sending location, and open the internal delivery. You must hold this permission in one of the departments of the sending 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 does not check your permissions before it shows **Edit Order** and **Save**. Care checks Can Create Supply Delivery on Facility when you select **Save**. Without it in a department of the sending location, Care does not save the changes.

## Steps

### 1. Open the internal delivery

1. Open your facility.
2. In the sidebar, select **Services**.
3. Select the service that lists the sending location.
4. Under **Available Locations**, select the button on the card of the sending location.
5. In the location sidebar, select **Inventory**. The Inventory group opens.
6. Under **Internal Transfers**, select **To Dispatch**.
7. Select the **Outgoing Deliveries** tab.
8. Select the **Created** tab.
9. In the row of the internal delivery, select **View Details**.

![The Created tab of Outgoing Deliveries with the row of a Draft internal delivery outlined](/assets/images/edit-supply-delivery-1-597a92900596fcdeaa0fe1c7f36b7e2f.webp)

Care opens the page of the internal delivery. Its heading is the name of the delivery.

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

### 2. Open the edit form

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

![The page of a Draft internal delivery with the Edit Order button outlined in the page header](/assets/images/edit-supply-delivery-2-37cb2adf39e3d5541ec02eef646bcf6d.webp)

Care opens the **Edit Delivery** page.

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

Note: **Edit Order** is disabled while the internal delivery has unsaved item rows. Save or discard the rows first.

Note: Care shows **Edit Order** only while the status is **Draft**. After you select **Mark as Approved**, the sending location no longer sees **Edit Order**.

### 3. Change the details

Change the fields that you want to change.

![The Edit Delivery page with Name, Deliver To, and a new note, with the Note field outlined](/assets/images/edit-supply-delivery-3-d56798dcd82d2a6c6afdbef8dab0b7c2.webp)

| Components | What it captures |
| - | - |
| Name | The name of the internal delivery. This field is required. |
| Deliver To | The receiving location. Care shows this field, but does not save a change to it. |
| Note (Optional) | More information about the internal delivery. This field is optional. |

Note: The form lets you select another location in **Deliver To**. This is also true for an internal delivery created from a stock request. When you select **Save**, Care shows **Order updated successfully**, but the receiving location stays the same.

To send the stock to another location, cancel the internal delivery while it is **Draft**. Then create a new internal delivery. Care gives the stock of the cancelled items back to the sending location. See [Send, receive and complete an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/receive-supply-delivery.md).

The **Edit Delivery** page has no **Tags** field. To change the tags, use the **Tags** row of the details card on the page of the internal delivery.

Note: Your Care instance can add more fields to this form.

### 4. Save the changes

Select **Save**.

![The Edit Delivery page with the Save button outlined](/assets/images/edit-supply-delivery-4-79a1b8d38284de3cb5faef9fcde51234.webp)

Care saves the name and the note, and shows **Order updated successfully**.

![The page of the internal delivery with the message Order updated successfully and the new note outlined in the details card](/assets/images/edit-supply-delivery-5-a361b52df920865357da970cda6a6c14.webp)

The status of the internal delivery does not change.

| If Care shows | What to do |
| - | - |
| **Name is required** | Enter a name in **Name**. |

Note: To leave the form without saving, select **Cancel**.

## Expected Outcome

* The internal delivery has the new name and note.
* The status of the internal delivery is still **Draft**.
* **Deliver To** still shows the receiving location that you chose when you created the internal delivery.
* The delivered items of the internal delivery and the stock of the locations do not change.

## Related

Concepts:

* [Internal Delivery](https://docs.ohc.network/concepts/supply/supply-delivery.md)

Flows:

* [Create an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/create-supply-delivery.md)
* [Add items to an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/add-items-supply-delivery.md)
* [Send, receive and complete an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/receive-supply-delivery.md)
* [View an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/view-supply-delivery.md)
