Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Jan 13, 2017
2 parents ca7c527 + 3d26ddd commit 5d69900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals
import frappe

__version__ = '7.2.10'
__version__ = '7.2.11'

def get_default_company(user=None):
'''Get default company for user'''
Expand Down
4 changes: 4 additions & 0 deletions erpnext/patches/v7_2/update_salary_slips.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
from erpnext.hr.doctype.process_payroll.process_payroll import get_month_details

def execute():
ss_columns = frappe.db.get_table_columns("Salary Slip")
if "fiscal_year" not in ss_columns or "month" not in ss_columns:
return

salary_slips = frappe.db.sql("""select fiscal_year, month, name from `tabSalary Slip`
where (month is not null and month != '')
and (fiscal_year is not null and fiscal_year != '') and
Expand Down

0 comments on commit 5d69900

Please sign in to comment.