mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix pdf tables encuadernacion. Add tarifa acabado configuration for ots
This commit is contained in:
@ -210,7 +210,7 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity
|
||||
|
||||
$q = $model->where('presupuesto_id', $this->attributes["id"])->findAll();
|
||||
|
||||
return $q;
|
||||
return $q ?? [];
|
||||
}
|
||||
/**
|
||||
* Obtiene las lineas de presupuesto del actual presupuesto
|
||||
@ -251,6 +251,14 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity
|
||||
|
||||
return $q;
|
||||
}
|
||||
public function presupuestoLineaGuarda(): ?PresupuestoLineaEntity
|
||||
{
|
||||
$model = model(PresupuestoLineaModel::class);
|
||||
|
||||
$q = $model->where('presupuesto_id', $this->attributes["id"])->whereIn("tipo", ["lp_guardas"])->first();
|
||||
|
||||
return $q;
|
||||
}
|
||||
public function hasSobrecubierta(): bool
|
||||
{
|
||||
$hasSobrecubierta = false;
|
||||
|
||||
Reference in New Issue
Block a user