Commit Graph

33 Commits

Author SHA1 Message Date
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
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
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
0cbb6fc175 feat: Add initial company creator and onboarding repository
- Implemented InitialCompanyCreator service for creating new companies with necessary details and validations.
- Added IInitialOnboardingRepository interface for onboarding data persistence.
- Created SequelizeInitialOnboardingRepository for managing onboarding data with Sequelize ORM.
- Enhanced InitialOnboarding aggregate to include createdAt and updatedAt timestamps.
- Updated tests for initial company creation and onboarding provisioning to ensure proper functionality and error handling.
- Introduced new tests for the Sequelize repository to validate data retrieval and persistence logic.
2026-09-07 18:55:41 +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
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
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
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
9137791b6c v0.10.8 2026-09-01 18:12:49 +02:00
a746bb97ec Proformas recurrentes 2026-08-31 20:51:27 +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
e23a28cb8b feat(audit): integrate company audit functionality and related tests 2026-08-25 10:37:12 +02:00
01d0ff67f8 Audit 2026-08-24 23:43:00 +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
a7b2fa383c . 2026-08-19 10:49:39 +02:00
01fba79e38 feat: update TypeScript configurations and add frontend testing documentation 2026-08-19 10:39:15 +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
13cd45ea37 . 2026-08-15 15:42:23 +02:00
0be67ca6cd v0.10.3 2026-08-05 21:20:50 +02:00
ddf68c32c1 v0.10.2 2026-08-03 17:42:23 +02:00
10a5c25fc1 v0.10.1 2026-08-03 15:43:08 +02:00
1db1339bff v0.10.0 2026-08-03 10:57:09 +02:00
cb7a60e593 v0.9.4 2026-07-15 18:52:45 +02:00
ff8de3bfe7 v0.9.3 2026-07-15 18:09:41 +02:00
d31325fb4d v0.9.2 2026-07-15 17:10:03 +02:00
a810312f01 v0.9.1 2026-07-15 13:10:26 +02:00
78bb02f9b0 feat: Implement Sequelize mappers and repository for Proforma V2
- Added SequelizeProformaV2RecipientDomainMapper for mapping recipient data to domain model.
- Introduced SequelizeProformaV2TaxesDomainMapper for handling tax data mapping.
- Created SequelizeProformaV2RecipientSummaryMapper for summarizing recipient information.
- Developed SequelizeProformaV2SummaryMapper for mapping Proforma summary data.
- Implemented SequelizeProformaRepositoryV2 for managing Proforma data persistence.
- Added SequelizeProformaV2NumberGenerator for generating Proforma numbers.
2026-07-10 13:59:44 +02:00
cc14cdacf1 Docs 2026-07-06 17:47:05 +02:00
86bf1870ef . 2026-07-06 13:55:06 +02:00
3e5791afdb Login + selección de empresas 2026-07-06 12:57:33 +02:00