Lots (LOT)
The lot submodule of inv owns the lot/batch tracking entities: an ItemLot is a manufacturer-side lot of a specific item, a LotUnit is the link between an inventory unit and the lot it belongs to (one-to-one), and a SupplierLot is the supplier-side lot reference (with optional expiration date) attached to a supplier+item combination. The submodule depends on cat.itm for the item, inv.unt for the inventory unit, com.par for the supplier, and acc.doc for the lot date.
Concepts
Item LotA lot of a specific item — the in-house lot identifier under which one or more inventory units are grouped. Has its own lot date.
Lot UnitA 1-to-1 link between an
InventoryUnitand theItemLotit belongs to. Used by inventory queries to drill from a unit to the lot.Supplier LotThe supplier’s lot identifier for a (supplier, item) combination. Carries an optional expiration date.
Entities
Item Lot (ItemLot)
A manufacturer-side lot of an item.
| Field | Description |
|---|---|
| Owning item (composite business key with |
| Lot code — a 6-digit integer (final). |
| The lot’s date (final). |
Lot Unit (LotUnit)
The 1-to-1 link from an inventory unit to its lot.
| Field | Description |
|---|---|
| The inventory unit (one-to-one, business key, final). |
| The lot the unit belongs to (final). |
Supplier Lot (SupplierLot)
A supplier-side lot reference.
| Field | Description |
|---|---|
| Owning supplier (composite business key with |
| The item. |
| The supplier’s lot code (final). |
| Optional expiration date (operational). |
Functionality
The submodule does not currently expose hand-written Spring services from this package — every entity is read and written through its standard generated reader/writer. Lot creation typically happens as a side effect of inbound flows (purchase receipt, production completion); lot lookup by a (supplier, item, lotCode) tuple uses the generated reader directly.
Public API
INV_LOT_QueryApi and INV_LOT_CommandApi
This submodule does not provide query- or command-API classes. Other modules read the lot entities through the standard generated readers and create lot rows as part of inbound and production flows.
ViewModel actions
The submodule defines view models for ItemLot, LotUnit, and SupplierLot but does not declare any custom UI actions.