add mostrar_en_presupuesto_cliente field in models,entities and datatables in list views

This commit is contained in:
amazuecos
2025-02-16 20:10:27 +00:00
parent 8b03dc6de6
commit 71b8b2db13
12 changed files with 23 additions and 5 deletions

View File

@ -29,7 +29,8 @@ class TarifaManipuladoModel extends \App\Models\BaseModel
"deleted_at",
"is_deleted",
"user_created_id",
"user_updated_id"
"user_updated_id",
"mostrar_en_presupuesto_cliente"
];
protected $returnType = "App\Entities\Tarifas\TarifaManipuladoEntity";
@ -83,7 +84,7 @@ class TarifaManipuladoModel extends \App\Models\BaseModel
public function getResource(string $search = "")
{
$builder = $this->db->table($this->table . " t1")->select("t1.id AS id,t1.code AS code, t1.nombre AS nombre, t1.precio_min AS precio_min, t1.importe_fijo AS importe_fijo
,t1.mostrar_en_presupuesto AS mostrar_en_presupuesto");
,t1.mostrar_en_presupuesto AS mostrar_en_presupuesto,t1.mostrar_en_presupuesto_cliente AS mostrar_en_presupuesto_cliente");
//JJO
$builder->where("t1.is_deleted", 0);