add code and comment to tarifas envios

This commit is contained in:
amazuecos
2024-10-21 18:00:33 +00:00
parent db67b1946f
commit b74495117f
3 changed files with 6 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class TarifaEnvioModel extends \App\Models\BaseModel
*/
public function getResource(string $search = "")
{
$builder = $this->db->table($this->table . " t1")->select("t1.id as id, t1.nombre AS nombre, t2.nombre AS pais_id");
$builder = $this->db->table($this->table . " t1")->select("t1.id as id, t1.nombre AS nombre,t1.code AS code, t2.nombre AS pais_id");
$builder->join("lg_paises t2", "t1.pais_id = t2.id", "left");
//JJO
@ -85,6 +85,7 @@ class TarifaEnvioModel extends \App\Models\BaseModel
: $builder
->groupStart()
->like("t1.nombre", $search)
->orLike("t2.code", $search)
->orLike("t2.id", $search)
->orLike("t1.pais_id", $search)
->orLike("t1.nombre", $search)