feat(accounting): add view transactions component
Add view transactions component, ability to revert transaction and viewing journal entry details. Fixes #139
This commit is contained in:
@@ -4,6 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
|
||||
import { Route, extract } from '../core';
|
||||
import { AccountingComponent } from './accounting.component';
|
||||
import { FrequentPostingsComponent } from './frequent-postings/frequent-postings.component';
|
||||
import { ViewTransactionComponent } from './view-transaction/view-transaction.component';
|
||||
|
||||
const routes: Routes = [
|
||||
Route.withShell([
|
||||
@@ -19,6 +20,17 @@ const routes: Routes = [
|
||||
path: 'frequent-postings',
|
||||
component: FrequentPostingsComponent,
|
||||
data: { title: extract('Frequent Postings'), breadcrumb: 'Frequent Postings' }
|
||||
},
|
||||
{
|
||||
path: 'transactions',
|
||||
data: { title: extract('Transactions'), breadcrumb: 'Transactions' },
|
||||
children: [
|
||||
{
|
||||
path: 'view/:id',
|
||||
component: ViewTransactionComponent,
|
||||
data: { title: extract('View Transaction'), routeParamBreadcrumb: 'id' }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user