fix(Asset Repair): Set completion_date on changing repair_status to 'Completed'

This commit is contained in:
GangaManoj 2021-06-20 17:44:35 +05:30
parent 68e0c96c03
commit 42fd7ffbc0

View File

@ -28,6 +28,10 @@ frappe.ui.form.on('Asset Repair', {
}
});
}
if (frm.doc.repair_status == "Completed") {
frm.set_value('completion_date', frappe.datetime.now_datetime());
}
}
});