Added loading bar
Fixed product, account and employee details for add new.
This commit is contained in:
@ -64,9 +64,9 @@ export class EmployeeDetailComponent implements OnInit, AfterViewInit {
|
||||
designation: this.item.designation || '',
|
||||
salary: this.item.salary || '',
|
||||
points: this.item.points || '',
|
||||
isActive: this.item.isActive || true,
|
||||
isActive: this.item.isActive,
|
||||
costCentre: this.item.costCentre.id,
|
||||
joiningDate: moment(this.item.joiningDate, 'DD-MMM-YYYY').toDate(),
|
||||
joiningDate: this.item.joiningDate ? moment(this.item.joiningDate, 'DD-MMM-YYYY').toDate() : '',
|
||||
leavingDate: this.item.isActive ? null : moment(this.item.leavingDate, 'DD-MMM-YYYY').toDate()
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user