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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user