acabado actualizar lineas presupuesto

This commit is contained in:
jaimejimenezortega
2024-03-23 11:56:02 +01:00
parent afce4b35e5
commit 6460b0e502
7 changed files with 282 additions and 25 deletions

View File

@ -105,6 +105,7 @@ class PresupuestoModel extends \App\Models\GoBaseModel
"total_factor_ponderado",
"acabado_cubierta_id",
"acabado_sobrecubierta_id",
"is_duplicado"
];
protected $returnType = "App\Entities\Presupuestos\PresupuestoEntity";
@ -264,6 +265,13 @@ class PresupuestoModel extends \App\Models\GoBaseModel
}
public function removeIsDuplicado($presupuesto_id){
$this->db
->table($this->table . " t1")
->where('id', $presupuesto_id)
->set('is_duplicado', false)
->update();
}
/**
* Get resource data for creating PDFs.
@ -299,6 +307,4 @@ class PresupuestoModel extends \App\Models\GoBaseModel
return $builder;
}
}