[minor] set timezone in posting time and added help

This commit is contained in:
Rushabh Mehta
2015-05-28 12:10:55 +05:30
parent 86e479f908
commit 95b995be6d
2 changed files with 21 additions and 1 deletions

View File

@@ -132,4 +132,17 @@ $.extend(erpnext.utils, {
);
}
}
})
});
// add description on posting time
$(document).on('app_ready', function() {
if(!frappe.datetime.is_timezone_same()) {
$.each(["Stock Reconciliation", "Stock Entry", "Stock Ledger Entry",
"Delivery Note", "Purchase Receipt", "Sales Invoice"], function(i, d) {
frappe.ui.form.on(d, "onload", function(frm) {
cur_frm.set_df_property("posting_time", "description",
sys_defaults.time_zone);
});
});
}
});