style: change formatting
diff --git a/erpnext/hr/doctype/leave_allocation/leave_allocation.js b/erpnext/hr/doctype/leave_allocation/leave_allocation.js
index 1b3349a..a620d9e 100755
--- a/erpnext/hr/doctype/leave_allocation/leave_allocation.js
+++ b/erpnext/hr/doctype/leave_allocation/leave_allocation.js
@@ -63,7 +63,7 @@
},
leave_type: function(frm) {
- frm.trigger("leave_policy")
+ frm.trigger("leave_policy");
frm.trigger("calculate_total_leaves_allocated");
},
@@ -83,13 +83,12 @@
leave_policy: function(frm) {
if(frm.doc.leave_policy && frm.doc.leave_type) {
- frappe.db.get_value("Leave Policy Detail",
- {'parent': frm.doc.leave_policy, 'leave_type': frm.doc.leave_type},
- 'annual_allocation', (r) => {
- if (r && !r.exc) {
- frm.set_value("new_leaves_allocated", flt(r.annual_allocation));
- }
- }, "Leave Policy")
+ frappe.db.get_value("Leave Policy Detail",{
+ 'parent': frm.doc.leave_policy,
+ 'leave_type': frm.doc.leave_type
+ }, 'annual_allocation', (r) => {
+ if (r && !r.exc) frm.set_value("new_leaves_allocated", flt(r.annual_allocation));
+ }, "Leave Policy");
}
},
calculate_total_leaves_allocated: function(frm) {
diff --git a/erpnext/hr/doctype/leave_application/leave_application.js b/erpnext/hr/doctype/leave_application/leave_application.js
index 2076ccd..5534cec 100755
--- a/erpnext/hr/doctype/leave_application/leave_application.js
+++ b/erpnext/hr/doctype/leave_application/leave_application.js
@@ -60,7 +60,7 @@
}
}
});
- frm.trigger("create_dashboard")
+ frm.trigger("create_dashboard");
}
},