feat(closing-entries): edit and delete closure

Add edit closure component and ability to delete an accounting closure
to backdate a transaction.
This commit is contained in:
Abhay Chawla
2018-08-04 23:03:39 +05:30
parent fcb8dce131
commit 6c80e86c0c
10 changed files with 182 additions and 6 deletions
@@ -24,6 +24,7 @@ import { EditGlAccountComponent } from './chart-of-accounts/edit-gl-account/edit
import { ClosingEntriesComponent } from './closing-entries/closing-entries.component';
import { CreateClosureComponent } from './closing-entries/create-closure/create-closure.component';
import { ViewClosureComponent } from './closing-entries/view-closure/view-closure.component';
import { EditClosureComponent } from './closing-entries/edit-closure/edit-closure.component';
const routes: Routes = [
Route.withShell([
@@ -146,8 +147,18 @@ const routes: Routes = [
},
{
path: 'view/:id',
component: ViewClosureComponent,
data: { title: extract('View Accounting Closure'), routeParamBreadcrumb: 'id' }
data: { title: extract('View Accounting Closure'), routeParamBreadcrumb: 'id' },
children: [
{
path: '',
component: ViewClosureComponent
},
{
path: 'edit',
component: EditClosureComponent,
data: { title: extract('Edit Accounting Closure'), breadcrumb: 'Edit', routeParamBreadcrumb: false }
}
]
}
]
}