haciendo formulario de editar tarifa envio

This commit is contained in:
Jaime Jimenez
2023-08-30 13:12:38 +02:00
parent ddaac2f9f1
commit 9a781eb6d6
15 changed files with 705 additions and 29 deletions

View File

@ -17,7 +17,7 @@ class TarifaEnvioModel extends \App\Models\GoBaseModel
1 => "t2.nombre",
];
protected $allowedFields = ["pais_id", "nombre"];
protected $allowedFields = ["pais_id", "nombre","deleted_at","is_deleted"];
protected $returnType = "App\Entities\Tarifas\TarifaEnvioEntity";
protected $useTimestamps = true;
@ -76,6 +76,9 @@ class TarifaEnvioModel extends \App\Models\GoBaseModel
$builder = $this->db->table($this->table . " t1")->select("t1.id as id, t1.nombre AS nombre, t2.nombre AS pais_id");
$builder->join("lg_paises t2", "t1.pais_id = t2.id", "left");
//JJO
$builder->where("t1.is_deleted", 0);
return empty($search)
? $builder
: $builder