Recording transactions in inventory cards
Purchases - record quantity and cost price in IN column, increasing balance
Sales, drawings, advertising, inventory loss - record quantity and cost price in OUT column using FIFO
Purchase returns - record quantity and identified cost price in OUT column
Sales returns - record quantity and reverse FIFO cost price in IN column
Inventory gain - record quantity and most recent cost price in IN column