Merge pull request #2669 from nathando/patch-2

Look like a minor bug
This commit is contained in:
Nabin Hait 2015-02-05 13:48:47 +05:30
commit 5bf1f89da7

View File

@ -45,7 +45,7 @@ class SalarySlip(TransactionBase):
def get_leave_details(self, lwp=None):
if not self.fiscal_year:
self.fiscal_year = frappe.get_default("fiscal_year")
self.fiscal_year = frappe.db.get_default("fiscal_year")
if not self.month:
self.month = "%02d" % getdate(nowdate()).month