Skip to content

Commit

Permalink
fix: avoid resetting employee on amending timesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Oct 20, 2021
1 parent 2ef4844 commit 38bd3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/projects/doctype/timesheet/timesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 38bd3aa

Please sign in to comment.