fix pdf tables encuadernacion. Add tarifa acabado configuration for ots

This commit is contained in:
amazuecos
2025-04-30 01:25:24 +02:00
parent 96a6845c0c
commit 36c9227586
22 changed files with 366 additions and 246 deletions

View File

@ -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;