We are trying to restrict values in Supplier Link field on Purchase Order page to certain values based on a filter using below custom script but it doesn’t seems to work. Please help.
We have defined a custom field for supplier called company. Once above script is working, we want to replace "currency_pay_in with company field and change “USD” to “cur_frm.doc.company”.
Please note we also have following onload custom script in addition to above for purchase Order doctype.
For some reason saving after editing the original post gives error.
Hi There,
We are trying to restrict values in Supplier Link field on Purchase Order page to certain values based on a filter using below custom script but it doesn’t seems to work. Please help.
We have defined a custom field for supplier called company. Once above script is working, we want to replace "currency_pay_in with company field and change “USD” to “cur_frm.doc.company”.
Please note we also have following onload custom script in addition to above for purchase Order doctype.