Cost of goods sold = Opening Stock + Purchases + Direct Expenses - Closing Stock
For Example If A buys 1000 units for Rs.100000 and spends Rs.5000 on freight inward. Closing stock is 100 units.
COGS = 100000 +5000 - 10000 (cost of 100 units of closing stock) = Rs.95000 Equation I
COGS = 100000 + 5000 - 10500 = Rs.94500 Equation II
In Equation 2 I have divided the freight inward between COGS and Closing Stock in the ratio of units. I wish to know which one of the above two approaches is correct, and why.