mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminado
This commit is contained in:
@ -59,7 +59,12 @@ class PedidoLineaModel extends \App\Models\BaseModel
|
||||
$builder->join("ubicaciones t6", "t6.id = t1.ubicacion_id", "left");
|
||||
|
||||
if($estado != "") {
|
||||
$builder->where("t1.estado", $estado);
|
||||
if($estado == "activo") {
|
||||
$sql = "t2.estado = 'validacion' OR t2.estado = 'produccion'";
|
||||
$builder->where($sql);
|
||||
} else {
|
||||
$builder->where("t2.estado", $estado);
|
||||
}
|
||||
}
|
||||
|
||||
// Falta implementar la busqueda por grupos
|
||||
|
||||
Reference in New Issue
Block a user