Fix: On row edit, the value of the control was set as number and not text, leding to error on add row.
This commit is contained in:
parent
bdb8bc7005
commit
dd59bfdfb4
@ -150,10 +150,7 @@ export class JournalComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
Object.assign(row, j);
|
Object.assign(row, j);
|
||||||
this.journalObservable.next(this.voucher.journals);
|
this.journalObservable.next(this.voucher.journals);
|
||||||
const amount = Math.abs(this.voucher.journals.map((x) => x.debit * x.amount).reduce((p, c) => p + c, 0));
|
this.resetAddRow();
|
||||||
this.form.get('addRow').patchValue({
|
|
||||||
amount: amount
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user