Fetch Value From Master - Custom Script

Please help me find the custom script for the tax card number field in the screen payment entry when viewing suppliers

The code is tested and the effect is not achieved

// fetch tax_id on selection of Supplier
// cur_frm.add_fetch(link_field, source_fieldname, target_fieldname);
cur_frm.add_fetch(‘supplier’,‘tax_id’,‘tax_id’);

@maged_kamer_eldawla I couldn’t find tax_id in Payment Entry Doctype?!
Is it a custom field?

Yes it is a custom field

No need for a Custom script, You can do it with Customize Form :

Thank you very much, you worked with me :slight_smile: