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);
|
||||
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.form.get('addRow').patchValue({
|
||||
amount: amount
|
||||
});
|
||||
this.resetAddRow();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user