Commit Graph

827 Commits

Author SHA1 Message Date
959adeb927 Dockers para desarrollo y test y migraciones de BD 2026-10-17 15:52:08 +02:00
3d8256b694 ERP-ARCH-01-tenant-authorization-cache 2026-10-16 19:00:01 +02:00
da362fef64 feat(e2e): implement end-to-end testing framework with database preparation and lifecycle management
- Add E2ESchemaDatabaseConfig interface for database configuration validation.
- Implement assertE2ESchemaDatabaseConfig function to enforce schema requirements.
- Create prepareE2ESchema function to handle schema preparation and initialization.
- Develop E2E lifecycle management functions to provision, prepare, and run tests.
- Introduce Docker Compose setup for E2E database environment.
- Add Playwright configuration for E2E testing.
- Implement various test cases to validate E2E schema preparation and lifecycle.
- Create utility functions for environment variable management and database assertions.
- Establish smoke tests to verify initial data setup and integrity.
2026-09-22 16:49:08 +02:00
73ab42cc16 fix: reducir el tamaño de los íconos en varios componentes 2026-09-22 16:48:56 +02:00
1218acb19d actualizar versión a 0.10.10 en todos los módulos y archivos de configuración 2026-09-21 19:12:44 +02:00
d878094b8d Actualizados FRX de proforma y factura 2026-09-21 19:00:39 +02:00
fc8c7fea99 feat(proformas): agregar contexto de generación de documentos y actualizar fábricas y servicios relacionados 2026-09-21 16:58:06 +02:00
b9143d8878 fix(console-logger): asegurar que los mensajes de depuración solo se registren en el entorno de desarrollo 2026-09-21 16:28:27 +02:00
947639c6e6 actualizar versión a 0.10.9 en todos los módulos y archivos de configuración 2026-09-21 13:11:28 +02:00
78f5236fe9 feat(series-documentales): implementar la página de configuración de series documentales con funcionalidad CRUD
* Añadir el componente `DocumentSeriesSettingsPage` para gestionar las series documentales.
* Crear diálogos para añadir, editar, avanzar y deshabilitar series documentales.
* Implementar esquemas de validación de formularios para crear y editar series documentales.
* Añadir funciones de utilidad para construir los payloads de las peticiones de las operaciones sobre series documentales.
* Escribir pruebas unitarias para los esquemas de formularios y las funciones de utilidad.
* Implementar pruebas end-to-end para la configuración de series documentales, cubriendo la creación, edición, establecimiento como predeterminada, avance y deshabilitación.
2026-09-18 22:57:37 +02:00
2122ed562b feat: implementar la funcionalidad para avanzar el número de serie documental
* Añadido el método `lockByCompanyAndDocumentType` a `SequelizeDocumentSeriesRepository` para bloquear las series documentales durante las actualizaciones.
* Introducido `AdvanceDocumentSeriesNumberUseCase` para gestionar el avance del número de la serie documental con control de transacciones.
* Creado `AdvanceDocumentSeriesNumberController` para exponer la funcionalidad de avance mediante HTTP.
* Actualizado el DTO de respuesta de series documentales para incluir el campo `has_assigned_numbers`.
* Añadido un esquema de validación para avanzar el número de la serie documental.
* Implementadas pruebas para la creación, asignación y avance de series documentales, garantizando el comportamiento correcto y las transiciones de estado esperadas.
* Introducidos nuevos errores para gestionar condiciones específicas de las series documentales.
* Actualizado el servicio de administración de series documentales existente para dar soporte a la nueva funcionalidad.
2026-09-18 18:38:49 +02:00
847fa60709 En proformas, cambiar "documentSeriesId" de string a UniqueID 2026-09-18 10:51:04 +02:00
66074c2fd0 Actualización a Vite 8.3.0 2026-09-18 10:38:59 +02:00
07879a6576 fix: actualizar rutas de directorio en archivos de configuración y documentación 2026-09-18 09:37:41 +02:00
35dca3954d feat(ui): refactor page layouts to use RdxPageContent for improved structure and consistency 2026-09-15 12:37:50 +02:00
939577dbec feat(ui): mejorar el filtro segmentado de estado de proforma con iconos y soporte para múltiples valores 2026-09-15 12:37:44 +02:00
902f7806ed Refactor pages to use RdxPageContent for consistent layout
- Updated IssuedInvoiceDetailPage to wrap PageErrorState in RdxPageContent.
- Modified ProformaDetailPage to include RdxPageContent around PageErrorState.
- Adjusted RecurringProformaDetailPage to utilize RdxPageContent for loading and error states.
- Refactored CustomerViewPage to implement RdxPageContent for PageErrorState and main content.
- Renamed SupplierDetailPage to SupplierViewPage and updated imports accordingly.
- Removed SupplierDetailPage and created SupplierViewPage with similar functionality.
2026-09-15 12:04:27 +02:00
ba257fd489 Add end-to-end tests for proforma customer selection and persistence
- Implement tests to verify that the selected customer is retained when creating a proforma.
- Add functionality to change the customer and ensure the change is persisted.
- Include tests to confirm the customer change and refresh the recipient name.
- Test cancellation of customer change to ensure the previous customer remains selected.
2026-09-15 11:37:50 +02:00
0b086047ee Actualización de Shadcn/ui 2026-09-14 19:52:11 +02:00
026e373f52 feat(tests): agregar pruebas E2E para la gestión de líneas en proformas, incluyendo adición, edición y eliminación 2026-09-14 19:49:19 +02:00
b6aa20e52b feat(ui): actualizar la estructura de RdxPageContent en varias páginas y componentes para mejorar la jerarquía y la semántica 2026-09-14 19:49:07 +02:00
450cc8d7bd feat(ui): agregar variante "card" a varios editores de cliente y ajustar clase en RdxPageContent 2026-09-14 19:13:54 +02:00
569f150c19 feat(tests): agregar pruebas para la validación de proformas y manejo de items 2026-09-14 16:53:01 +02:00
6b05ee01f3 feat(proformas): mejorar la estructura de la página de actualización de proformas y corregir selectores en pruebas E2E 2026-09-14 16:41:35 +02:00
ed58bd1e64 feat(layout): agregar clases de estilo a los componentes de diseño de pantalla completa y sidebar 2026-09-14 11:41:26 +02:00
c6de77897d feat(ui): mejorar la estructura y composición de RdxPageContent en patrones y sistema UI 2026-09-14 11:26:54 +02:00
9f303819b3 feat(tests): agregar pruebas E2E para la creación, visualización y actualización de proformas 2026-09-14 11:09:11 +02:00
a13ababdf6 refactor: replace RdxEditorLayout with RdxPageContent across multiple components
- Updated ScopedListProformasPageView, ProformaUpdateEditorForm, ProformaUpdatePage, RecurringProformaCreatePage, and others to use RdxPageContent instead of RdxEditorLayout.
- Removed RdxPageStack and replaced it with RdxPageContent for consistent layout management.
- Deleted RdxEditorLayout component and its associated tests.
- Introduced RdxPageContent component to handle main content and optional aside layout.
- Adjusted tests to reflect changes in component structure and layout.
2026-09-14 11:00:56 +02:00
e7e82d95ad feat(customers): implementar pruebas y lógica de ordenación para la lista de clientes 2026-09-14 10:53:11 +02:00
9c7dfc8645 feat(tax-definitions): enhance tax definitions settings with new filters and pagination
- Updated Spanish localization for tax definitions, adding new fields and improving structure.
- Enhanced the tax definitions settings page controller to support family and scope filters, pagination, and sorting.
- Introduced a new data table component for displaying tax definitions with improved UI and functionality.
- Added new actions for tax definitions, including create, edit, and delete functionalities.
- Updated criteria building for tax definitions to include family and scope filters, along with pagination and sorting options.
- Improved tests for tax definitions to cover new features and ensure proper functionality.
- Refactored recurring proforma controllers to utilize new query field guards for better validation.
2026-09-12 14:27:54 +02:00
52335dcbd7 feat(tax-definitions): implement tax definition management features
- Add useTaxDefinitionsSettingsPageController for managing tax definitions settings page state.
- Create tax definition form entity and schema for validation.
- Implement tax definition actions with permissions for edit, disable, and delete.
- Develop UI components for tax definition management including cards, dialogs, and empty states.
- Build utility functions for creating and updating tax definitions.
- Add tests for tax definition form schema and utility functions.
- Implement search and filter functionality for tax definitions list.
- Create skeleton and error states for better user experience during loading and error scenarios.
2026-09-11 14:39:06 +02:00
aed24d5354 feat(tax-definitions): add comprehensive tests and implement CRUD operations for tax definitions
- Introduced unit tests for input mappers and snapshot builders to ensure correct mapping and serialization of tax definitions.
- Implemented status change use cases for enabling and disabling tax definitions with appropriate error handling.
- Added API endpoints for creating, deleting, enabling, and disabling tax definitions, along with corresponding hooks for React.
- Developed entity structures for tax definitions and their lists, ensuring proper data handling in the application.
- Enhanced validation and error handling in mutation hooks for creating and updating tax definitions.
2026-09-11 13:13:58 +02:00
85973c6096 feat: agregar convención de organización y naming de tests E2E en la documentación 2026-09-10 17:54:52 +02:00
f79e3d520a feat: actualizar prefijo de query para listado de clientes y agregar pruebas de sincronización de caché 2026-09-10 17:34:42 +02:00
322df28591 feat(e2e): agregar pruebas E2E para la creación y actualización de clientes, y mejorar la navegación 2026-09-10 17:32:09 +02:00
04babcc14b FRX de Sual de factura 2026-09-10 17:26:10 +02:00
0d408b3607 . 2026-09-10 17:25:44 +02:00
8bc0852bea . 2026-09-10 17:25:36 +02:00
d8333b28cf . 2026-09-10 17:21:36 +02:00
99a3f70226 feat(e2e): agregar convenciones y pruebas E2E para el módulo de identidad 2026-09-10 17:15:53 +02:00
94b6515a03 Entorno para test E2E 2026-09-10 14:04:03 +02:00
42b197c16d feat(sql): agregar script para completar nombres de snapshots fiscales en proforma_items 2026-09-10 13:38:20 +02:00
d57b71c200 refactor: standardize import statements and formatting across components
- Updated import statements in `textarea.tsx`, `toggle.tsx`, and `tooltip.tsx` for consistency.
- Added missing semicolons and adjusted formatting in `use-mobile.ts` and `use-mobile.tsx`.
- Cleaned up `package.json` and `root.json` files by removing unnecessary line breaks.
- Simplified `turbo.json` by consolidating array formatting for better readability.
2026-09-10 13:26:33 +02:00
7a278cb247 . 2026-09-10 13:21:54 +02:00
0a2e7795f1 feat: Refactor tax handling in proforma and recurring proforma modules
- Introduced ProformaItemTax value object to encapsulate tax properties (code, name, percentage).
- Updated ProformaTaxResolver to utilize ProformaItemTax instead of Tax.
- Modified recurring proforma materializer to handle new tax structure.
- Adjusted proforma aggregate and item entities to accommodate ProformaItemTax.
- Enhanced Sequelize mappers to map to and from the new ProformaItemTax structure.
- Updated tests to reflect changes in tax handling and ensure correctness.
2026-09-10 13:21:49 +02:00
e94b1dd7bd Refactor code structure for improved readability and maintainability 2026-09-10 13:06:47 +02:00
77851f5dba feat(docs): actualizar documentación de configuración fiscal de Proforma y agregar notas sobre obsolescencia 2026-09-10 11:49:52 +02:00
3d8f110cb7 feat: enhance proforma tax handling and validation
- Added iva_name, rec_name, and retention_name to the SequelizeIssuedInvoiceV2TaxesDomainMapper for improved tax metadata handling.
- Implemented validation to ensure tax codes and names are present together in the SequelizeIssuedInvoiceV2TaxesDomainMapper.
- Updated proforma services to utilize the new tax resolver and availability checker for better tax management.
- Introduced ProformaTaxesUnavailableError and ProformaNotReadyForIssuanceError for clearer error handling in proforma issuance.
- Enhanced tax availability checking logic in ProformaTaxAvailabilityChecker to classify tax statuses accurately.
- Updated tests to cover new tax metadata requirements and ensure consistent behavior across proforma items.
2026-09-09 23:49:26 +02:00
396feb4fa4 feat(report): add IVA, rec, and retention fields to proforma report item snapshot 2026-09-09 14:37:39 +02:00
4bb5f8dd82 feat(report): update proforma report snapshots to include additional fields and improve data handling 2026-09-09 13:01:57 +02:00