fixes time log hours calculation

This commit is contained in:
Neil Trini Lasrado 2015-04-22 16:23:36 +05:30
parent d3179a733b
commit 8e4cf13d01

View File

@ -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");
}
});