trabajando en el importador

This commit is contained in:
2025-03-13 22:17:20 +01:00
parent 02596457d8
commit cd3df81bc9
9 changed files with 243 additions and 32 deletions

View File

@ -385,4 +385,21 @@ class ClienteModel extends \App\Models\BaseModel
return null;
}
}
public function getIdName($search = "")
{
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.id AS id, t1.nombre AS name"
)
->where("is_deleted", 0);
return empty($search)
? $builder->get()->getResultObject()
: $builder
->groupStart()
->like("t1.nombre", $search)
->groupEnd()->get()->getResultObject();
}
}