Stock In Hand is not updating

Expense on Purchase invoice should be Cost of goods sold.

Default Stock account is Stock in Hand