Perpetual records, not periodic guesses
Maintain a perpetual inventory subledger with quantity and cost by SKU and batch. Every receipt, transfer, conversion, sale, waste event, and adjustment posts to it. A periodic count-and-plug approach loses the batch-level cost detail that a producer needs for cost of goods sold.