Adds sponsor-dd and sponsor-dd-reconciliation feature modules, a shared customer search dialog, and wires them into routing/shell/ organization screens alongside cashier and deposit-request updates.
58 lines
1.8 KiB
TypeScript
58 lines
1.8 KiB
TypeScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { Route } from '../core/route/route.service';
|
|
import { DdInventoryListComponent } from './dd-inventory-list/dd-inventory-list.component';
|
|
import { DdListComponent } from './dd-list/dd-list.component';
|
|
import { DdIssueApprovalsComponent } from './dd-issue-approvals/dd-issue-approvals.component';
|
|
import { DdReprintApprovalsComponent } from './dd-reprint-approvals/dd-reprint-approvals.component';
|
|
|
|
const routes: Routes = [
|
|
Route.withShell([
|
|
{
|
|
path: 'sponsor-dd',
|
|
data: { title: 'Sponsor DD', breadcrumb: 'Sponsor DD' },
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirectTo: 'inventory',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: 'inventory',
|
|
component: DdInventoryListComponent,
|
|
data: { title: 'DD Inventory', breadcrumb: 'Inventory' }
|
|
},
|
|
{
|
|
path: 'leaflets/:inventoryId',
|
|
component: DdListComponent,
|
|
data: { title: 'DD Leaflets', breadcrumb: 'Leaflets' }
|
|
},
|
|
{
|
|
path: 'issue-approvals',
|
|
component: DdIssueApprovalsComponent,
|
|
data: { title: 'DD Issuance Approvals', breadcrumb: 'Issuance Approvals' }
|
|
},
|
|
{
|
|
path: 'reprint-approvals',
|
|
component: DdReprintApprovalsComponent,
|
|
data: { title: 'DD Reprint Approvals', breadcrumb: 'Reprint Approvals' }
|
|
}
|
|
]
|
|
}
|
|
])
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class SponsorDDRoutingModule {}
|