Account Update for Submitted Transaction

Hyy Community,

Is it possible to update particular account tagged to submitted transation. Let’s say at initial state while doing purchase receipt wrong account has been taged and few transactions are done now it is found that wrong GL has been recorded due to wrong account tagged. Can we do script for it to bring back to save state tag correct account and again submit.
Will this method erase the wrong account tegged previous balance and correc with the correct account tagged by updating with script.

If anyone have command on this plz give an insight. Thank You

Hi @jaissunny009

If you are using version 15 or version 14 latest version then it will allow you to change a expense account which is mentioned in items table. When you change that account and update invoice then system will update all gl entries automatically in standard system. you have not to write any script for that.

Hy @Dhruvin-Bhaliya

But It is submitted transation. How can I edit and update expense account linked to particular item.

Invoice is also submitted.

So in erpnext I am not findign any way to update submitted transation without script. Not sure even if ERPNext allow to update submitted transaction other than cancelling and ameding.

@jaissunny009

Yes can update account on submitted trasaction also. There are one doctype named Repost Accounting Ledger Setting. Add Purchase Invoice check allowed Checkbox and then after update account in submitted document.