Add select option

On payment entry, in references child table I need add one more doctype there if frm.doc.party_type == “Supplier”
How do that without change the hard code?

Yes this should not be hard-coded, maybe this should be managed via hooks

Can you give me an example?

Any hint?

refer to this