Custom expense and revenue accounts for stock item

Please forgive me if this has already been answered in another topic. I need to assign my choice accounts so that when I sell a stock revenue and expenses (cost of sales) get posted into my assigned accounts. There is no option to do this. Can someone help me?

Thank you

Hi,

This post may be relevant: https://discuss.frappe.io/t/item-default-income-and-expense-account-fields-missing-on-item-form/45881

Did you try the provided Solution?

I saw it somewhere else.

This setting has to be available to the inventory item creation page. You shouldn’t do this when creating invoices. Move it to the stock item creation page as one of the default settings for the item. It is not right for it to be here. Move all settings such as the default warehouse, etc to one place on the creation page.

This screenshot is of the Item Master, check the breadcrumbs

Success! Thank you

Just an additional nugget…if you have many different items, these defaults can also be set at the Item Group. That helps if you have categories of items that need to be coded the same way. They can always be overridden at the item level, as noted above.