From 8fbf8566182ccce05aa0ca0678e8acc85ee0f1a0 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 1 Oct 2018 12:00:45 +0530 Subject: [PATCH] [Fix] Salary slip --- erpnext/hr/doctype/salary_slip/salary_slip.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.js b/erpnext/hr/doctype/salary_slip/salary_slip.js index afb7f1a287..8cecbaa7b0 100644 --- a/erpnext/hr/doctype/salary_slip/salary_slip.js +++ b/erpnext/hr/doctype/salary_slip/salary_slip.js @@ -113,16 +113,14 @@ frappe.ui.form.on('Salary Slip Timesheet', { // Get leave details //--------------------------------------------------------------------- var get_emp_and_leave_details = function(doc, dt, dn) { - if(!doc.start_date){ - return frappe.call({ - method: 'get_emp_and_leave_details', - doc: locals[dt][dn], - callback: function(r, rt) { - cur_frm.refresh(); - calculate_all(doc, dt, dn); - } - }); - } + return frappe.call({ + method: 'get_emp_and_leave_details', + doc: locals[dt][dn], + callback: function(r, rt) { + cur_frm.refresh(); + calculate_all(doc, dt, dn); + } + }); } cur_frm.cscript.employee = function(doc,dt,dn){