---
title: "Restrict the Use of a Lot Transaction When a Test Fails in Quality Inspector"
app: "Quality Inspector"
section: "How-to guides"
last_updated: "2026-10-19"
url: "https://insight-works.com/kb/quality-inspector/restrict-the-use-of-a-lot-transaction-when-a-test-fails-in-quality-inspector/"
---

# Restrict the Use of a Lot Transaction When a Test Fails in Quality Inspector

[Video: Mastering Transaction Blocking in Business Central A Guide to Enhanced Quality Control](https://www.youtube.com/watch?v=9b44vHt-Tf8)

 Note: See also [_Block and Unblock Lot Transactions in Quality Inspector_](/kb/quality-inspector/block-and-unblock-lot-transactions-in-quality-inspector/). These restrictions apply to lot numbers, serial numbers, and package numbers, even where the setting names begin with “Lot.” Configure the grade’s transaction permissions in the same way for each tracking type, and ensure the Quality Inspection Test identifies the applicable lot, serial, or package number. For example, an INPROGRESS or FAIL grade can prevent picking or shipping an individual serialized unit or an entire tracked package, while a PASS grade allows those activities. Grade-based restrictions control the selected transactions; to set or clear the Blocked field on the corresponding tracking information record, use the workflows described in [Block and Unblock Lot Transactions in Quality Inspector](/kb/quality-inspector/block-and-unblock-lot-transactions-in-quality-inspector/).

Available settings are:

| Setting | Description |
| --- | --- |
| **Lot Allow Sales** | Specifies whether a test for a lot/serial/package with this grade allows sales transactions. |
| **Lot Allow Sales Return** | Specifies whether a test for a lot/serial/package with this grade allows sales return transactions. |
| **Lot Allow Sales Credit Memo** | Specifies whether a test for a lot/serial/package with this grade allows sales credit memo transactions. |
| **Lot Allow Sales Release** | Specifies whether a test for a lot/serial/package with this grade allows the sales order to be released. |
| **Allow Out. Sales Item Tracking** | Specifies whether a test for a lot/serial/package with this grade allows selecting the tracking number in the Item Tracking Lines page for a sales line. If not allowed, the system will ask the user to confirm that they want to select the tracking number. |
| **Lot Allow Purchase** | Specifies whether a test for a lot/serial/package with this grade allows Purchase transactions. |
| **Lot Allow Transfer** | Specifies whether a test for a lot/serial/package with this grade allows Transfer transactions. |
| **Allow Out. Tran. Item Tracking** | Specifies whether a test for a lot/serial/package with this grade allows selecting the tracking number in the Item Tracking Lines page for a transfer line. If not allowed, the system will ask the user to confirm that they want to select the tracking number. |
| **Lot Allow Consumption** | Specifies whether a test for a lot/serial/package with this grade allows Consumption transactions. |
| **Lot Allow Output** | Specifies whether a test for a lot/serial/package with this grade allows Output transactions. |
| **Lot Allow Assembly Consumption** | Specifies whether a test for a lot/serial/package with this grade allows Assembly Consumption transactions. |
| **Lot Allow Assembly Output** | Specifies whether a test for a lot/serial/package with this grade allows Assembly Output transactions. |
| **Lot Allow Invt. Movement** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Movement transactions. |
| **Lot Allow Invt. Pick** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Pick transactions. |
| **Lot Allow Invt. Put-Away** | Specifies whether a test for a lot/serial/package with this grade allows Inventory Put-Away transactions. |
| **Lot Allow Movement** | Specifies whether a test for a lot/serial/package with this grade allows Warehouse Movement transactions. |
| **Lot Allow Pick** | Specifies whether a test for a lot/serial/package with this grade allows Pick transactions. |
| **Lot Allow Put-Away** | Specifies whether a test for a lot/serial/package with this grade allows Put-Away transactions. |

## Example: Prevent Shipping Until a Pre-Shipment Checklist is Completed

A company performs a final packaging and documentation inspection before shipment.

The company configures the grades as follows:

| Grade | Lot Allow Sales | Lot Allow Pick |
| --- | --- | --- |
| INPROGRESS | No | No |
| FAIL | No | No |
| PASS | Yes | Yes |

In this scenario:

- Inventory can exist in the warehouse while inspections are being performed
- Inventory with an INPROGRESS grade cannot be picked or shipped
- Inventory with a FAIL grade remains blocked from shipment
- Inventory can only be shipped after the inspection is completed with a PASS grade

This helps prevent accidental shipment before required final checks are completed.

---

## Example: Prevent Warehouse Movement Until Testing Passes

A manufacturer receives raw materials that must pass laboratory testing before they can move into usable inventory locations.

The company configures:

| Grade | Lot Allow Movement | Lot Allow Transfer | Lot Allow Consumption |
| --- | --- | --- | --- |
| INPROGRESS | No | No | No |
| FAIL | No | No | No |
| PASS | Yes | Yes | Yes |

In this scenario:

- Received inventory remains quarantined while testing is in progress
- Warehouse movement and transfer transactions are blocked during testing
- Production cannot consume the inventory until testing passes
- Inventory can only move into normal operations after the inspection receives a PASS grade

This helps prevent untested materials from accidentally entering production.

---

## Example: Allow Production Rework but Prevent Customer Shipment

A manufacturer may allow failed inventory to continue through internal rework processes while still preventing shipment to customers.

The company configures:

| Grade | Lot Allow Output | Lot Allow Consumption | Lot Allow Sales |
| --- | --- | --- | --- |
| INPROGRESS | Yes | Yes | No |
| FAIL | Yes | Yes | No |
| PASS | Yes | Yes | Yes |

In this scenario:

- Inventory with an INPROGRESS grade can continue through internal production processes
- Inventory with a FAIL grade can still be consumed or reworked internally
- Inventory with a FAIL grade cannot be sold or shipped to customers
- Inventory can only be sold after a successful inspection resulting in a PASS grade

This allows controlled rework processing without risking accidental shipment of failed inventory.

---

## Example: Soft Warnings Versus Hard Restrictions

Some settings, such as:

- Allow Out. Sales Item Tracking
- Allow Out. Tran. Item Tracking

do not completely block the transaction.

Instead, they display a confirmation warning when users select the tracked inventory in Item Tracking Lines.

This is useful when:

- Supervisors may occasionally need to override the restriction
- The company wants visibility into questionable inventory usage
- The restriction should function as a warning rather than a hard stop

For example, a company may allow emergency shipment of inventory with an INPROGRESS or FAIL grade, but require the user to explicitly confirm the selection.

---

## Common Workflow Pattern

A common configuration using the default grades is:

| Grade | Typical Purpose |
| --- | --- |
| INPROGRESS | Testing or inspection is not yet complete |
| FAIL | Inventory failed inspection or is quarantined |
| PASS | Inventory passed inspection and is approved |

Each grade can allow or block different operational transactions depending on the company’s quality control requirements.
