mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido que solo compruebe el ancho en vertical si es rotativa
This commit is contained in:
@ -129,16 +129,16 @@ class PapelGenericoModel extends \App\Models\BaseModel
|
|||||||
return empty($search)
|
return empty($search)
|
||||||
? $builder
|
? $builder
|
||||||
: $builder
|
: $builder
|
||||||
->groupStart()
|
->groupStart()
|
||||||
->like("t1.id", $search)
|
->like("t1.id", $search)
|
||||||
->orLike("t1.nombre", $search)
|
->orLike("t1.nombre", $search)
|
||||||
->orLike("t1.code", $search)
|
->orLike("t1.code", $search)
|
||||||
->orLike("t1.code_ot", $search)
|
->orLike("t1.code_ot", $search)
|
||||||
->orLike("t1.id", $search)
|
->orLike("t1.id", $search)
|
||||||
->orLike("t1.nombre", $search)
|
->orLike("t1.nombre", $search)
|
||||||
->orLike("t1.code", $search)
|
->orLike("t1.code", $search)
|
||||||
->orLike("t1.code_ot", $search)
|
->orLike("t1.code_ot", $search)
|
||||||
->groupEnd();
|
->groupEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -210,6 +210,10 @@ class PapelGenericoModel extends \App\Models\BaseModel
|
|||||||
->where("t4.ancho_impresion >", $alto)
|
->where("t4.ancho_impresion >", $alto)
|
||||||
->where("t4.alto_impresion >", $ancho)
|
->where("t4.alto_impresion >", $ancho)
|
||||||
->groupEnd()
|
->groupEnd()
|
||||||
|
->orGroupStart()
|
||||||
|
->where("t4.ancho_impresion >", $alto)
|
||||||
|
->where("t4.is_rotativa", 1)
|
||||||
|
->groupEnd()
|
||||||
->groupEnd();
|
->groupEnd();
|
||||||
|
|
||||||
if ($is_cubierta == true) {
|
if ($is_cubierta == true) {
|
||||||
@ -308,6 +312,10 @@ class PapelGenericoModel extends \App\Models\BaseModel
|
|||||||
->where("t4.ancho_impresion >", $alto)
|
->where("t4.ancho_impresion >", $alto)
|
||||||
->where("t4.alto_impresion >", $ancho)
|
->where("t4.alto_impresion >", $ancho)
|
||||||
->groupEnd()
|
->groupEnd()
|
||||||
|
->orGroupStart()
|
||||||
|
->where("t4.ancho_impresion >", $alto)
|
||||||
|
->where("t4.is_rotativa", 1)
|
||||||
|
->groupEnd()
|
||||||
->groupEnd();
|
->groupEnd();
|
||||||
|
|
||||||
if ($is_cubierta == true) {
|
if ($is_cubierta == true) {
|
||||||
@ -497,6 +505,10 @@ class PapelGenericoModel extends \App\Models\BaseModel
|
|||||||
->where("t4.ancho_impresion >", $alto)
|
->where("t4.ancho_impresion >", $alto)
|
||||||
->where("t4.alto_impresion >", $ancho)
|
->where("t4.alto_impresion >", $ancho)
|
||||||
->groupEnd()
|
->groupEnd()
|
||||||
|
->orGroupStart()
|
||||||
|
->where("t4.ancho_impresion >", $alto)
|
||||||
|
->where("t4.is_rotativa", 1)
|
||||||
|
->groupEnd()
|
||||||
->groupEnd();
|
->groupEnd();
|
||||||
|
|
||||||
if ($is_cubierta == true) {
|
if ($is_cubierta == true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user