[fix][cleanup] Leave allocation, application and balance report cleanup and fixes

This commit is contained in:
Nabin Hait
2015-11-16 14:50:14 +05:30
parent 4fbf01fd9d
commit 58c4646199
11 changed files with 342 additions and 308 deletions

View File

@@ -4,11 +4,13 @@
frappe.provide("erpnext.projects");
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.from_time && frm.doc.to_time) {
frappe.ui.form.trigger("Time Log", "to_time");
if (frm.doc.__islocal) {
if (frm.doc.for_manufacturing) {
frappe.ui.form.trigger("Time Log", "production_order");
}
if (frm.doc.from_time && frm.doc.to_time) {
frappe.ui.form.trigger("Time Log", "to_time");
}
}
});