Skip to content

Commit

Permalink
Merge branch 'develop' into fix-invoice-statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
pruthvi145 authored Oct 20, 2021
2 parents bdc2219 + 261f80c commit 5a18fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/projects/doctype/timesheet/timesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ frappe.ui.form.on("Timesheet", {
};
},

onload: function(frm){
onload: function(frm) {
if (frm.doc.__islocal && frm.doc.time_logs) {
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 5a18fb2

Please sign in to comment.