Commit Graph

122 Commits

Author SHA1 Message Date
538c081d58 Repaso de Verifactu 2026-08-20 10:12:09 +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
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
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
a0bd39c2a5 feat: add issued invoice detail page and related functionality
- Implemented IssuedInvoiceDetailPage component with loading and error states.
- Created utility functions for building issued invoice detail actions and view models.
- Added API adapter for fetching issued invoice details by ID.
- Developed hooks for managing issued invoice queries.
- Introduced new entities and types for issued invoices, including items, taxes, and recipient details.
- Added tests for view models and API adapters to ensure correctness.
- Organized code structure by creating separate files for components, utilities, and hooks.
2026-08-11 17:25:17 +02:00
ec1dd1099f Mejorar el diálogo de cambio de estado de proformas 2026-08-06 14:03:28 +02:00
a7543497b0 Nombres de las columnas para mostrar/ocultar 2026-08-06 13:39:20 +02:00
26e2ee59bd feat: add error handling and feedback state management for customer and proforma updates
- Implemented feedback state resolution for proforma list and update pages.
- Created error view models for proforma and customer updates, including handling for various error types.
- Added tests for error handling in proforma and customer list updates.
- Introduced utility functions for building error view models and resolving feedback states.
- Ensured translation support for error messages in Spanish.
- Removed duplicate error alert components in customer module.
2026-08-06 13:03:48 +02:00
9cade597d7 feat: add proforma detail components and utilities
- Introduced ProformaDetailContent, ProformaDetailHeader, ProformaDetailInspector, ProformaDocumentPane, ProformaGeneralPanel components for displaying detailed proforma information.
- Created various sections including ProformaCommercialSection, ProformaContentSection, ProformaCustomerSection, ProformaDatesSection, ProformaFiscalSection, ProformaLinkedInvoiceSection, and ProformaSummarySection to organize proforma details.
- Implemented utility functions to build proforma detail actions and view models, enhancing the management of proforma states and actions.
- Added translations and improved accessibility features across components.
2026-08-05 13:17:55 +02:00
ee040b8335 Característica: Mejora de los modelos de facturas proforma y emitidas con atributos de serie de documentos
- Se han añadido `document_series_id`, `invoice_series_code` e `invoice_reference` a los modelos y instantáneas de facturas emitidas.
- Se han introducido `proforma_series_code` y `proforma_number`, y se han actualizado las referencias en los modelos y instantáneas de las facturas proforma.
- Se han actualizado los esquemas de la base de datos y los scripts SQL para dar cabida a los nuevos campos y garantizar la integridad de los datos.
- Se ha elaborado la documentación correspondiente a las nuevas series de documentos «contrato de instantánea» y «contrato de serie de facturas emitidas».
- Se han implementado scripts SQL de rellenado para completar los registros existentes con los nuevos campos.
2026-08-04 11:05:02 +02:00
10a5c25fc1 v0.10.1 2026-08-03 15:43:08 +02:00
c46769e71e Duplicado de proforma 2026-07-30 12:45:33 +02:00
1bf85a05ff feat: implement proforma deletion and listing enhancements
- Added endpoint for retrieving deleted proformas with logical deletion.
- Updated proforma listing to support active, archived, and deleted scopes.
- Refactored repository and service layers to accommodate new proforma list scope.
- Enhanced UI to display separate views for active, archived, and deleted proformas.
- Updated localization files to reflect changes in proforma management.
- Improved query handling to filter proformas based on their status and scope.
2026-07-29 22:40:38 +02:00
a264f43b95 feat: enhance proforma listing and archiving functionality
- Updated proforma listing behavior to utilize `Criteria filters[]` for managing archived and active proformas.
- Removed `archived` query parameter from backend; frontend now manages `archiveView` state.
- Implemented new filters for `archived_at` and `status` in the proforma listing API.
- Adjusted proforma creation and deletion contracts to reflect changes in archiving logic.
- Introduced new utility functions for building proforma listing criteria based on UI state.
- Updated frontend components to support new filtering options and maintain state in the URL.
- Added SQL index for improved performance on proforma queries.
- Created new TypeScript types for managing proforma list filters and criteria.
2026-07-29 22:24:53 +02:00
1e0aadbfc6 Implement archive and unarchive functionality for proformas, including UI dialogs and logic for handling draft proformas. 2026-07-29 18:23:57 +02:00
eb8cbd97f2 Archivado de proformas 2026-07-29 14:40:59 +02:00
718e8b13d9 Borrado de proformas draft 2026-07-29 12:43:54 +02:00
eeb285f8b2 Configuración fiscal para proformas 2026-07-29 11:00:37 +02:00
5ed6556036 feat(document-series): implement document series management API
- Add UpdateDocumentSeriesController for updating document series.
- Create documentSeriesApiErrorMapper for error handling.
- Define document series routes including CRUD operations.
- Implement Sequelize-based persistence layer for document series.
- Add DTOs for request and response schemas for document series operations.
- Establish common structures for document series data handling.
- Configure TypeScript settings for the document series module.
2026-07-28 18:04:57 +02:00
0129c5963c . 2026-07-14 20:39:31 +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
1c0235de75 feat: Enhance proforma issuance with tax regime support
- Added tax regime to ProformaIssueReadModel and related services.
- Implemented tax regime resolution in ProformaToIssuedInvoiceConverter.
- Updated IssuedInvoiceFullSnapshotBuilder to include tax regime details.
- Enhanced ProformaIssueReadModelAssembler to handle tax regime fetching.
- Introduced IssueProformaResponseSnapshotBuilder for response mapping.
- Updated routes and controllers to accommodate new proforma issuance logic.
- Refactored request and response DTOs to include tax regime information.
- Added command structure for issuing proformas.
2026-07-09 13:07:48 +02:00
05f4b1337b feat(series-de-facturas): implementar la funcionalidad de gestión de series de facturas
- Se han añadido las dependencias de las series de facturas y los servicios internos.
- Se han creado un buscador de series de facturas y generadores de instantáneas para mostrar una lista de series de facturas.
- Se ha implementado un caso de uso para mostrar una lista de series de facturas activas por empresa.
- Se ha desarrollado la gestión de errores de la API para los errores relacionados con las series de facturas.
- Se han introducido nuevas clases de error para gestionar la validación de las series de facturas y los problemas de concurrencia.
- Se han añadido rutas y controladores de Express para la gestión de series de facturas.
- Se han definido DTO de respuesta para mostrar una lista de series de facturas.
- Se han actualizado los DTO comunes para incluir esquemas relacionados con las series de facturas.
2026-07-07 22:52:14 +02:00
588e9dd733 Proformas preview 2026-07-07 15:29:30 +02:00
5bc9920538 . 2026-06-13 14:58:09 +02:00
dc6382dd41 . 2026-06-05 16:49:35 +02:00
66783e1383 Formas de pago y vencimientos 2026-05-26 13:55:26 +02:00
996cf4ceb4 . 2026-05-20 19:02:31 +02:00
00627096ed Proformas: Ordenación y guardar preferencias 2026-05-19 17:23:10 +02:00
5d5ec76ad6 . 2026-05-12 20:56:22 +02:00
a248e8cdc0 Líneas de proformas
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 17:56:25 +02:00
d216119a91 . 2026-04-29 21:48:56 +02:00
79e90ec00f Edición de detalles de factura 2026-04-29 17:02:08 +02:00
cfbc4e6657 Edición de proformas y más 2026-04-28 11:34:22 +02:00
c9ba2d0370 . 2026-04-24 20:53:05 +02:00
330240deaa v0.6.0 - Subida a producción 2026-04-21 15:51:57 +02:00
67dc91eced . 2026-04-20 21:21:15 +02:00
53eb33376c Muchos cambios 2026-04-20 19:20:42 +02:00
588aacd48a . 2026-04-14 17:16:00 +02:00
2eab047e90 PROFORMAS UDPATE 2026-04-10 10:05:45 +02:00
cd0940cb20 PROFORMAS CAMBIO DE ESTADO 2026-04-05 22:30:01 +02:00
b2dee4ae8b PROFORMAS ISSUE 2026-04-05 22:17:11 +02:00
cef7536f27 . 2026-04-05 17:52:38 +02:00
6ea2e2df5b Repaso de proformas 2026-04-05 12:47:54 +02:00
400b90f631 Proformas: saber la issued invoice de una proforma 2026-04-03 11:36:29 +02:00
5d59598106 . 2026-03-28 22:10:05 +01:00
132408ac23 . 2026-03-23 12:13:33 +01:00
bba38e67f2 Alta de proformas 2026-03-03 17:00:32 +01:00
821b4d3ff7 . 2026-02-23 09:49:09 +01:00