From 26fdb113a8314e4d81de17cfe7d462fb25d9e1a4 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 19 Jan 2017 12:44:40 +0530 Subject: [PATCH] [fix] update_salary_slip.py --- erpnext/patches/v7_2/update_salary_slips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v7_2/update_salary_slips.py b/erpnext/patches/v7_2/update_salary_slips.py index 612b9002569..64b2ce2a114 100644 --- a/erpnext/patches/v7_2/update_salary_slips.py +++ b/erpnext/patches/v7_2/update_salary_slips.py @@ -6,7 +6,7 @@ def execute(): if not frappe.db.has_column('Salary Slip', 'fiscal_year'): return - salary_slips = frappe.db.sql("""select month, name from `tabSalary Slip` + salary_slips = frappe.db.sql("""select month, name, fiscal_year from `tabSalary Slip` where (month is not null and month != '') and (start_date is null or start_date = '') and (end_date is null or end_date = '') and docstatus != 2""", as_dict=True)