8c07dc7c3f
- Introduced PUBLIC_SALE_INVOICES_ROUTES for handling sale invoice routes. - Created PublicSaleInvoicesService to fetch single invoice data from the API. - Implemented PublicSaleInvoiceStore for managing invoice state. - Added PublicSaleInvoiceComponent to display invoice details. - Updated app routes to include public sale invoices. - Removed pre-invoice dialog component and its associated files. - Enhanced order submitted dialog with QR code for invoice sharing. - Updated sale invoice single view to reflect new data structure. - Refactored page data list component for improved layout and functionality.
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { CONSUMER_ROUTES } from '@/domains/consumer/routes';
|
|
import { PARTNER_ROUTES } from '@/domains/partner/routes';
|
|
import { POS_ROUTES } from '@/domains/pos/routes';
|
|
import { PROVIDER_ROUTES } from '@/domains/provider/routes';
|
|
import { SUPER_ADMIN_ROUTES } from '@/domains/superAdmin/routes';
|
|
import { PUBLIC_SALE_INVOICES_ROUTES } from '@/modules/saleInvoices/constants';
|
|
import { Notfound } from '@/pages/notfound/notfound.component';
|
|
import { Routes } from '@angular/router';
|
|
|
|
export const appRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
loadComponent: () => import('@/layout/default/app.layout.component').then((m) => m.AppLayout),
|
|
children: [SUPER_ADMIN_ROUTES, CONSUMER_ROUTES, PROVIDER_ROUTES, PARTNER_ROUTES],
|
|
},
|
|
{
|
|
path: 'pos',
|
|
loadComponent: () =>
|
|
import('@/domains/pos/layouts/layout.component').then((m) => m.PosLayoutComponent),
|
|
children: [POS_ROUTES],
|
|
},
|
|
|
|
{
|
|
path: 'auth',
|
|
loadComponent: () => import('@/modules/auth/pages/auth.component').then((m) => m.AuthComponent),
|
|
},
|
|
...PUBLIC_SALE_INVOICES_ROUTES,
|
|
{ path: '**', component: Notfound },
|
|
];
|