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

(cherry picked from commit 261f80c5ca)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
mergify[bot]
2021-10-20 17:45:43 +05:30
committed by GitHub
parent a739bf90c4
commit 9ce7ea692d

View File

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