terminado plantillas

This commit is contained in:
Jaime Jiménez
2024-01-02 21:01:42 +01:00
parent 0abdb7efac
commit a54838d468
12 changed files with 250 additions and 37 deletions

View File

@ -445,12 +445,12 @@ class Cliente extends \App\Controllers\GoBaseResourceController
$modelPreciosCliente = model('App\Models\Clientes\ClientePreciosModel');
$plantilla_id = $modelPreciosCliente->get_plantilla_precios($cliente_id);
if (is_null($plantilla_id)){
return [];
return null;
}
$modelPlantillaPreciosCliente = model('App\Models\Clientes\ClientePlantillaPreciosModel');
$plantilla = $modelPlantillaPreciosCliente->find($plantilla_id);
$plantilla = $modelPlantillaPreciosCliente->where("id", $plantilla_id)->where("is_deleted", 0)->first();
if ($plantilla == false){
return [];
return null;
}
else{
return (object)array(