more payroll improvements and tests fixes

This commit is contained in:
Nabin Hait
2018-07-30 20:16:48 +05:30
parent 1fa5698798
commit d53c2c031d
11 changed files with 255 additions and 209 deletions

View File

@@ -170,7 +170,7 @@ def validate_overlap(doc, from_date, to_date, company = None):
doc.name = "New "+doc.doctype
overlap_doc = frappe.db.sql(query.format(doc.doctype),{
"employee": doc.employee,
"employee": doc.get("employee"),
"from_date": from_date,
"to_date": to_date,
"name": doc.name,