Fix: Incentives was not saving
Fix: Employee edit was not working
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user