Fix: Balance Sheet and Trial Balance would not update when changing date.
This commit is contained in:
@ -18,6 +18,7 @@ const balanceSheetRoutes: Routes = [
|
|||||||
resolve: {
|
resolve: {
|
||||||
info: BalanceSheetResolver,
|
info: BalanceSheetResolver,
|
||||||
},
|
},
|
||||||
|
runGuardsAndResolvers: 'always',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':date',
|
path: ':date',
|
||||||
@ -29,6 +30,7 @@ const balanceSheetRoutes: Routes = [
|
|||||||
resolve: {
|
resolve: {
|
||||||
info: BalanceSheetResolver,
|
info: BalanceSheetResolver,
|
||||||
},
|
},
|
||||||
|
runGuardsAndResolvers: 'always',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -36,8 +36,8 @@ export class BalanceSheetComponent implements OnInit {
|
|||||||
this.form.setValue({
|
this.form.setValue({
|
||||||
date: moment(this.info.date, 'DD-MMM-YYYY').toDate(),
|
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() {
|
show() {
|
||||||
|
|||||||
@ -18,6 +18,7 @@ const trialBalanceRoutes: Routes = [
|
|||||||
resolve: {
|
resolve: {
|
||||||
info: TrialBalanceResolver,
|
info: TrialBalanceResolver,
|
||||||
},
|
},
|
||||||
|
runGuardsAndResolvers: 'always',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':date',
|
path: ':date',
|
||||||
@ -29,6 +30,7 @@ const trialBalanceRoutes: Routes = [
|
|||||||
resolve: {
|
resolve: {
|
||||||
info: TrialBalanceResolver,
|
info: TrialBalanceResolver,
|
||||||
},
|
},
|
||||||
|
runGuardsAndResolvers: 'always',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -36,8 +36,8 @@ export class TrialBalanceComponent implements OnInit {
|
|||||||
this.form.setValue({
|
this.form.setValue({
|
||||||
date: moment(this.info.date, 'DD-MMM-YYYY').toDate(),
|
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() {
|
show() {
|
||||||
|
|||||||
Reference in New Issue
Block a user