feat: add public sale invoices module with routing and service integration

- 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.
This commit is contained in:
2026-05-21 21:35:34 +03:30
parent 1b4ac0789c
commit 8c07dc7c3f
25 changed files with 1036 additions and 349 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import { posAuthNamedRoutes } from '@/domains/pos/modules/auth/constants';
import { POS_ROUTES } from '@/domains/pos/routes';
import { PUBLIC_SALE_INVOICES_ROUTES } from '@/modules/saleInvoices/constants';
import { Notfound } from '@/pages/notfound/notfound.component';
import { Routes } from '@angular/router';
@@ -14,6 +15,6 @@ export const appRoutes: Routes = [
...posAuthNamedRoutes.login,
path: 'auth',
},
{ path: 'notfound', component: Notfound },
{ path: '**', redirectTo: '/notfound' },
...PUBLIC_SALE_INVOICES_ROUTES,
{ path: '**', component: Notfound },
];