How do I fetch items default expense account to the field?

I have created custom “item” and “Expense Account” field in “Purchase Invoice”, I want to fetch default expense account provided in the items master, how do I do that?

Hi @akshay,

It’s already there.
Please check in Purchase Invoice Item in Accounting Section.

When you create a Invoice then automatically set it.

Thank You!

I am not manually filling the items table I am generating it from JavaScript, So to fill up those fields in the items table I require those field beforehand!