Fix: Balance Sheet and Trial Balance would not update when changing date.

This commit is contained in:
Amritanshu Agrawal 2021-09-25 11:25:11 +05:30
parent 119c5b71f1
commit c3bd22fc9f
4 changed files with 6 additions and 2 deletions

View File

@ -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',
},
];

View File

@ -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() {

View File

@ -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',
},
];

View File

@ -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() {