-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tient compte de startsAllDay / endsAllDay dans les éléments de paie
- Loading branch information
1 parent
111e829
commit 725752f
Showing
4 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
src/Application/HumanResource/Leave/View/LeaveRequestSlotView.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export class LeaveRequestSlotView { | ||
constructor( | ||
public readonly startDate: string, | ||
public readonly endDate: string | ||
public readonly startsAllDay: boolean, | ||
public readonly endDate: string, | ||
public readonly endsAllDay: boolean | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{%- if leaves.totalDays > 0 -%} | ||
<strong>{{ leaves.totalDays }}</strong> <br> | ||
{%- for leave in leaves.leaves -%} | ||
{{ leave.startDate|date }} -> {{ leave.endDate|date }} | ||
{{ leave.startDate|date }} {% if not leave.startsAllDay %}(0.5){% endif %} -> {{ leave.endDate|date }} {% if not leave.endsAllDay %}(0.5){% endif %} | ||
{%- if not loop.last %}<br>{% endif -%} | ||
{%- endfor -%} | ||
{%- endif -%} |