Skip to content

Commit b26a95a

Browse files
committed
personal info card css
1 parent d278e85 commit b26a95a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ess/employee_self_service_portal/page/ess/ess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ESS = Class.extend({
4343
let secondary_btns = document.querySelectorAll('#attendance_');
4444
for (i of secondary_btns) {
4545
i.addEventListener('click', function() {
46-
alert(this.value)
46+
// alert(this.value)
4747
frappe.model.with_doctype('Attendance', () => {
4848
// route to Attendance
4949
let attendance = frappe.model.get_new_doc('Attendance');

ess/employee_self_service_portal/page/ess/ess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def get_approval_doc():
193193
todo = len(frappe.db.get_all("ToDo",filters={'owner':frappe.session.user,'status':'Open'}))
194194
claim = len(frappe.db.get_all("Expense Claim",filters={'expense_approver':frappe.session.user,'status':'Draft'}))
195195
travel_request = len(frappe.db.get_all("Travel Request",filters={'approver':frappe.session.user,'workflow_state':'Draft'}))
196-
return {"Leave Application":leave_applications,"ToDo":todo,"Expense Claim":claim, "Travel Request":travel_request}
196+
attendance = len(frappe.db.get_all("Attendance",filters={'attendance_approver':frappe.session.user,'workflow_state':'Draft'}))
197+
return {"Leave Application":leave_applications,"ToDo":todo,"Expense Claim":claim, "Travel Request":travel_request, 'Attendance':attendance}
197198

198199
@frappe.whitelist()
199200
def get_hr_admin_data():

0 commit comments

Comments
 (0)