Commit Graph

462 Commits

Author SHA1 Message Date
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
b2a9836436 Refactor controllers to remove redundant guards and improve code clarity
- Removed authentication and company context guards from multiple controllers in the customer, proforma, document series, and supplier modules.
- Consolidated guard registration logic in routes to enforce company ID restrictions globally.
- Cleaned up imports and ensured consistent error handling across controllers.
2026-09-09 00:43:34 +02:00
bf1dd43c78 feat(onboarding): implement initial onboarding use cases and controllers
- Add GetInitialOnboardingStatusUseCase to retrieve onboarding status.
- Implement CompleteInitialOnboardingUseCase for completing onboarding.
- Create controllers for handling onboarding requests in Express.
- Introduce new repository methods for managing onboarding data.
- Set up dependency injection for onboarding services and use cases.
- Add tests for onboarding use cases and repository methods.
- Define request DTOs for onboarding operations with validation.
- Update module composition to include onboarding functionalities.
2026-09-08 23:41:23 +02:00
a4398e163f refactor: update country references to use CountryCode in supplier and company modules
- Changed references from Country to CountryCode in supplier input mappers, audit services, and snapshot builders.
- Updated tests to reflect the changes in country handling.
- Refactored postal address to utilize CountryCode instead of Country.
- Added new company address mappers and tests to accommodate the updated structure.
- Ensured all related schemas and DTOs are aligned with the new country code implementation.
2026-09-07 12:22:04 +02:00
275fc0aca8 feat: agregar manejo de porcentaje de impuesto por defecto al duplicar y agregar elementos en el controlador de proformas 2026-09-07 11:12:32 +02:00
81da489ca8 feat: mejorar la interfaz de usuario en las secciones de configuración de verifactu y detalles de la empresa 2026-09-05 11:52:53 +02:00
3bf08fccec feat: implementar acciones de fila para proformas y refactorizar la lógica de acciones en columnas 2026-09-05 11:22:43 +02:00
021c19fc40 feat: agregar soporte para descripciones en métodos de pago y mejorar la interfaz de usuario 2026-09-04 20:35:28 +02:00
685472b3ef refactor: mejorar la navegación de configuración y agregar iconos a las entradas de menú 2026-09-04 19:35:20 +02:00
3aa3f4018b refactor: reemplazar RdxEditorPageLayout con RdxPageContainer y RdxEditorLayout en múltiples componentes 2026-09-04 13:48:16 +02:00
2f8122ca77 refactor: replace PageFormHeader with RdxEditorHeader in customer and supplier pages
- Updated CustomerViewHeader to use RdxEditorHeader for a more consistent header layout.
- Refactored CustomerViewPage to utilize RdxPageFrame and RdxPageContainer for improved structure.
- Replaced PageFormHeader with RdxEditorHeader in AccountPage for uniformity.
- Adjusted SupplierCreatePage and SupplierUpdatePage to use RdxPageFrame and RdxPageContainer for layout consistency.
- Removed SupplierLayout component as it was no longer necessary.
- Enhanced SupplierDetailPage to utilize RdxPageFrame for better layout management.
- Introduced RdxEditorHeader component to encapsulate header functionality for editor pages.
- Updated tests to cover new RdxEditorHeader functionality and removed obsolete tests related to RdxPageHeader.
2026-09-04 13:30:22 +02:00
85d2f11bde refactor: reorganizar importaciones y eliminar componentes obsoletos en las páginas de proformas y facturas 2026-09-04 11:53:59 +02:00
3eb7c37a7b Refactor proforma-related components and layouts
- Simplified the AppFullscreenLayout documentation.
- Removed ProformaLayout and refactored routes to use Outlet directly.
- Updated ProformaCreateCustomerField styles for better visibility.
- Adjusted ProformaCreateHeader to hide keyboard shortcuts button on small screens.
- Replaced FormSectionCard and FormSectionGrid with RdxPanel and RdxFormGrid in ProformaCreateInitialInfoCard.
- Refactored ProformaCreatePage to use RdxPageFrame for better layout control.
- Enhanced ProformaDetailContent and ProformaDetailPage for improved responsiveness.
- Updated ScopedListProformasPageView to use RdxPageFrame for consistent layout.
- Added new RdxEditorLayout and RdxPageFrame components for better structure in editor pages.
- Adjusted tests to accommodate new layout components and ensure proper rendering.
2026-09-04 11:41:37 +02:00
3d2ce8b981 feat: add page layouts documentation and visual system design for Rdx UI components
- Introduced `page-layouts.md` to outline approved page patterns for progressive adoption.
- Created `visual-system-design.md` to consolidate visual, architectural, and adoption decisions for a uniform UI/UX system in the ERP frontend.
- Added `RdxEditorActionBar` component for managing action bars in editor screens.
- Implemented `RdxPanel` component for grouping related content with optional headers and actions.
2026-09-04 11:07:59 +02:00
d92ab05f35 feat: refactor badge component and update related usages
- Replaced instances of Badge with RdxBadge in SupplierStatusBadge, DataTableFacetedFilter, MultiSelectField, and other components.
- Updated RdxEditorPageLayout to use width prop instead of complexity.
- Added new recurring proforma operational summary feature with tests.
- Introduced recurring proforma status entity and related UI helpers.
- Enhanced recurring proforma list and detail views with new components and hooks.
- Added tests for new functionality and components.
2026-09-03 18:50:57 +02:00
e670ff4b33 Agregar acciones y metadatos a la página de detalle de proformas recurrentes, incluyendo pruebas y utilidades de formato de fecha 2026-09-02 13:05:05 +02:00
5775378ca6 Agregar columna de acciones en el listado de proformas recurrentes y mejorar la gestión de acciones 2026-09-02 12:25:08 +02:00
3d49fca2d2 Agregar mensaje de operación en progreso en el archivo de traducción 2026-09-02 12:14:11 +02:00
727543f14f Completar columnas en listado de proformas recurrentes 2026-09-02 12:04:33 +02:00
1b45a4ec75 . 2026-09-01 19:27:59 +02:00
6bd5ed0e84 fix: update API server URL in development environment and enhance issued invoice model search index
- Changed VITE_API_SERVER_URL from http://192.168.0.104:3002/api/v1 to http://172.31.142.243:3002/api/v1 in .env.development file.
- Added 'invoice_reference' to the FULLTEXT index fields in sequelize-issued-invoice.model.ts for improved search capabilities.
- Added a new document detailing the design and information presentation for recurring proformas.
2026-09-01 19:27:59 +02:00
2da7a0b124 . 2026-09-01 19:02:20 +02:00
9137791b6c v0.10.8 2026-09-01 18:12:49 +02:00
00777b3ba2 feat: add create recurring proforma dialog and related functionality
- Implemented CreateRecurringProformaFromProformaDialog component for creating recurring proformas from existing proformas.
- Added unit tests for the new dialog and its integration within the proforma detail page.
- Created API functions for handling the creation of recurring proformas.
- Developed hooks to manage the creation process and invalidate relevant queries upon success.
- Enhanced recurring proforma detail page to display relevant information and actions.
- Added utility functions for formatting recurring proforma schedules.
- Introduced layout components for better organization of recurring proforma UI.
2026-09-01 11:36:20 +02:00
7effe3aad8 Proformas recurrentes 2026-09-01 09:16:52 +02:00
a746bb97ec Proformas recurrentes 2026-08-31 20:51:27 +02:00
1a8d63373d feat: mejorar el componente de ayuda para proformas y ajustar pruebas de actualización 2026-08-28 13:34:03 +02:00
a37d6fc96b feat: actualizar métodos para incluir proformas archivadas y agregar pruebas correspondientes 2026-08-28 13:02:46 +02:00
23c77adc80 feat: actualizar versión a 0.10.7 en todos los módulos y cambiar identificador de fuente a 'factuges-erp' 2026-08-26 14:38:44 +02:00
5bac39527e feat: mejorar el diálogo de emisión de proformas con nuevos controles de estado y mensajes de bloqueo 2026-08-26 13:59:19 +02:00
2f15f10b8b feat: normalizar y validar reglas de vencimiento en el término de pago de facturas 2026-08-26 13:41:57 +02:00
ace4fa6599 feat: ajustar formato de porcentaje y escala en el convertidor de proformas a facturas emitidas 2026-08-26 13:36:18 +02:00
38eaa10cb4 Error al duplicar las proformas 2026-08-26 13:19:15 +02:00
e0ba5ef229 feat: add proforma duplicator service and related tests
- Implemented ProformaDuplicator service for duplicating proforma documents.
- Added tests for duplicating proformas, including scenarios for successful duplication, audit failure propagation, and payment term adaptations.
- Created ProformaStatusChanger service to handle status changes of proformas with corresponding tests.
- Developed ProformaArchiver service for unarchiving proformas and added tests to verify functionality.
- Introduced a test fixture for creating proforma instances for testing purposes.
2026-08-26 13:03:39 +02:00
01d0ff67f8 Audit 2026-08-24 23:43:00 +02:00
34520a18ba Proveedores 2026-08-24 16:24:58 +02:00
0eed8453cc feat: update package versions to 0.10.5 across all modules 2026-08-21 16:18:20 +02:00
de204fbcc9 v0.10.4 2026-08-20 12:12:12 +02:00
595e08459d feat: normalize percentage.value to string in resolvePaymentTerm method 2026-08-20 10:47:41 +02:00
538c081d58 Repaso de Verifactu 2026-08-20 10:12:09 +02:00
bd630b29dd feat: add sorting functionality and new fields for issued invoices 2026-08-19 12:15:29 +02:00
9c1f98df0c feat: enhance issued invoice detail sections with new components and data structures
- Updated GetIssuedInvoiceByIdResult to include verifactu as nullable.
- Introduced new fiscal classification and verifactu policy interfaces in issued-invoice.entity.ts.
- Added new UI components for displaying issued invoice details, including sections for document, fiscal, items, payment, recipient, summary, taxes, totals, and verifactu.
- Implemented skeleton loading state for issued invoice detail page.
- Created tests for issued invoice detail page to ensure proper rendering and error handling.
- Updated pnpm workspace configuration to disallow builds for specific packages.
2026-08-19 12:04:31 +02:00
01fba79e38 feat: update TypeScript configurations and add frontend testing documentation 2026-08-19 10:39:15 +02:00
080dcaaa61 feat: implement GetProformaIssuanceReadiness use case and associated controller
- Add GetProformaIssuanceReadinessUseCase to check proforma issuance readiness.
- Create GetProformaIssuanceReadinessController to handle requests and responses.
- Introduce request and response DTOs for proforma issuance readiness.
- Develop tests for the use case and controller to ensure functionality.
- Implement adapter and hooks for integrating issuance readiness in the web application.
- Create UI components for displaying issuance readiness alerts and help popover.
- Add utility functions for translating blocker messages and details.
2026-08-18 23:03:04 +02:00
cf5a797532 feat: refactor proforma creation components and remove unused empty lines card 2026-08-18 12:39:46 +02:00
4411b8f07e feat: refactor account and proforma pages to use app-fullscreen layout and improve UI consistency 2026-08-18 11:54:45 +02:00
a4f82decc6 feat(companies): implement update current company use case and associated controllers
- Add UpdateCurrentCompanyUseCase to handle company updates.
- Create update-current-company.controller.ts to manage update requests.
- Implement validation and mapping for update requests using Zod.
- Add tests for the update use case and controller to ensure functionality.
- Introduce error handling and feedback state management for company details settings.
- Create utility functions for error normalization and feedback state resolution.
- Implement tests for error handling and feedback state utilities.
- Ensure nullable fields are handled correctly in DTOs and forms.
2026-08-17 15:49:11 +02:00
cf07de4836 feat: add proforma customer change evaluation utility
- Implemented `evaluateProformaCustomerChange` function to assess changes in customer details for proforma invoices.
- Introduced types for customer change details, blockers, field differences, and fiscal targets.
- Added utility functions for normalizing text and formatting recipient information.

test: add unit tests for customer payment resolver

- Created tests for `CustomerPaymentResolver` to validate payment term retrieval and handling of inactive terms.
- Ensured proper behavior when clearing payment terms and handling non-existent terms.

test: add unit tests for customer default payment term resolver

- Developed tests for `CustomerDefaultPaymentTermResolver` to verify default payment term resolution logic.
- Included scenarios for creating customers with and without explicit payment term IDs.

feat: implement customer default payment term resolver

- Created `CustomerDefaultPaymentTermResolver` to manage default payment term resolution during customer creation.
- Integrated with company finder and payment resolver services.

test: add unit tests for create customer use case

- Implemented tests for `CreateCustomerUseCase` to ensure correct handling of payment term IDs during customer creation.
- Validated behavior when no explicit payment term ID is provided.

test: add unit tests for update customer use case

- Developed tests for `UpdateCustomerUseCase` to verify payment term handling during customer updates.
- Ensured that inactive payment terms are not assigned and that explicit null values are respected.

feat: add dependency injection for customer company services

- Implemented DI for customer company dependencies to facilitate service resolution.

test: add tests for customer create data utility

- Created tests for `buildCustomerCreateData` to validate payment term handling based on user input.
2026-08-17 11:25:34 +02:00
45200284ed feat(verifactu): add company Verifactu profile management features
- Implemented API for updating company Verifactu profile.
- Created entities for company Verifactu profile and defaults.
- Developed hooks for querying and updating the company Verifactu profile.
- Added UI components for displaying and editing company Verifactu settings.
- Introduced validation and error handling for profile updates.
- Created utility functions for building form data and handling feedback states.
- Added tests for utility functions and error handling.
2026-08-12 13:31:31 +02:00