Clear child table before appending (#14648)

This commit is contained in:
Shreya Shah 2018-06-25 10:34:55 +05:30 committed by Nabin Hait
parent 1098755d26
commit d8031d1a53

View File

@ -24,6 +24,7 @@ cur_frm.cscript.refresh = function(doc,cdt,cdn){
}
cur_frm.cscript.kra_template = function(doc, dt, dn) {
doc.goals = [];
erpnext.utils.map_current_doc({
method: "erpnext.hr.doctype.appraisal.appraisal.fetch_appraisal_template",
source_name: cur_frm.doc.kra_template,