Uecko_ERP/docs/customer-invoices/sql/add-proforma-list-indexes.sql
david 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

6 lines
244 B
SQL

-- Evaluate on the real environment before execution.
-- Adjust the last sort column if the canonical backend order changes.
CREATE INDEX idx_proformas_company_archive_status_date
ON proformas (company_id, archived_at, status, proforma_date);