add maquinas tareas

This commit is contained in:
amazuecos
2024-12-24 12:51:44 +01:00
parent 6790c21675
commit 60706ecfc2
15 changed files with 266 additions and 46 deletions

View File

@ -10,6 +10,7 @@ use App\Models\Presupuestos\PresupuestoLineaModel;
use App\Models\Presupuestos\PresupuestoManipuladosModel;
use App\Models\Presupuestos\PresupuestoModel;
use App\Models\Presupuestos\PresupuestoPreimpresionesModel;
use App\Models\Presupuestos\PresupuestoServiciosExtraModel;
use CodeIgniter\Entity;
class PresupuestoEntity extends \CodeIgniter\Entity\Entity
@ -222,5 +223,9 @@ class PresupuestoEntity extends \CodeIgniter\Entity\Entity
$m = model(PresupuestoManipuladosModel::class);
return $m->where("presupuesto_id",$this->attributes["id"])->findAll();
}
public function extras(): array
{
$m = model(PresupuestoServiciosExtraModel::class);
return $m->where("presupuesto_id",$this->attributes["id"])->findAll();
}
}