feat(cfdi): agrega columna y filtro no_identificacion en tabla Conceptos
- Backend (cfdi.service.ts): getConceptosList ahora soporta filtro noIdentificacion via cc.no_identificacion ILIKE - Frontend API (cfdi.ts): ConceptosFilters incluye noIdentificacion; se envía como query param - Frontend página (cfdi/page.tsx): * Nuevo estado noIdentificacion en conceptosFilters * Nueva columna 'No. Identificación' en header de tabla con Popover filtro * Celda no_identificacion renderizada en cada fila * Export a Excel respeta el nuevo filtro
This commit is contained in:
@@ -181,6 +181,7 @@ export async function getConceptosList(
|
||||
uuidLike?: string;
|
||||
claveProdServ?: string;
|
||||
descripcionConcepto?: string;
|
||||
noIdentificacion?: string;
|
||||
orderBy?: 'fecha' | 'importe';
|
||||
orderDir?: 'asc' | 'desc';
|
||||
},
|
||||
@@ -261,6 +262,10 @@ export async function getConceptosList(
|
||||
whereClause += ` AND cc.descripcion ILIKE $${paramIndex++}`;
|
||||
params.push(`%${filters.descripcionConcepto}%`);
|
||||
}
|
||||
if (filters.noIdentificacion) {
|
||||
whereClause += ` AND cc.no_identificacion ILIKE $${paramIndex++}`;
|
||||
params.push(`%${filters.noIdentificacion}%`);
|
||||
}
|
||||
|
||||
// Ordenamiento configurable. Default: fecha DESC, id ASC (estable).
|
||||
const orderDir = filters.orderDir === 'asc' ? 'ASC' : 'DESC';
|
||||
|
||||
Reference in New Issue
Block a user