Purchase invoice expense account

Hi, is there any way to define a separate expense account by product in the items table in purchase invoice?

@andrew3229 can you explain the use case?

in the table of items in purchase invoice, when saving the expense account a default value is placed and not the selected one, the same happens to each item that I select a different accounting account

@andrew3229 the default account, or is comming from Company or from Item Default in the item itself.

Are you sure, the new account you are trying to use is of the type Expense or Temporary?