parent
b6d2106184
commit
edf3dfa5a4
@ -66,7 +66,7 @@ class CompensatoryLeaveRequest(Document):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
leave_allocation = self.create_leave_allocation(leave_period, date_difference)
|
leave_allocation = self.create_leave_allocation(leave_period, date_difference)
|
||||||
self.leave_allocation=leave_allocation.name
|
self.db_set("leave_allocation", leave_allocation.name)
|
||||||
else:
|
else:
|
||||||
frappe.throw(_("There is no leave period in between {0} and {1}").format(format_date(self.work_from_date), format_date(self.work_end_date)))
|
frappe.throw(_("There is no leave period in between {0} and {1}").format(format_date(self.work_from_date), format_date(self.work_end_date)))
|
||||||
|
|
||||||
@ -124,4 +124,4 @@ class CompensatoryLeaveRequest(Document):
|
|||||||
))
|
))
|
||||||
allocation.insert(ignore_permissions=True)
|
allocation.insert(ignore_permissions=True)
|
||||||
allocation.submit()
|
allocation.submit()
|
||||||
return allocation
|
return allocation
|
||||||
|
Loading…
Reference in New Issue
Block a user