cur_frm.add_fetch(“[LINK FIELD]”, “[SOURCE]”, “[TARGET]”);
eg:
cur_frm.add_fetch(“item_code”, “m_cost_center”, “cost_center”);
Check this Custom script - fetch data
cur_frm.add_fetch(“[LINK FIELD]”, “[SOURCE]”, “[TARGET]”);
eg:
cur_frm.add_fetch(“item_code”, “m_cost_center”, “cost_center”);
Check this Custom script - fetch data