Refactor invoice status terminology and update related logic

- Renamed 'is_processed' fields to 'status' in the InvoiceHeader model and updated corresponding attributes in schemas, services, and frontend components for consistency.
- Adjusted query filters and validation logic to reflect the new 'status' terminology.
- Updated comments and documentation to clarify changes in invoice status handling.
This commit is contained in:
2026-03-13 12:54:58 -05:00
parent 5522fbb0b9
commit 4f200de5ef
14 changed files with 58 additions and 56 deletions

View File

@@ -236,7 +236,7 @@ seed_invoices() {
# 1. invoice_header — una fila por factura con fecha real en cada mes
# -------------------------------------------------------------------------
exec_pg_sql "INSERT INTO a76.invoice_header
(tenant_id, company_id, system, operation_type, invoice_type, invoice_number, invoice_date, is_processed, created_at, updated_at)
(tenant_id, company_id, system, operation_type, invoice_type, invoice_number, invoice_date, status, created_at, updated_at)
VALUES
-- Abril 2025 (4 facturas)
(${TENANT_ID}, ${COMPANY_ID}, 'fixed_asset', 'imp', 'DEF', 'SEED-2025-04-001', '2025-04-03', false, '2025-04-03 08:00:00', '2025-04-03 08:00:00'),