Commit Graph

737 Commits

Author SHA1 Message Date
a746bb97ec Proformas recurrentes 2026-08-31 20:51:27 +02:00
288b134ec8 Actualización de la barra de menú 2026-08-31 12:11:59 +02:00
fb7d3f7043 feat: mejorar la búsqueda de auditoría al agregar soporte para filtros y ordenamiento 2026-08-29 15:52:28 +02:00
ce9f9029e3 feat: agregar contexto de operación y mejorar la restauración de sesión en el proveedor de autenticación 2026-08-29 15:47:55 +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
88663b07c8 . 2026-08-26 13:36:24 +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
7033d02a69 feat(audit): implement audit page state management and API integration
- Add utility functions for managing audit page state including parsing, serialization, and updates.
- Introduce audit period resolution logic to handle various time frames.
- Create API functions for finding and searching audit entries with appropriate DTOs and mappers.
- Implement hooks for fetching audit entries and lists, integrating with the data source.
- Add tests for utility functions, API calls, and mappers to ensure correctness.
- Establish shared entities and DTOs for consistent data handling across the module.
- Set up TypeScript configuration for the audit module.
2026-08-25 16:23:46 +02:00
c5cae1fbfd feat(audit): implement audit functionality with Sequelize integration and HTTP routes 2026-08-25 13:51:03 +02:00
6b9d131c14 feat(audit): implement supplier status activation and deactivation functionality with audit logging 2026-08-25 12:07:18 +02:00
2fba3b1108 feat: integrate audit functionality for supplier creation and updates
- Added @repo/rdx-audit as a dependency to the suppliers module.
- Implemented audit recording in SupplierCreator and SupplierUpdater services.
- Created supplier-audit module to handle audit actions and state transformations.
- Updated supplier aggregate to reflect changes in update method return type.
- Added integration tests for supplier audit functionality, ensuring correct audit records are created on supplier creation and updates.
- Refactored dependency injection to include audit service in supplier-related use cases.
2026-08-25 11:16:47 +02:00
e23a28cb8b feat(audit): integrate company audit functionality and related tests 2026-08-25 10:37:12 +02:00
0bcccd5e80 feat(audit): implement customer audit functionality and integrate with services 2026-08-25 09:42:16 +02:00
71b79cc4b1 feat(audit): integrate audit functionality for payment terms management 2026-08-25 00:47:29 +02:00
f1c0df685b feat(audit): integrate audit functionality for payment methods
- Added @repo/rdx-audit as a dependency in server and catalogs package.json.
- Enhanced payment method services (creator, updater, deleter, status changer, and default setter) to include audit logging.
- Implemented audit actions for create, update, enable, disable, delete, and default set/ unset operations.
- Created payment-method-audit.ts for managing audit actions and state projections.
- Developed integration tests for payment method audit logging in the HTTP context.
2026-08-25 00:28:23 +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
f1f329fa0d Refactor payment methods: Remove system_key and related logic
- Removed `system_key` from payment method model and related files.
- Updated payment method repository and services to eliminate references to `system_key`.
- Deleted the BootstrapSystemPaymentMethodsService and its use case, as they are no longer needed.
- Adjusted tests to reflect the removal of system payment methods and their associated logic.
- Added SQL script to drop the `system_key` column and its unique index from the database.
2026-08-20 19:37:39 +02:00
de204fbcc9 v0.10.4 2026-08-20 12:12:12 +02:00
bfa58638a0 feat: add validation and logging for payment method resolution 2026-08-20 12:10:44 +02:00
595e08459d feat: normalize percentage.value to string in resolvePaymentTerm method 2026-08-20 10:47:41 +02:00
cf7ce088f8 feat: update Vite configuration for improved HMR support and module resolution 2026-08-20 10:41:56 +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
7becfd31c0 Pantalla de detalle de Issued Invoice 2026-08-19 12:04:04 +02:00
a26caf333b . 2026-08-19 10:49:50 +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
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
64b90888c3 feat(identity): add Spanish localization for account management
- Introduced `es.json` for Spanish translations in account management.
- Created account routes and controllers for managing user accounts.
- Implemented hooks and API calls for fetching and updating account profiles.
- Developed forms and validation schemas for account profile and password management.
- Added error handling and feedback mechanisms for account actions.
- Built UI components for account settings page, including password change dialog.
- Integrated translations for new UI components and error messages.
2026-08-18 00:56:04 +02:00
fbf26d4745 feat: implement account management features
- Added services and use cases for managing account details, including changing passwords and updating profiles.
- Introduced error handling for duplicate emails and password mismatches.
- Created controllers for handling account-related requests in the Express framework.
- Updated API routes to include new account management endpoints.
- Enhanced the account profile schema to support email updates.
- Implemented tests for account management functionalities to ensure reliability and correctness.
2026-08-17 23:30:41 +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
ee48b19610 . 2026-08-16 18:08:44 +02:00
eba766e7eb feat(payment-terms): add payment terms management components and utilities
- Implemented PaymentTermRowActions component for editing, toggling, and deleting payment terms.
- Created PaymentTermSegmentedBar for visual representation of payment term segments.
- Added PaymentTermsEmptyState and PaymentTermsNoResultsState for handling empty and no results scenarios.
- Developed PaymentTermsSettingsSkeleton for loading state representation.
- Introduced utility functions for building payment term forms and parameters.
- Added criteria building functions for payment terms list filtering.
- Implemented error handling view model for payment terms settings page.
- Created tests for payment terms list criteria and due rules utilities.
- Added shell script to check development environment setup.
2026-08-16 17:12:07 +02:00
97174e580d feat(payment-terms): enforce percentage validation and enhance deletion logic
- Added validation to ensure payment term percentage is greater than 0 and does not exceed 100.
- Introduced `PaymentTermUsageChecker` to check for references before deletion.
- Updated `PaymentTerm` aggregate to track if due rules were updated.
- Enhanced repository methods to handle due rules correctly during updates and deletions.
- Added tests for payment term services and aggregate to ensure correct behavior.
- Implemented unique constraint on due days in the database model.
2026-08-16 00:36:31 +02:00
13cd45ea37 . 2026-08-15 15:42:23 +02:00
7f305c930e feat(tax-regimes): implement tax regime management features
- Add entities for tax regime forms and error view models.
- Create schemas for tax regime forms using Zod for validation.
- Implement UI components for creating, deleting, and managing tax regimes.
- Develop hooks for CRUD operations on tax regimes, including create, update, delete, and enable/disable functionalities.
- Add error handling and loading states for better user experience.
- Create utility functions for building form data and handling API responses.
- Implement skeleton and empty state components for improved UI feedback.
2026-08-14 10:51:36 +02:00
ef2ae58046 feat(home): implement home page with KPIs, recent activity, and attention items
- Added Spanish translations for home page components.
- Created API endpoints for fetching home-related data (customers, proformas, issued invoices).
- Developed hooks for managing home page data queries.
- Implemented home page layout with KPI cards, attention panels, monthly billing summary, and recent activity sections.
- Added error handling and loading states for improved user experience.
2026-08-13 11:04:57 +02:00
5dfbdd2a1c feat(payment-methods): add payment method management functionality
- Implemented `usePaymentMethodUpdateMutation` for updating payment methods with validation.
- Created settings controllers and hooks for managing payment methods.
- Added UI components for creating, editing, deleting, and displaying payment methods.
- Introduced error handling and feedback mechanisms for payment method operations.
- Developed form schemas and utility functions for handling payment method data.
- Established a new settings page for managing payment methods with appropriate loading and error states.
2026-08-13 01:04:56 +02:00