---
title: "Create a Purchase Return Order from a Test in Quality Inspector"
app: "Quality Inspector"
section: "How-to guides"
last_updated: "2025-06-03"
url: "https://insight-works.com/kb/quality-inspector/create-a-purchase-return-order-from-a-test-in-quality-inspector/"
---

# Create a Purchase Return Order from a Test in Quality Inspector

After testing, you may want to create a Purchase Return Order based on testing results. The Create Purchase Return Order action allows you to create a purchase return order from a Quality Inspection Test.

Complete the following to create a Purchase Return Order from a Test:

1. Navigate to _Quality Inspection Tests_ in Business Central.
2. Select the required test and select **Actions** / **Create Purchase Return Order** (opens the _Quality Inspector: Create Purchase Return Order_ report).
3. Define the return quantity:

   1. Entire lot/serial/package: use when wanting to return all items within the item tracking group
   2. Specific Quantity: use along with the Quantity to Handle value to define a specific quantity to return
   3. Sample Quantity: use when using sampling on the test.
   4. Passed Quantity (if sampling, all sampling measures must pass)
   5. Failed Quantity (if sampling, one or more sampling measurements must fail)
4. Select an optional return reason code.
5. Select optional source filters (used when the defined quantity spans across locations or bins and needs to be limited).
6. Provide an optional Vendor Credit Memo No.
7. Run the report to create a Purchase Return Order with a return line with the quantity specified.

### Automate the creation of a Purchase Return Order from a Quality Inspection Test

To automate creation of a Purchase Return Order from a Quality Inspection Test, a workflow can also be used.

1. Navigate to the _Workflows_ list in Business Central.
2. Select **New Workflow from Template** / **New.**
3. Input a code, description, and category.

 Note: If the workflow does not fit into an existing organizational category, create a new category from the category dropdown.

1. Add a “When Event” trigger to the _Workflow Steps List_ (e.g., A Quality Inspection Test is finished).
2. Select an event condition to further filter the triggering events (e.g., “Grade Code: FAIL”) (Optional).
3. Select the _Create Purchase Return_ response.
4. Define the return quantity:

   - Entire lot/serial/package: use when wanting to return all items within the item tracking group
   - Specific Quantity: use along with the Quantity to Handle value to define a specific quantity to return
   - Sample Quantity: use when using sampling on the test.
   - Passed Quantity (if sampling, all sampling measures must pass)
   - Failed Quantity (if sampling, one or more sampling measurements must fail)
5. Enable the workflow (enabled option in the workflow header).
6. Trigger the “when event” to test the workflow and ensure the Purchase Return Order is created.
