Skip to content
P4 Software P4 Software / logisticaHQ-en

Add these docs to Claude

Ask Claude questions about these docs. Claude reads the published pages and links you back to them. Copy this address:

https://p4-software.opendocs.page/mcp

In claude.ai or Claude Desktop: open Settings, then Connectors, choose Add custom connector and paste the address.

In Claude Code, run:

claude mcp add --transport http docs https://p4-software.opendocs.page/mcp

Lot control

Lot control
← Back to Products

A lot-controlled product records a lot (batch) number on every receipt, and the stock keeps that lot number for its whole life in the Warehouse: in every bin, on every license plate, on every pick and on every shipment. Lot control is what lets you answer "which Customers received batch BB-210415?" and run a recall. Use it for food, beverages, chemicals, cosmetics, pharmaceuticals and anything a supplier or regulator can recall by batch.

This page explains how to configure a product with lot numbers, every field and setting involved, the rules LogisticaHQ enforces, and what changes on the floor.

How to configure a product with lot numbers

  1. In the left menu, open Setup > Products.
  2. Open the product (click its SKU), or click New to create it first (see Products).
  3. In the Attributes section, set Lot controlled to Yes. The Lot pattern field appears below it.
  4. Optional: type a Lot pattern (explained below), so a scan that is not a lot number of this product is refused at the Handheld. Leave it empty to accept any lot number.
  5. If the batch also has an expiry date, set Expiry controlled to Yes too (see Expiry control). Lot control combines with every other attribute, including Serial control.
  6. Save the product.

The Attributes section of a product with Lot controlled set to Yes and a Lot pattern

Decide before the first receipt

  • Stock on hand. While the product has any stock, changing lot control (or serial, expiry, manufacture date, packsize, catch weight or unit of measure control) is refused: "Cannot change lot, serial, expiry, manufacture date, packsize, catch weight or unit of measure control while [SKU] has inventory: [quantity] in [n] location(s). Move or consume the stock first, then change the setting." No setting lifts this lock: stock received without a lot could never be traced by lot afterwards.
  • Open orders. While the product is on an open purchase order, pick ticket, production order or customer return, the change is refused with "Attribute control cannot be changed. Product has open transactions", unless an administrator turns on Allow Attribute Change (Setup > System > Configuration, Business > Products; default No).

Fields

FieldValuesDefaultWhat it does
Lot controlledYes / NoNoEvery receipt records a lot number, so stock stays traceable back to its batch.
Lot patternTextEmptyShown only when Lot controlled is Yes. An optional format every lot number of this product must match. Empty accepts any lot number.

Lot pattern: how to write one

The pattern is compared with the whole lot number. _ stands for exactly one character, % for any number of characters (including none), and a comma separates alternatives (the lot is accepted when it matches any of them). Every other character must appear exactly as typed, and upper and lower case must match.

PatternAcceptsRefuses
BB-21____ (four underscores)BB-210415, BB-211231BB-21041, BB-2104150, bb-210415
L%L1, L-2026-001A serial number or date scanned into the lot prompt by mistake
A______,B______A123456, B654321C123456

A lot that does not match is refused with "Lot [value] does not match the lot pattern [pattern] of product [SKU]". The server checks it whenever a lot is recorded or moved in stock: Receiving, Adjustments, moves and counts.

What changes on the floor

Receiving

  • After the product is scanned, the Handheld asks Enter/Scan lot. Once per line received; the quantity is asked after the lot (and after the expiry date, if the product is also expiry controlled).
  • An empty answer is refused: "Lot is required". On the server, a receipt without a lot is refused with "Lot number is missing for product [SKU]".
  • If the purchase order line names a lot, the lot received must match it: "Lot [received] mistmatch, [expected] expected".
  • With a GS1 barcode, the lot is filled in from the product scan (settings Default Barcode Standard and Udi Autofill, see Serial control).
  • Spaces before and after the lot are removed when Trim White Spaces From Lots is on (Business > Products; default Yes).

One lot or several per bin and license plate

  • A bin holds one lot of a product unless the bin allows more: on the Bin screen, section Product handling, Allow multiple Lots (Inherit, Yes, No); when the bin inherits, the zone decides (Zone screen, Allow multiple Lots per bin). When neither allows it, putting a second lot in the bin is refused: "Bin [bin] cannot contain multiple lots".
  • A license plate holds one lot unless Allow Multiple Lots is on (Setup > System > Configuration, Business > License Plates; default No): "LPN [lpn] cannot contain multiple lots".
  • Cycle counts are exempt from both rules, so a count always records what is really there.

Allocation (which lot an order gets)

  • A pick ticket line can name a lot (or a lot pattern); then only that lot is allocated to it.
  • Otherwise the order of lots follows Lot Allocation Style (Business > Fulfillment > Allocation; default Inherit):
    • Inherit: no lot order of its own; the general Allocation style decides.
    • Alphabetical: lowest lot number first.
    • MaxQtyFirst: the lot with the most available quantity first.
    • MinQtyFirst: the lot with the least available quantity first (clears small remainders).
  • For a product that is also expiry controlled, Expiry Allocation Precedence (same group) is applied after the lot style and wins when it is OldestFirst or NewestFirst.
  • Allow Partial Lots (same group; default Yes): when Yes, one order line can be filled from several lots. When No, a line is allocated only from a single lot in a single location that can cover the whole quantity.
  • Production orders have their own Lot Allocation Style and Allow Partial Lots settings in Business > Production > Allocation.

Picking

The Handheld shows the lot that was allocated and asks the picker to scan the lot. A different lot is refused: "Invalid Lot [scanned], [allocated] expected". The picked lot stays on the shipment, so a recall can find every customer who received it.

Moves, Adjustments and Cycle Count

Every move, adjustment and count asks for the lot. A move takes only from that lot and refuses a quantity larger than what is unallocated in it: "Not enough Unallocated quantity of [lot] in [bin]". A Cycle Count asks for each lot found in the bin, and each lot is counted separately.

Where to see lots

  • Analytics > Inventory > Inventory detail: stock by bin, license plate, lot, serial and expiry.
  • Analytics > Inventory > Lot trace & recall: enter a lot number to see what was received (purchase order, vendor), what is on hand (bin, license plate, Warehouse, expiry) and what was shipped (pick ticket, customer, date), with the totals of each.
  • The Audit records every movement with its lot number (see Audit).

Related settings

All in Setup > System > Configuration; only administrators can change them.

GroupSettingDefaultWhat it does
Business > ProductsAllow Attribute ChangeNoLets tracking choices change while the product is on open orders (never while it has stock).
Business > ProductsTrim White Spaces From LotsYesRemoves spaces before and after scanned lot numbers.
Business > Fulfillment > AllocationLot Allocation StyleInheritWhich lot is allocated first to orders.
Business > Fulfillment > AllocationAllow Partial LotsYesWhether one order line may be filled from several lots.
Business > Production > AllocationLot Allocation Style / Allow Partial LotsInherit / YesThe same choices for Production orders.
Business > License PlatesAllow Multiple LotsNoWhether one license plate may hold several lots.

Troubleshooting

MessageCauseWhat to do
Lot [x] does not match the lot pattern [p] of product [SKU]The scan is not a lot of the expected format.Scan the lot barcode; correct the pattern on the product if it is wrong.
Lot [x] mistmatch, [y] expectedThe purchase order line requires lot y.Receive the right lot, or correct the lot on the purchase order line.
Bin [bin] cannot contain multiple lotsThe bin already holds another lot of the product.Put the stock in another bin, or allow multiple lots on the bin or its zone.
LPN [lpn] cannot contain multiple lotsThe license plate already holds another lot.Use another license plate, or turn on Allow Multiple Lots.
Invalid Lot [x], [y] expectedThe picker scanned a different lot than the one allocated.Pick the allocated lot.
Cannot change lot, serial, expiry ... while [SKU] has inventoryThe product has stock.Move or consume the stock first.

Related pages

Was this page helpful?