- Implemented `countByStatusInCompany` method in `SequelizeProformaRepositoryV2` and `ProformaRepository` to count proformas by status. - Introduced `ProformaStatusCounts` type and `EMPTY_PROFORMA_STATUS_COUNTS` constant for managing status counts. - Updated the `ProformasGrid` and `IssuedInvoicesGrid` components to support searching and fetching states. - Enhanced the UI to display status counts in the segmented filter for proformas. - Refactored the proforma list and issued invoices page to include search input and status filters with loading states. - Added new entities and adapters for handling proforma status counts in the application layer. |
||
|---|---|---|
| .ai | ||
| .vscode | ||
| apps | ||
| docs | ||
| modules | ||
| packages | ||
| scripts | ||
| tools | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitignore | ||
| AGENTS.md | ||
| biome.json | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| turbo.json | ||
ERP Monorepo
Monorepo con aplicaciones, servidor y paquetes modulares para el ERP.
Estado actual
- El runtime nuevo de autenticación y sesión vive en
modules/identity. modules/companieses la fuente de verdad de la ficha operativa de empresa.modules/authdebe considerarse legacy/deprecated para backend nuevo.- El frontend ERP ya usa
@erp/identity/clientcomo runtime actual.
Documentación clave
- Docs index
- Identity and companies
- Tenant context y
X-Company-Id - Identity auth API
- Frontend auth and company selection
- Seed local admin
Reglas rápidas
- Backend nuevo: usar
@erp/identity/api. - Rutas solo autenticadas:
requireIdentityAuthenticated(params). - Rutas tenant-scoped:
requireIdentityTenant(params). GET /companies/availablees el endpoint vigente para companies accesibles.- No documentar ni introducir
GET /identity/companies. - No meter
companyIdnicompanySlugdentro del access token.