# Create a purchase delivery

## Overview

[Video: Create a purchase delivery](https://www.youtube.com/watch?v=fFmAlei_MI4)

This flow describes how to create a [purchase delivery](https://docs.ohc.network/concepts/supply/purchase-delivery.md) in Care. A purchase delivery records the goods that a supplier delivers to a store location of the facility.

A new purchase delivery has the status **Draft** and no items. After you create it, you add the delivered items to it. While it is **Draft**, you can still change its name and note. The stock of the store location changes only when you receive the items later.

## 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 supplier is in Care as an organization of the type product supplier. The **Vendor/Distributor** list shows only these organizations.
* If you start from a purchase order, the status of the purchase order is **Pending**.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create External Supply Delivery on Facility | Lets you create the purchase delivery and change its details. You must hold this permission in one of the departments of the store location. By default, the Facility Admin role holds 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 Delivery | Lets you see the purchase deliveries of the store location, and open the new purchase delivery after you create it. 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. |
| Can Read Tag Config | Lets you see the tags in **Tags**. You need it only if you add tags. 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 Apply Tag Config to Resources | Lets you add tags to the purchase delivery when you create it. You need it only if you add tags. Where you must hold this permission depends on the tag. By default, the Facility Admin, Staff, Doctor, Nurse, and Pharmacist roles hold this permission. |
| Can Read Supply Request | Needed only if you start from a purchase order. Lets you see the purchase orders of 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, 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 parents of those departments, and Administration.

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

Note: Care shows **Create Delivery** and **Create** to every user who can open **Purchase Deliveries**. Care checks Can Create External Supply Delivery on Facility when you select **Create**. Without it in a department of the store location, Care does not create the purchase delivery.

## Steps

### 1. Open Purchase Deliveries

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 store location.
5. In the location sidebar, select **Inventory**.
6. Under **External Supply**, select **Purchase Deliveries**.

![The location sidebar with Purchase Deliveries outlined under External Supply](/assets/images/create-purchase-delivery-1-60cec2d91abd76f11a0a69cd2133743d.webp)

Care shows the **Inward Purchase Entries** page, with the purchase deliveries of the location.

Note: The location card depends on the service type. For a Store service, it shows **View Inventory**. For a pharmacy service, it shows **View Prescriptions** and opens the **Prescription Queue**. In both cases, the location sidebar shows **Inventory**.

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

### 2. Start the delivery

Select **Create Delivery**.

![The Inward Purchase Entries page with the Create Delivery button outlined](/assets/images/create-purchase-delivery-2-46cedff37725620e6701d92940abfc5d.webp)

Care opens the **Create Delivery** page. The status badge beside the title shows **Draft**.

Note: **Create Delivery** shows the keyboard shortcut C. To select **Create Delivery** with the keyboard, press C.

Note: You can also start from a purchase order. Under **External Supply**, select **Purchase Orders**. Open the purchase order. Then select **Create Delivery Order**. Care shows this button only while the status of the purchase order is **Pending**.

If you start from a purchase order, Care fills **Name**, **Note**, and **Vendor/Distributor** from the purchase order. The destination of the purchase delivery is the destination of the purchase order.

Care does not lock **Vendor/Distributor** when it fills the field from a purchase order. You can select a different supplier.

### 3. Enter the delivery details

Complete the fields of the form.

![The Create Delivery form with Name, Vendor/Distributor, and Note filled in](/assets/images/create-purchase-delivery-3-2da87ef205999afccec089362d33dde0.webp)

| Components | What it captures |
| - | - |
| Name | The name of the purchase delivery. Care puts the cursor in this field when the page opens. This field is required. |
| Vendor/Distributor | The supplier of the goods. Select the supplier in the list. To find a supplier, type its name in **Search vendor**. This field is required. |
| Note (Optional) | More information about the purchase delivery. This field is optional. |
| Tags | The tags of the purchase delivery. Select **Add Tags**. Then select the tags. This field is optional. |

The form has no destination field. Care sets the store location that you opened as the destination.

Make sure that you select the correct supplier. After you create the purchase delivery, Care does not save a change to the supplier.

Note: **Tags** shows only when you create the purchase delivery. You can change the tags later on the page of the purchase delivery.

Note: Your Care instance can add more fields to this form, after **Tags**.

### 4. Create the delivery

Select **Create**.

![The Create Delivery form with the Create button outlined](/assets/images/create-purchase-delivery-4-dbde616f0bab423ee9263e1319ff3ef2.webp)

![The new purchase delivery with the status Draft](/assets/images/create-purchase-delivery-5-1288bdcb8f90a04023d517660f2efa96.webp)

Care creates the purchase delivery and shows **Order created successfully**. Then Care opens the page of the new purchase delivery, with the status **Draft**.

Care checks the required fields before it creates the purchase delivery. If a required field is empty, Care shows a message and does not create the purchase delivery.

| If Care shows | What to do |
| - | - |
| **Name is required** | Enter a name in **Name**. |
| **Supplier is required** | Select a supplier in **Vendor/Distributor**. |

Note: To leave the form without creating a purchase delivery, select **Cancel** or the close button at the top right. Care goes back to the page that you came from.

### 5. Change the details of a draft delivery

This step is optional. You can change the details while the status of the purchase delivery is **Draft**.

1. On the page of the purchase delivery, select **Edit Order** in the page header.
2. Care opens the **Edit Delivery** page with the current details. Change the fields.
3. Select **Save**.

Care shows **Order updated successfully** and opens the page of the purchase delivery again.

| Components | What it captures |
| - | - |
| Name | The name of the purchase delivery. This field is required. |
| Vendor/Distributor | The supplier. Care shows the current supplier, but does not save a change to this field. |
| Note (Optional) | More information about the purchase delivery. This field is optional. |

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

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

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

Note: After you approve the purchase delivery, Care no longer shows **Edit Order**.

## Expected Outcome

* Care creates the purchase delivery with the status **Draft**.
* On the page of the purchase delivery, **Deliver To** shows the store location. If you started from a purchase order, it shows the destination of the purchase order.
* The purchase delivery has no items yet. The page of the purchase delivery shows **Add delivery items**, where you add the delivered items. See [Add delivered items to a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/add-items-purchase-delivery.md).
* If you started from a purchase order with requested items, the page shows **Load from order**. It replaces **Select order**.
* On the **Inward Purchase Entries** page, the purchase delivery shows in the **Created** tab.
* The stock of the store location does not change.

## Related

Concepts:

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

Flows:

* [Add delivered items to a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/add-items-purchase-delivery.md)
* [Receive and complete a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/receive-purchase-delivery.md)
* [View a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/view-purchase-delivery.md)
