I have 2 tables:
- Appraisal Work Plan
- Work Plan Review
I want to get value from the 1st table(Appraisal Work Plan) to the 2nd table (Work Plan Review) when I select the 1st table name in link column.
I used the below code in the 2nd table .js file. but sometimes only working.
cur_frm.cscript.work_plan = function(doc, cdt, cdn){
doc.plan_template = [];
erpnext.utils.map_current_doc({
method: “erpnext.hr.doctype.work_plan_review.work_plan_review.fetch_appraisal_work_plan”,
source_name: cur_frm.doc.work_plan,
frm: cur_frm
});
}
Why is it’s not working properly, please anyone can help me.