---
title: "Create a Test Based on a Vendor"
app: "Quality Inspector"
section: "Set up"
last_updated: "2026-10-28"
url: "https://insight-works.com/kb/quality-inspector/create-a-test-based-on-a-vendor/"
---

# Create a Test Based on a Vendor

Purchase Line can be used as the source table for Test Generation Rules with either warehouse receipt triggers or purchase-specific triggers. The source table determines which fields are available for filtering, such as Buy-from Vendor No., while the trigger determines when the inspection is created. This allows vendor-specific inspection rules to apply whether receiving is performed directly from a purchase order or through a warehouse receipt.

Purchase Line can be used as the source table for Test Generation Rules with either warehouse receipt triggers or purchase-specific triggers. The source table determines which fields are available for filtering, such as Buy-from Vendor No., while the trigger determines when the inspection is created. This allows vendor-specific inspection rules to apply whether receiving is performed directly from a purchase order or through a warehouse receipt.

This article shows you how to create and automate a vendor-specific quality inspection template. You can modify the example below to suit your needs. Complete the following to create a vendor-specific test:

1. Navigate to _Quality Inspection Templates_ in Business Central.
2. Select +**New**and modify the following fields:

   - Code: VENDORSPECIFIC
   - Description: Vendor specific example
3. Select **Add field(s) To This Template**.
4. Enable _Existing fields_ and select:

   - HEIGHT
   - LENGTH
   - WIDTH
   - WEIGHT
5. Select **Finish**.
6. Select **Test Generation Rules**.
7. Select the _Table_ field and select _Purchase Line_.
8. Select the _Condition Filter_ field / … icon / **+Filter…** / Buy-from Vendor No. / 60000 (or any vendor with a location that has warehouse receipts).
9. Select **OK**.
10. Navigate to the _Quality Inspector Setup_
11. Set _Create Test_ in the _Receiving_ section to _When Whse. Receipt is Created_.
12. Create a purchase order:

   1. Navigate to the _Purchase Orders_page and select **+New**.
   2. Input “6000” in the _Vendor No._field (or the vendor you used previously).
   3. Locate the _Lines_section and input 1000 (Bicycle) into the field.
   4. Input “1” in the _Quantity_
   5. Select **Release**.
13. Select **Create Whse. Receipt** / **OK**.

 Note: To view and edit all your test generation rules at the same time, navigate to the _Quality Inspection Test Generation Rules_ page in Business Central.

## Exclude a Vendor from Inspections When Receiving Through Warehouse Receipts / ByPass Inspections When Receiving From a Specific Vendor

To bypass quality inspections for a specific vendor when receiving through warehouse receipts, configure the receiving Test Generation Rule against the Purchase Line table and set its Condition Filter to exclude that vendor—for example, set Buy-from Vendor No. to `<>60000`. The warehouse receipt triggers test creation, while the related purchase line provides the vendor information used to evaluate the filter; selecting Purchase Line does not require receiving directly from the purchase order. Set Warehouse Receive Trigger to When Whse. Receipt is Created or When Whse. Receipt is Posted, depending on when the inspection should be generated, and ensure Activation Trigger allows automatic creation. Retain any required item or location filters, and review all other receiving rules to ensure none can still create an inspection for the excluded vendor.
