diff --git a/src/siu/sq/lib/daos/dao_comprobantes.php b/src/siu/sq/lib/daos/dao_comprobantes.php index b88d901ee44ecf291d04725dcb0235b280a74a4e..1b3e858d092e135642fbe7df438a5bb1e42fe1c0 100644 --- a/src/siu/sq/lib/daos/dao_comprobantes.php +++ b/src/siu/sq/lib/daos/dao_comprobantes.php @@ -24,6 +24,9 @@ class dao_comprobantes extends dao if(isset($filtro['numero_comprobante'])) { $where .= " AND numero_comprobante = " . $this->quote($filtro['numero_comprobante']); } + if(isset($filtro['id_comprobante_relacionado'])) { + $where .= " AND id_comprobante_relacionado = " . $this->quote($filtro['id_comprobante_relacionado']); + } $sql = "SELECT comp.id,