-
Notifications
You must be signed in to change notification settings - Fork 85
View public holiday and optional holiday cards on leave management #1753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View public holiday and optional holiday cards on leave management #1753
Conversation
|
Can you please fix the specs @prasanthchaduvula ? |
| json.optional_timeoff_entries optional_timeoff_entries do |timeoff_entry| | ||
| json.id timeoff_entry.id | ||
| json.duration timeoff_entry.duration | ||
| json.leave_date CompanyDateFormattingService.new(timeoff_entry.leave_date, company: current_company).process | ||
| json.holiday_info timeoff_entry.holiday_info if timeoff_entry.holiday_info.present? | ||
| json.type timeoff_entry.holiday_info.present? ? "holiday" : "leave" | ||
| end | ||
|
|
||
| json.national_timeoff_entries national_timeoff_entries do |timeoff_entry| | ||
| json.id timeoff_entry.id | ||
| json.duration timeoff_entry.duration | ||
| json.leave_date CompanyDateFormattingService.new(timeoff_entry.leave_date, company: current_company).process | ||
| json.holiday_info timeoff_entry.holiday_info if timeoff_entry.holiday_info.present? | ||
| json.type timeoff_entry.holiday_info.present? ? "holiday" : "leave" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we send timeoff_type as national or optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, as we need two different arrays on client side and if we make it into one array with timeoff_type as national or optional then we have to filter on client side.
nisusam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the failing specs
Closes #1735
What