Skip to content

Commit

Permalink
Update Report.js (#520)
Browse files Browse the repository at this point in the history
adding dayPartDtart and dayPartEnd for endpoint usage.
  • Loading branch information
officeschwarts authored Jul 4, 2022
1 parent e913a88 commit 7f13062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/model/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ const leaveIntoObject = (leave) => {
return {
startDate: moment.utc(leave.get_start_leave_day().date).format(dateFormat),
endDate: moment.utc(leave.get_end_leave_day().date).format(dateFormat),
dayPartStart: leave.day_part_start,
dayPartEnd: leave.day_part_end,
type: leave.leave_type ? leave.leave_type.name : 'N/A',
deductedDays: leave.leave_type ? leave.get_deducted_days_number() : 'N/A',
approver: (leave.approver ? leave.approver.full_name() : 'N/A'),
Expand Down

0 comments on commit 7f13062

Please sign in to comment.