Inventory systems and valuation - FIFO and weighted average methods