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 Lot

A 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 Unit

A 1-to-1 link between an InventoryUnit and the ItemLot it belongs to. Used by inventory queries to drill from a unit to the lot.

Supplier Lot

The supplier’s lot identifier for a (supplier, item) combination. Carries an optional expiration date.

Entities

LOT entities

Item Lot (ItemLot)

A manufacturer-side lot of an item.

FieldDescription

item

Owning item (composite business key with code, final).

code

Lot code — a 6-digit integer (final).

lotDate

The lot’s date (final).

Lot Unit (LotUnit)

The 1-to-1 link from an inventory unit to its lot.

FieldDescription

inventoryUnit

The inventory unit (one-to-one, business key, final).

itemLot

The lot the unit belongs to (final).

Supplier Lot (SupplierLot)

A supplier-side lot reference.

FieldDescription

supplier

Owning supplier (composite business key with item and lotCode, final).

item

The item.

lotCode

The supplier’s lot code (final).

expirationDate

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.