Fix: FormArrays were not getting cleared and were basically fucking the whole thing up.
Fix: EmployeeAttendance was borking because the inital employee was null.
This commit is contained in:
@@ -81,6 +81,7 @@ export class ClosingStockComponent implements OnInit {
|
||||
date: moment(this.info.date, 'DD-MMM-YYYY').toDate(),
|
||||
costCentre: this.info.costCentre.id,
|
||||
});
|
||||
this.form.controls.stocks.clear();
|
||||
this.info.items.forEach((x) =>
|
||||
this.form.controls.stocks.push(
|
||||
new FormGroup({
|
||||
|
||||
Reference in New Issue
Block a user