feat: conceptos tab, filters, backfill, facturapi live keys, fixes

- Add Conceptos tab in CFDI page with column filters, sorting, pagination
- Add GET /cfdi/conceptos endpoint with filters and orderBy
- Backfill cfdi_conceptos from legacy XMLs (824k concepts inserted)
- Fix CFDI delete button (bypass subscription check, add alerts)
- Fix export to Excel (fetch all filtered results, limit 10k)
- Fix facturacion page concepto delete bug (immutable updates, unique ids)
- Add Facturapi live key auto-generation and caching
- Fix SAT fechaPagoP parsing
- Add metrics cache support for current year
- Increase DB pool max to 15
This commit is contained in:
Horux Dev
2026-04-29 21:03:41 +00:00
parent 066ba7deda
commit e7dbae1ab7
18 changed files with 1076 additions and 111 deletions

View File

@@ -167,6 +167,44 @@ export interface CfdiConcepto {
creadoEn: string;
}
export interface CfdiConceptoFilters {
fechaInicio?: string;
fechaFin?: string;
tipo?: TipoCfdi;
tipoComprobante?: string;
estado?: string;
rfc?: string;
search?: string;
uuid?: string;
claveProdServ?: string;
descripcion?: string;
orderBy?: 'fecha' | 'importe';
orderDir?: 'asc' | 'desc';
contribuyenteId?: string;
page?: number;
limit?: number;
}
export interface CfdiConceptoListItem extends CfdiConcepto {
cfdiUuid: string | null;
cfdiFechaEmision: string | null;
cfdiRfcEmisor: string | null;
cfdiNombreEmisor: string | null;
cfdiRfcReceptor: string | null;
cfdiNombreReceptor: string | null;
cfdiTipoComprobante: string | null;
cfdiStatus: string | null;
cfdiTipo: string | null;
}
export interface CfdiConceptoListResponse {
data: CfdiConceptoListItem[];
total: number;
page: number;
limit: number;
totalPages: number;
}
export interface CfdiListResponse {
data: Cfdi[];
total: number;