mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
[minor] comment about hack
This commit is contained in:
@@ -131,6 +131,7 @@ class LeaveApplication(Document):
|
|||||||
|
|
||||||
def validate_leave_overlap(self):
|
def validate_leave_overlap(self):
|
||||||
if not self.name:
|
if not self.name:
|
||||||
|
# hack! if name is null, it could cause problems with !=
|
||||||
self.name = "New Leave Application"
|
self.name = "New Leave Application"
|
||||||
|
|
||||||
for d in frappe.db.sql("""select name, leave_type, posting_date, from_date, to_date, total_leave_days
|
for d in frappe.db.sql("""select name, leave_type, posting_date, from_date, to_date, total_leave_days
|
||||||
|
|||||||
Reference in New Issue
Block a user