From 26201a582863010f4487cf9953b33c5c9d03d303 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 8 Aug 2014 12:49:11 +0530 Subject: [PATCH] [fix] Show Employee Name in Employee Birthday report --- erpnext/hr/report/employee_birthday/employee_birthday.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/erpnext/hr/report/employee_birthday/employee_birthday.py b/erpnext/hr/report/employee_birthday/employee_birthday.py index 9bf61066c5..dfa64996f9 100644 --- a/erpnext/hr/report/employee_birthday/employee_birthday.py +++ b/erpnext/hr/report/employee_birthday/employee_birthday.py @@ -15,14 +15,15 @@ def execute(filters=None): def get_columns(): return [ - "Employee:Link/Employee:120", "Date of Birth:Date:100", "Branch:Link/Branch:120", - "Department:Link/Department:120", "Designation:Link/Designation:120", "Gender::60", - "Company:Link/Company:120" + "Employee:Link/Employee:120", "Name:Data:200", "Date of Birth:Date:100", + "Branch:Link/Branch:120", "Department:Link/Department:120", + "Designation:Link/Designation:120", "Gender::60", "Company:Link/Company:120" ] def get_employees(filters): conditions = get_conditions(filters) - return frappe.db.sql("""select name, date_of_birth, branch, department, designation, + return frappe.db.sql("""select name, employee_name, date_of_birth, + branch, department, designation, gender, company from tabEmployee where status = 'Active' %s""" % conditions, as_list=1) def get_conditions(filters):