- 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.
40 lines
1.7 KiB
Markdown
40 lines
1.7 KiB
Markdown
# customer-invoices
|
|
|
|
Índice de documentación del área de `customer-invoices`, con separación explícita entre contratos vigentes, soporte operativo e histórico.
|
|
|
|
## Documentación vigente
|
|
|
|
### Contratos funcionales y de transporte
|
|
|
|
- [Plazos de pago](../catalogs/payment-terms.md)
|
|
- [Diseño backend del perfil VeriFactu empresarial](./settings/verifactu-company-profile-backend-design.md)
|
|
- [Contrato de series de proformas](./proforma-series-contract.md)
|
|
- [Contrato de create de proformas](./proforma-create-contract.md)
|
|
- [Configuración fiscal persistida en proformas](./proforma-tax-config.md)
|
|
- [Contrato de listado de proformas](./proforma-list-contract.md)
|
|
- [Contrato de archivado de proformas](./proforma-archive-contract.md)
|
|
- [Contrato de borrado de proformas](./proforma-delete-contract.md)
|
|
- [Contrato de duplicado de proformas](./proforma-duplicate-contract.md)
|
|
- [Contrato de series de issued invoices](./issued-invoice-series-contract.md)
|
|
- [Contrato de snapshot documental](./document-series-snapshot-contract.md)
|
|
|
|
### Reports y flujos integrados
|
|
|
|
- [Reports de proformas](./proformas-reports.md)
|
|
- [FactuGES -> Proformas V2](../factuges/create-proforma-from-factuges.md)
|
|
|
|
### SQL y validaciones
|
|
|
|
- [Índice SQL de `customer-invoices`](./sql/README.md)
|
|
|
|
## Histórico o transicional
|
|
|
|
- [Split Proformas / Issued Invoices](./split-proformas-issued-invoices-migration.md)
|
|
- [InvoiceSeries legacy](./invoice-series.md)
|
|
|
|
## Criterio de lectura
|
|
|
|
- Para semántica vigente de negocio, empieza por `proforma-series-contract.md`, `proforma-create-contract.md` y `proforma-tax-config.md`.
|
|
- Para SQL manual o runbooks, usa `sql/README.md`.
|
|
- Para decisiones antiguas, migraciones o trazabilidad, consulta solo la sección histórica.
|