Added loading bar

Fixed product, account and employee details for add new.
This commit is contained in:
tanshu
2018-06-10 13:58:01 +05:30
parent 659de0ae52
commit 8996516978
10 changed files with 75 additions and 25 deletions

View File

@ -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()
});
}