Fix: Account save error

This commit is contained in:
tanshu 2018-06-12 11:52:23 +05:30
parent 4530052a22
commit 8c9a1a2191

View File

@ -112,7 +112,7 @@ export class AccountDetailComponent implements OnInit, AfterViewInit {
getItem(): Account {
const formModel = this.form.value;
this.item.name = formModel.name;
this.item.type.id = formModel.type;
this.item.type = formModel.type;
this.item.isActive = formModel.isActive;
this.item.isReconcilable = formModel.isReconcilable;
this.item.costCentre.id = formModel.costCentre;