mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[fix] update_salary_slip.py
This commit is contained in:
@@ -6,7 +6,7 @@ def execute():
|
|||||||
if not frappe.db.has_column('Salary Slip', 'fiscal_year'):
|
if not frappe.db.has_column('Salary Slip', 'fiscal_year'):
|
||||||
return
|
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
|
where (month is not null and month != '') and
|
||||||
(start_date is null or start_date = '') and
|
(start_date is null or start_date = '') and
|
||||||
(end_date is null or end_date = '') and docstatus != 2""", as_dict=True)
|
(end_date is null or end_date = '') and docstatus != 2""", as_dict=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user