Fix: Balance Sheet and Trial Balance would not update when changing date.
This commit is contained in:
parent
119c5b71f1
commit
c3bd22fc9f
@ -18,6 +18,7 @@ const balanceSheetRoutes: Routes = [
|
||||
resolve: {
|
||||
info: BalanceSheetResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
{
|
||||
path: ':date',
|
||||
@ -29,6 +30,7 @@ const balanceSheetRoutes: Routes = [
|
||||
resolve: {
|
||||
info: BalanceSheetResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -36,8 +36,8 @@ export class BalanceSheetComponent implements OnInit {
|
||||
this.form.setValue({
|
||||
date: moment(this.info.date, 'DD-MMM-YYYY').toDate(),
|
||||
});
|
||||
this.dataSource = new BalanceSheetDataSource(this.info.body, this.paginator, this.sort);
|
||||
});
|
||||
this.dataSource = new BalanceSheetDataSource(this.info.body, this.paginator, this.sort);
|
||||
}
|
||||
|
||||
show() {
|
||||
|
@ -18,6 +18,7 @@ const trialBalanceRoutes: Routes = [
|
||||
resolve: {
|
||||
info: TrialBalanceResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
{
|
||||
path: ':date',
|
||||
@ -29,6 +30,7 @@ const trialBalanceRoutes: Routes = [
|
||||
resolve: {
|
||||
info: TrialBalanceResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -36,8 +36,8 @@ export class TrialBalanceComponent implements OnInit {
|
||||
this.form.setValue({
|
||||
date: moment(this.info.date, 'DD-MMM-YYYY').toDate(),
|
||||
});
|
||||
this.dataSource = new TrialBalanceDataSource(this.info.body, this.paginator, this.sort);
|
||||
});
|
||||
this.dataSource = new TrialBalanceDataSource(this.info.body, this.paginator, this.sort);
|
||||
}
|
||||
|
||||
show() {
|
||||
|
Loading…
Reference in New Issue
Block a user