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:
Horux Dev
2026-05-15 23:22:38 +00:00
parent 7b1f60cbf2
commit 552a7c7716
3 changed files with 35 additions and 2 deletions

View File

@@ -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';