Deleted feilds my mistake

I have mistakenly deleted feilds which are necessary and how to revert back to actual one

Try this and migrate the site

I have done in doctype edit


To restore deleted fields in the doctype:

bench update --reset
bench setup requirements
bench build
bench migrate

If you delete the custom field then you can also restore that field, so please go to the Deleted Document then restore it.

1 Like

I have done in POS Invoice

Go to vs code and discard pos.json changes and then migrate site

Can you give me extra details what steps to follow

I have restored the all deleted fields by editing pos_invoce.json file to the actual one and it is resolved