feat: add list view in chart of accounts component
Add list view for GL accounts in chart of accounts component.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve } from '@angular/router';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { AccountingService } from '../accounting.service';
|
||||
|
||||
@Injectable()
|
||||
export class ChartOfAccountsResolver implements Resolve<Object> {
|
||||
|
||||
constructor(private accountingService: AccountingService) {}
|
||||
|
||||
resolve(): Observable<any> {
|
||||
return this.accountingService.getChartOfAccounts();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user