New chart of account code with account type advances

hi @Zahid.Butt,

For using code you have to make account type box dynamic.
first fetch all options values and after that you can append your account type which ever you want.

you can refer following link for make dynamic select box.

thanks.