From 8e4cf13d01a19565fceb9a4938d5a3028ecf7522 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Wed, 22 Apr 2015 16:23:36 +0530 Subject: [PATCH] fixes time log hours calculation --- erpnext/projects/doctype/time_log/time_log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/time_log/time_log.js b/erpnext/projects/doctype/time_log/time_log.js index 19fa5bedf8..536ddf8c9c 100644 --- a/erpnext/projects/doctype/time_log/time_log.js +++ b/erpnext/projects/doctype/time_log/time_log.js @@ -7,7 +7,7 @@ frappe.ui.form.on("Time Log", "onload", function(frm) { if (frm.doc.for_manufacturing) { frappe.ui.form.trigger("Time Log", "production_order"); } - if (frm.doc.to_time && frm.doc.to_time) { + if (frm.doc.from_time && frm.doc.to_time) { frappe.ui.form.trigger("Time Log", "to_time"); } });