mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Implementacion de feedback JM sobre presupuestos
This commit is contained in:
@ -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;
|
||||
|
||||
@ -324,6 +324,7 @@ class PresupuestoModel extends \App\Models\BaseModel
|
||||
t1.comentarios_pdf AS comentarios_pdf, t1.tirada_alternativa_json_data AS tiradas_alternativas,
|
||||
t1.total_presupuesto AS total_presupuesto, t1.total_precio_unidad AS total_precio_unidad,
|
||||
t1.papel_formato_personalizado AS isPersonalizado, t1.envios_recoge_cliente AS recoge_cliente,
|
||||
t1.solapas_ancho_faja_color AS ancho_solapas_faja,
|
||||
CONCAT(t1.papel_formato_ancho, 'x', t1.papel_formato_alto) AS formatoPersonalizado,
|
||||
t2.nombre AS cliente,
|
||||
CONCAT(t3.first_name, ' ', t3.last_name) AS comercial, t5.secret AS email_comercial,
|
||||
|
||||
Reference in New Issue
Block a user