Implementacion de feedback JM sobre presupuestos

This commit is contained in:
imnavajas
2025-02-25 15:36:11 +01:00
parent c5f1f0e55a
commit fcd6adebb7
4 changed files with 43 additions and 6 deletions

View File

@ -556,9 +556,10 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
"t1.paginas AS paginas, t2.nombre AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->whereIn('t1.tipo', ['lp_bn', 'lp_bnhq', 'lp_rot_bn']);
return $builder;
@ -569,9 +570,10 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
"t1.paginas AS paginas, t2.nombre AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->whereIn('t1.tipo', ['lp_color', 'lp_colorhq', 'lp_rot_color']);
return $builder;
@ -582,9 +584,10 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
"t1.paginas AS paginas, t2.nombre AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->whereIn('t1.tipo', ['lp_cubierta']);
return $builder;
@ -595,9 +598,10 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
"t1.paginas AS paginas, t2.nombre AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->whereIn('t1.tipo', ['lp_sobrecubierta']);
return $builder;
@ -608,9 +612,10 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
"t1.paginas AS paginas, t2.nombre AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->whereIn('t1.tipo', ['lp_guardas']);
return $builder;