---
title: "Advanced Configuration – Create One Quality Inspection Test for Each Posted Warehouse Receipt of a Tracked Item Instead of Per Item Tracking"
app: "Quality Inspector"
section: "Set up"
last_updated: "2026-09-24"
url: "https://insight-works.com/kb/quality-inspector/advanced-configuration-create-one-quality-inspection-test-for-each-posted-warehouse-receipt-of-a-tracked-item-instead-of-per-item-tracking/"
---

# Advanced Configuration – Create One Quality Inspection Test for Each Posted Warehouse Receipt of a Tracked Item Instead of Per Item Tracking

This article discusses an advanced configuration  topic, using a scenario of creating one Quality Inspection Test Document to represent a group of tracked items. This configuration should not be used for standard receiving of lot tracked, serial tracked, nor package tracked items. If you are looking for documentation on standard receiving procedures, this is not the article you need, instead refer to these articles to get started:

- [Create Quality Inspections for Receipts](/kb/quality-inspector/create-quality-inspections-for-receipts/)
- [Receiving Automation](/kb/quality-inspector/automate-test-creation-when-posting-a-purchase-receipt-with-warehouse-handling/)
- [Automate Test Creation when Posting a Purchase Receipt with Warehouse Handling](/kb/quality-inspector/receiving-automation/)

By default, when Quality Inspector creates tests for lot-tracked, serial-tracked, or package-tracked items, the item tracking information is used as part of the inspection source. This normally results in separate Quality Inspection Tests for the individual lot numbers, serial numbers, or package numbers being received.

This advanced configuration changes that behavior so that the inspection represents the **warehouse receipt posting as a whole**, rather than an individual lot, serial number, or package number.

For example, with the standard receiving configuration, posting five different serial numbers can result in five separate Quality Inspection Tests.

With the configuration described in this article, those same five serial numbers can instead create one Quality Inspection Test with a quantity of five. If another four serial numbers are later posted from the same warehouse receipt, that later posting can create a second test with a quantity of four.

**When to Use This Configuration**

Consider this configuration when:

- Items use lot, serial, or package tracking.
- Items are received through warehouse receipts.
- A single inspection should represent each receipt posting rather than each tracking number.
- Warehouse receipts may be posted in partial quantities.
- Receiving should continue without waiting for an earlier inspection to be completed.
- Lot-tracked, serial-tracked, or package-tracked items do not need specific blocking and disposition that require the lot, serial, or package are not required.

Examples include:

- Receiving serialized equipment where the inspection verifies the condition of the pallet, crate, or packaging rather than inspecting each serial number individually.
- Unloading serialized items in stages and performing one damage inspection for each posted quantity.
- Receiving bulk material containing several lots where one moisture or packaging inspection is required for each unloading or receipt event.

After applying this configuration, each warehouse receipt posting can create a separate test. The resulting test does not represent an individual lot number, serial number, or package number.

**When Not to Use This Configuration**

Do not use this configuration when the inspection must represent a specific lot, serial number, or package.

Do not use it to combine tracking numbers for sampling when the sampling process itself needs to operate by lot or serial number. Quality Inspector provides features to solve sampling such as:

- AQL sampling
- Skip-Lot sampling
- Fixed % and Fixed Quantity sampling

Do not use it when you need to have dispositions for specific lots, serials, or packages.

Do not use it when you need to block lots, serials, or packages either with grade level blocking or with lot no information, serial no information, or package no information blocking.

If the items are not lot-tracked nor serial-tracked and the business needs to identify a truck, container, pallet, or other group of items, consider using Business Central package tracking to identify that group instead.

**How the Default Receiving Configuration Works**

The standard receiving source configurations assume that item tracking identifies the inspection.

When lot, serial, or package information is copied to the Quality Inspection Test, **Standard Source Fields** treats each tracking value as a different source.

For example, if five different serial numbers are received, the standard configuration can create five Quality Inspection Tests because each serial number is treated as a different inspection source.

Setting **Create Test Behavior** to **Always Create a New Test** does not produce the desired result for this scenario because Quality Inspector does not attempt to reuse an existing test.

Setting **Create Test Behavior** to **Use Existing Open Test if Available** by itself is also not sufficient. When the same warehouse receipt is partially posted again, the purchase order, purchase line, and warehouse receipt remain the same. If the earlier test is still open, Quality Inspector can find and reuse that test.

An existing test that is reused does not have its source quantity updated.

**What This Configuration Changes**

This configuration changes the standard behavior in three ways:

- **Create Test Behavior** allows tracking lines within the same posting to reuse the same open test.
- Item-tracking mappings are removed so the lot number, serial number, or package number does not cause each tracking line to become a different test.
- The posted warehouse receipt number is stored in **Task No.**, allowing each separate warehouse receipt posting to be treated as a different source.

The intended result is one Quality Inspection Test for each warehouse receipt posting, regardless of how many tracking numbers are included in that posting.

For more information about these settings, see:

[Select Create Test Behavior and Find Existing Behavior in Quality Inspector](/kb/quality-inspector/select-create-test-behavior-and-find-existing-behavior-in-quality-inspector/)

[Understanding Test Generation Rules and Source Configuration in Quality Inspector](/kb/quality-inspector/understanding-test-generation-rules-and-source-configuration-in-quality-inspector/)

**Note:** **When Whse. Receipt is Posted** requires Business Central 19 or newer.

**Prerequisites**

Before configuring this scenario:

- Complete the normal Quality Inspector setup.
- Create the receiving Quality Inspection Template.
- Configure the location to use warehouse receipts.
- Configure the item for the required lot, serial, or package tracking.
- Set **Find Existing Behavior** on **Quality Inspector Setup** to **Standard Source Fields**.

Leave **Find Existing Behavior** as **Standard Source Fields**. This option includes **Task No.** when determining whether an existing test matches the current source.

1. **Set Create Test Behavior**

1. Open **Quality Inspector Setup**.
2. Set **Create Test Behavior** to **Use Existing Open Test if Available**.
3. Confirm **Find Existing Behavior** is **Standard Source Fields**.

After the remaining configuration in this article is completed, tracking lines from the same posting can share the same source information and reuse the first test created.

A later posting will have a different posted warehouse receipt number and therefore will not match the earlier test.

1. **Remove Item Tracking from the Receiving Source Configurations**

Open **Advanced Quality Inspector Source Configuration List**.

For more information, see:

[Advanced Quality Inspector Source Configuration List](/kb/quality-inspector/iwxqisourceconfiglist-page-al/)

Edit the following source configurations:

| **Code** | **Description** | **From Table** |
| --- | --- | --- |
| TRACKINGSPEC | Tracking Specification | Tracking Specification |
| WHSEJNLTOTEST | Warehouse Journal | Warehouse Journal Line |
| WJNLTOPURCH | Whse. Journal to Purchase Line | Warehouse Journal Line |

On each configuration, delete the following lines from **What Information Should be Added to The Test**, or from **Lines** on the advanced card:

- **Lot No.**
- **Serial No.**
- **Package No.**

Leave the other mappings, including item, variant, location, document, and quantity mappings.

**Whse. Journal to Purchase Line** is included because warehouse receipt posting creates the inspection from warehouse journal lines that are connected to the purchase line. A lot, serial, or package mapping from any of these configurations can place tracking information onto the test and cause the posting to be separated into multiple tests.

**Important:** These are shared source configurations. Removing item tracking from them affects other tests that use the same configurations. If another process requires one Quality Inspection Test per lot, serial number, or package, use separate source configurations for that process.

1. **Copy the Posted Quantity from the Warehouse Receipt Line**

A warehouse journal or tracking line can contain the quantity for only one lot or serial number. For a serial-tracked item, that quantity is normally one.

For this configuration, the inspection should instead use **Qty. to Receive (Base)** from the warehouse receipt line so the test quantity represents the complete quantity included in that posting.

1. Open **WRTOPURCH – Whse. Receipt to Purchase Line** from **Advanced Quality Inspector Source Configuration List**.
2. Add a line under **What Information Should be Added to The Test** or **Lines**.
3. Set **From Field Name** to **Qty. to Receive (Base)**.
4. Set **To Type** to **Test**.
5. Set **To Field Name** to **Quantity (Base)**.
6. Personalize the lines and add the **Priority Field** column if it is not visible.
7. Set **Priority Field** to **Priority**.

**Priority** allows this mapping to replace a quantity previously written by the warehouse journal or tracking configuration.

Do not remove the existing lines under **How Do These Two Tables Connect**.

1. **Store the Posted Warehouse Receipt Number on the Test**

Each partial posting creates a different posted warehouse receipt. The original warehouse receipt number remains the same.

Store the posted warehouse receipt **No.** in **Task No.** so that each posting can be considered a different source.

1. Open **Advanced Quality Inspector Source Configuration List**.
2. Create a source configuration.
3. Enter a code such as **PSTDWRTOTEST**.
4. Enter a description such as **Posted Whse. Receipt to Test**.
5. Set **State** to **Enabled**.
6. Set **From Table Name** to **Posted Whse. Receipt Header**.
7. Set **To Type** to **Test**.
8. Add a line with:

   - **From Field Name:** No.
   - **To Type:** Test
   - **To Field Name:** Task No.
9. Set **Display in Control Information as** to **Posted Whse. Receipt No.**

Because **Standard Source Fields** includes **Task No.**, the posted warehouse receipt number becomes part of the criteria used to find an existing test.

Do not use **Whse. Receipt No.** from the posted warehouse receipt header for this purpose. That value identifies the original warehouse receipt and remains the same across partial postings. Use **No.**, which identifies the individual posted warehouse receipt.

1. **Create the Test Generation Rule**

Create the Test Generation Rule on the receiving Quality Inspection Template.

1. Open **Quality Inspection Templates**.
2. Open the receiving template.
3. Choose **Test Generation Rules**.
4. Create a rule with **Table** set to **Warehouse Receipt Line**.
5. Set **Warehouse Receive Trigger** to **When Whse. Receipt is Posted**.
6. Set **Activation Trigger** to either:

   - **Manual or Automatic**, or
   - **Automatic Only**
7. Add any required item, location, or other filters.

For more information, see:

[Use Test Generation Rule Trigger to Automate Creation of Quality Inspection Tests](/kb/quality-inspector/use-test-generation-rule-trigger-to-automate-creation-of-quality-inspection-tests/)

For the same items, avoid also using a purchase-line rule with **Purchase Trigger** set to **When Purchase Order is Received**. Posting the warehouse receipt also receives the purchase order, which can cause additional tests to be created from the purchase line.

**Test the Configuration**

For example, test with a serial-tracked item:

1. Create a purchase order for a serial-tracked item at a location that uses warehouse receipts.
2. Release the purchase order and create a warehouse receipt.
3. Assign two serial numbers and set **Qty. to Receive** to 2.
4. Post the warehouse receipt.

With the configuration in this article, one Quality Inspection Test should be created:

- **Quantity (Base)** is 2.
- **Serial No.**, **Lot No.**, and **Package No.** are blank.
- **Control Information** displays the posted warehouse receipt number.

Leave the test open.

1. On the same warehouse receipt, assign four additional serial numbers.
2. Set **Qty. to Receive** to 4.
3. Post the warehouse receipt again.

With this configuration, a second Quality Inspection Test should be created:

- **Quantity (Base)** is 4.
- **Control Information** contains the new posted warehouse receipt number.
- The first test remains unchanged.

The same pattern applies to lot-tracked items. Several lots included in one posting can be represented by one test for the quantity posted, while a later partial posting can create another test.

**Considerations**

- This configuration intentionally removes the individual lot number, serial number, or package number from the Quality Inspection Test. Use the posted warehouse receipt number stored in **Task No.** to trace back to the posted receipt when those details are required.
- When additional tracking lines from the same posting reuse the open test, the existing test quantity is not updated. The priority warehouse receipt mapping ensures the test is initially created with the quantity for the complete posting.
- Changes to **TRACKINGSPEC**, **WHSEJNLTOTEST**, and **WJNLTOPURCH** affect other processes that use those source configurations.
- Sampling that uses **Quantity (Base)**, including percentage or AQL sample sizing, uses the quantity from that individual posting. Each later partial posting creates a separate test with its own quantity.

**References**

- [Select Create Test Behavior and Find Existing Behavior in Quality Inspector](/kb/quality-inspector/select-create-test-behavior-and-find-existing-behavior-in-quality-inspector/)
- [Understanding Test Generation Rules and Source Configuration in Quality Inspector](/kb/quality-inspector/understanding-test-generation-rules-and-source-configuration-in-quality-inspector/)
- [Quality Inspector Setup](/kb/quality-inspector/iwxqisetup-page-al/)
- [Advanced Quality Inspector Source Configuration List](/kb/quality-inspector/iwxqisourceconfiglist-page-al/)
- [Quality Inspector Source Configuration Card](/kb/quality-inspector/iwxqisourceconfigcard-page-al/)
- [Create Quality Inspections for Receipts](/kb/quality-inspector/create-quality-inspections-for-receipts/)
- [Use Test Generation Rule Trigger to Automate Creation of Quality Inspection Tests](/kb/quality-inspector/use-test-generation-rule-trigger-to-automate-creation-of-quality-inspection-tests/)
