Iniciada informacion de cubierta y sobrecubierta

This commit is contained in:
imnavajas
2024-02-27 15:27:25 +01:00
parent c1ff8f886a
commit ca20a54f07
5 changed files with 50 additions and 15 deletions

View File

@ -385,6 +385,32 @@ class PresupuestoLineaModel extends \App\Models\GoBaseModel
return $builder;
}
public function getResourceCubiertaForPdf($presupuesto_id = -1)
{
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->whereIn('t1.tipo', ['lp_cubierta']);
return $builder;
}
public function getResourceSobrecubiertaForPdf($presupuesto_id = -1)
{
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.paginas AS paginas, t1.papel_impresion AS papel, t1.gramaje AS gramaje"
)
->where("t1.presupuesto_id", $presupuesto_id)
->whereIn('t1.tipo', ['lp_sobrecubierta']);
return $builder;
}
}