How to edit the doctypes?

hi all, i want to edit doctypes(want to associate branch table with sales invoice) which are not editable. how to should i do it?

Please check it.