fix: avoid resetting employee on amending timesheets (#28025)

This commit is contained in:
Rucha Mahabal
2021-10-20 16:58:32 +05:30
committed by GitHub
parent 2ef4844a3c
commit 261f80c5ca

View File

@@ -37,7 +37,7 @@ frappe.ui.form.on("Timesheet", {
calculate_time_and_amount(frm);
}
if (frm.is_new()) {
if (frm.is_new() && !frm.doc.employee) {
set_employee_and_company(frm);
}
},