trabajando en guardar presupuesto hasta las lineas de presupuesto

This commit is contained in:
2025-01-02 17:33:23 +01:00
parent 2231e943c7
commit e9d4b0971b
6 changed files with 800 additions and 4420 deletions

View File

@ -330,8 +330,9 @@ class PresupuestoLineaModel extends \App\Models\BaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"*"
"*, t2.nombre AS papel_generico"
)
->join("lg_papel_generico t2", "t1.papel_id = t2.id", "left")
->where("t1.presupuesto_id", $presupuesto_id);
return $builder->orderBy("t1.id", "asc")->get()->getResultObject();