Merge pull request #3503 from neilLasrado/leave-application
Fixed bugs in Calender View for Leave Application
This commit is contained in:
commit
38bebe1b83
@ -339,6 +339,7 @@ def add_block_dates(events, start, end, employee, company):
|
||||
events.append({
|
||||
"doctype": "Leave Block List Date",
|
||||
"from_date": block_date.block_date,
|
||||
"to_date": block_date.block_date,
|
||||
"title": _("Leave Blocked") + ": " + block_date.reason,
|
||||
"name": "_" + str(cnt),
|
||||
})
|
||||
@ -355,6 +356,7 @@ def add_holidays(events, start, end, employee, company):
|
||||
events.append({
|
||||
"doctype": "Holiday",
|
||||
"from_date": holiday.holiday_date,
|
||||
"to_date": holiday.holiday_date,
|
||||
"title": _("Holiday") + ": " + cstr(holiday.description),
|
||||
"name": holiday.name
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user