Browse Source

Look like a minor bug

- There is no frappe.get_default but only frappe.db.get_default ?
- Error return if selecting Employee in Salary Slip without specifying the Fiscal Year first
develop
Do Le Bao Nguyen 10 years ago
parent
commit
f9b63dd36a
  1. 2
      erpnext/hr/doctype/salary_slip/salary_slip.py

2
erpnext/hr/doctype/salary_slip/salary_slip.py

@ -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

Loading…
Cancel
Save