In stock entry item table there is a provision to add the cost in an expense account/difference account. You can also adda cost centre for the stock entry item.
Hope this helps.