Each purchase line, sales-order line and production-order/sales-order line has its own automatically generated inventory lot number and corresponding reference type. These identify the lot as an item receipt (purchase, production) or an item issue (sales, production line).