2020-10-01 15:21:22 +00:00
|
|
|
import { CommonModule } from '@angular/common';
|
2020-10-10 03:15:05 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
2020-10-01 15:21:22 +00:00
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2020-10-10 03:15:05 +00:00
|
|
|
|
|
|
|
import { LoginComponent } from './auth/login/login.component';
|
2020-10-01 15:21:22 +00:00
|
|
|
import { LogoutComponent } from './auth/logout/logout.component';
|
|
|
|
import { HomeComponent } from './home/home.component';
|
2018-05-25 13:49:00 +00:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2019-06-12 14:04:50 +00:00
|
|
|
{
|
|
|
|
path: 'accounts',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./account/account.module').then((mod) => mod.AccountModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'attendance',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./attendance/attendance.module').then((mod) => mod.AttendanceModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'balance-sheet',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./balance-sheet/balance-sheet.module').then((mod) => mod.BalanceSheetModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
2021-09-23 01:50:45 +00:00
|
|
|
{
|
|
|
|
path: 'batch-integrity-report',
|
|
|
|
loadChildren: () =>
|
2021-09-27 04:01:58 +00:00
|
|
|
import('./batch-integrity-report/batch-integrity-report.module').then(
|
|
|
|
(mod) => mod.BatchIntegrityReportModule,
|
|
|
|
),
|
2021-09-23 01:50:45 +00:00
|
|
|
},
|
2019-06-12 14:04:50 +00:00
|
|
|
{
|
|
|
|
path: 'cash-flow',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./cash-flow/cash-flow.module').then((mod) => mod.CashFlowModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'clients',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./client/client.module').then((mod) => mod.ClientModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'closing-stock',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./closing-stock/closing-stock.module').then((mod) => mod.ClosingStockModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'cost-centres',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./cost-centre/cost-centre.module').then((mod) => mod.CostCentreModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'daybook',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./daybook/daybook.module').then((mod) => mod.DaybookModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'employees',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./employee/employee.module').then((mod) => mod.EmployeeModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'employee-attendance',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./employee-attendance/employee-attendance.module').then(
|
|
|
|
(mod) => mod.EmployeeAttendanceModule,
|
|
|
|
),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'employee-benefits',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./employee-benefits/employee-benefits.module').then(
|
|
|
|
(mod) => mod.EmployeeBenefitsModule,
|
|
|
|
),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'employee-functions',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./employee-functions/employee-functions.module').then(
|
|
|
|
(mod) => mod.EmployeeFunctionsModule,
|
|
|
|
),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
2021-09-11 10:13:18 +00:00
|
|
|
{
|
|
|
|
path: 'rate-contracts',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('./rate-contract/rate-contract.module').then((mod) => mod.RateContractModule),
|
|
|
|
},
|
2021-11-10 05:23:07 +00:00
|
|
|
{
|
|
|
|
path: 'recipes',
|
|
|
|
loadChildren: () => import('./recipe/recipe.module').then((mod) => mod.RecipeModule),
|
|
|
|
},
|
2019-06-12 14:04:50 +00:00
|
|
|
{
|
2020-05-11 20:01:21 +00:00
|
|
|
path: 'roles',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./role/role.module').then((mod) => mod.RoleModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'incentive',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./incentive/incentive.module').then((mod) => mod.IncentiveModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'issue',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./issue/issue.module').then((mod) => mod.IssueModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'journal',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./journal/journal.module').then((mod) => mod.JournalModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'ledger',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./ledger/ledger.module').then((mod) => mod.LedgerModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'net-transactions',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./net-transactions/net-transactions.module').then((mod) => mod.NetTransactionsModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
2021-11-10 05:23:07 +00:00
|
|
|
{
|
|
|
|
path: 'non-contract-purchase',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('./non-contact-purchase/non-contract-purchase.module').then(
|
|
|
|
(mod) => mod.NonContractPurchaseModule,
|
|
|
|
),
|
|
|
|
},
|
2019-06-12 14:04:50 +00:00
|
|
|
{
|
|
|
|
path: 'payment',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./payment/payment.module').then((mod) => mod.PaymentModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'products',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./product/product.module').then((mod) => mod.ProductModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'product-groups',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./product-group/product-group.module').then((mod) => mod.ProductGroupModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'product-ledger',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./product-ledger/product-ledger.module').then((mod) => mod.ProductLedgerModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'profit-loss',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./profit-loss/profit-loss.module').then((mod) => mod.ProfitLossModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'purchase',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./purchase/purchase.module').then((mod) => mod.PurchaseModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'purchase-entries',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./purchase-entries/purchase-entries.module').then((mod) => mod.PurchaseEntriesModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'purchases',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./purchases/purchases.module').then((mod) => mod.PurchasesModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'raw-material-cost',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./raw-material-cost/raw-material-cost.module').then(
|
|
|
|
(mod) => mod.RawMaterialCostModule,
|
|
|
|
),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'receipt',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./receipt/receipt.module').then((mod) => mod.ReceiptModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
2020-05-12 15:22:07 +00:00
|
|
|
path: 'purchase-return',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./purchase-return/purchase-return.module').then((mod) => mod.PurchaseReturnModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'settings',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./settings/settings.module').then((mod) => mod.SettingsModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'stock-movement',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./stock-movement/stock-movement.module').then((mod) => mod.StockMovementModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trial-balance',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
import('./trial-balance/trial-balance.module').then((mod) => mod.TrialBalanceModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
2021-09-14 06:06:40 +00:00
|
|
|
path: 'entries',
|
|
|
|
loadChildren: () => import('./entries/entries.module').then((mod) => mod.EntriesModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users',
|
2020-10-01 15:21:22 +00:00
|
|
|
loadChildren: () => import('./user/user.module').then((mod) => mod.UserModule),
|
2019-06-12 14:04:50 +00:00
|
|
|
},
|
2020-10-01 15:21:22 +00:00
|
|
|
{ path: 'login', component: LoginComponent },
|
|
|
|
{ path: 'logout', component: LogoutComponent },
|
|
|
|
{ path: '', component: HomeComponent },
|
2018-05-25 13:49:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
2020-10-01 15:21:22 +00:00
|
|
|
RouterModule.forRoot(appRoutes, {
|
2020-11-24 02:33:43 +00:00
|
|
|
onSameUrlNavigation: 'reload',
|
|
|
|
relativeLinkResolution: 'legacy',
|
|
|
|
}),
|
2018-05-25 13:49:00 +00:00
|
|
|
],
|
|
|
|
exports: [RouterModule],
|
2020-10-01 15:21:22 +00:00
|
|
|
declarations: [],
|
2018-05-25 13:49:00 +00:00
|
|
|
})
|
2020-10-01 15:21:22 +00:00
|
|
|
export class AppRoutingModule {}
|