Employee Attendance Done!!

TODO: Only need to reload Attendance and Employee Attendance on Save
This commit is contained in:
tanshu
2020-05-14 22:13:34 +05:30
parent bd05e6bb17
commit cda157f05c
7 changed files with 118 additions and 30 deletions

View File

@ -58,9 +58,9 @@
{{row.prints}}
<mat-icon *ngIf="!form.controls.attendances.controls[i].pristine">new_releases</mat-icon>
<mat-chip-list class="no-bg">
<mat-chip *ngIf="row.hours.length" class="no-bg" [selected]="row.worked !== 'Error'"
[color]="row.worked === true ? 'primary' : 'warn'">
{{row.hours}}
<mat-chip *ngIf="row.hoursWorked.length" class="no-bg" [selected]="true"
[color]="row.fullDay === true ? 'primary' : 'warn'">
{{row.hoursWorked}}
</mat-chip>
</mat-chip-list>
</mat-cell>

View File

@ -16,8 +16,8 @@ export class EmployeeAttendanceItem {
date: string;
attendanceType: AttendanceType;
prints: string;
hours: string;
worked: string;
hoursWorked: string;
fullDay?: boolean;
public constructor(init?: Partial<EmployeeAttendanceItem>) {
Object.assign(this, init);