trabajando en el add

This commit is contained in:
Jaime Jiménez
2024-01-28 13:38:56 +01:00
parent b679e9b89d
commit c4e42d4239
7 changed files with 186 additions and 148 deletions

View File

@ -220,7 +220,7 @@ class PresupuestoModel extends \App\Models\GoBaseModel
*
* @return \CodeIgniter\Database\BaseBuilder
*/
public function getResource($search = [])
public function getResource($search = [], $tipo_impresion_id = 4)
{
$builder = $this->db
->table($this->table . " t1")
@ -236,6 +236,7 @@ class PresupuestoModel extends \App\Models\GoBaseModel
$builder->join("presupuesto_estados t6", "t1.estado_id = t6.id", "left");
$builder->where("t1.is_deleted", 0);
$builder->where("t1.tipo_impresion_id", $tipo_impresion_id);
if (empty($search))
return $builder;