Fix: Incentives was not saving

Fix: Employee edit was not working
This commit is contained in:
Amritanshu
2018-08-25 11:28:23 +05:30
parent cd20982753
commit eb22eace69
2 changed files with 9 additions and 6 deletions

View File

@ -156,7 +156,7 @@ export class IncentiveComponent implements OnInit {
getVoucher(): Voucher {
const formModel = this.form.value;
this.voucher.date = moment(formModel.date).format('DD-MMM-YYYY');
const array = this.form.get('attendances') as FormArray;
const array = this.form.get('incentives') as FormArray;
this.voucher.incentives.forEach((item, index) => {
item.points = array.controls[index].value.points;
});