feat: cashier transactions list page (#1061)

Fixes: #760
This commit is contained in:
Karan Takalkar
2020-07-11 23:49:42 +05:30
committed by GitHub
parent 6b688b98dc
commit e74fdcf27b
10 changed files with 305 additions and 10 deletions
@@ -42,6 +42,7 @@ import { ViewCampaignComponent } from './sms-campaigns/view-campaign/view-campai
import { ManageFundsComponent } from './manage-funds/manage-funds.component';
import { ManageCurrenciesComponent } from './currencies/manage-currencies/manage-currencies.component';
import { CashiersComponent } from './tellers/cashiers/cashiers.component';
import { TransactionsComponent } from './tellers/transactions/transactions.component';
/** Custom Resolvers */
import { LoanProvisioningCriteriaResolver } from './loan-provisioning-criteria/loan-provisioning-criteria.resolver';
@@ -339,11 +340,24 @@ const routes: Routes = [
},
{
path: ':id',
component: ViewCashierComponent,
data: { title: extract('View Cashier'), breadcrumb: 'View Cashier', routeParamBreadcrumb: 'id' },
resolve: {
cashier: CashierResolver
}
data: { title: extract('View Cashier'), routeParamBreadcrumb: 'id' },
children: [
{
path: '',
component: ViewCashierComponent,
resolve: {
cashier: CashierResolver
}
},
{
path: 'transactions',
data: { title: extract('Cashier Transactions'), breadcrumb: 'Transactions', routeParamBreadcrumb: false },
component: TransactionsComponent,
resolve: {
currencies: CurrenciesResolver
}
}
]
}
]
}