Batch production and inventory management