mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Time Log now down to seconds
according to request of @anadpdoshi new branch new commit new PR
This commit is contained in:
@@ -46,7 +46,7 @@ frappe.ui.form.on("Time Log", "before_save", function(frm) {
|
|||||||
frappe.ui.form.on("Time Log", "to_time", function(frm) {
|
frappe.ui.form.on("Time Log", "to_time", function(frm) {
|
||||||
if(frm._setting_hours) return;
|
if(frm._setting_hours) return;
|
||||||
frm.set_value("hours", moment(cur_frm.doc.to_time).diff(moment(cur_frm.doc.from_time),
|
frm.set_value("hours", moment(cur_frm.doc.to_time).diff(moment(cur_frm.doc.from_time),
|
||||||
"minutes") / 60);
|
"seconds") / 3600);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user