mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en el add
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user