mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminada la recogida de datos fundamentales
This commit is contained in:
@ -49,6 +49,18 @@ class TipoPresupuestoModel extends \App\Models\BaseModel
|
||||
}
|
||||
|
||||
|
||||
public function getLibros($search = ""){
|
||||
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select("t1.id as id, t1.encuadernacion as name")
|
||||
->where('t1.codigo LIKE', 'libro%')
|
||||
->where('t1.is_deleted', 0);
|
||||
|
||||
return empty($search) ?
|
||||
$builder->get()->getResultObject() :
|
||||
$builder->groupStart()->
|
||||
like('t1.codigo', $search)->
|
||||
groupEnd()->get()->getResultObject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user