Skip to content

Quality Inspector · Set up

Create a Test Based on a Vendor

Last updated October 28, 2026

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.

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.

View this article as Markdown

Still need help?

Ask other Business Central users in the Insight Works community, or send the details to the support team. Include the steps you took and any error message you saw.