Cambios en la API con imprimelibros

This commit is contained in:
imnavajas
2025-01-20 14:58:59 +01:00
parent c478659124
commit 5ffb52d6e8
2 changed files with 16 additions and 44 deletions

View File

@ -588,7 +588,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
else{
return $return_data;
}
} catch (Exception $e) {
if($this->request){
if($this->request->isAJAX())
@ -1376,9 +1376,9 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
/***********************
*
*
* Funciones auxiliares
*
*
**********************/
protected function borrarRelacionesPresupuesto($id)
{
@ -2116,7 +2116,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
*/
$serviciosAutomaticos = [];
$servicios = [];
// se comprueba si $datos guardas es un array
// se comprueba si $datos guardas es un array
if (is_array($datos_guardas)) {
if (count($datos_guardas) > 0) {
array_push($servicios, 62); // Plegado de guardas
@ -2488,10 +2488,10 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
;
foreach ($data as $linea) {
if (strpos($linea->tipo, "hq") !== false) { // $linea->tipo contains the substring "hq"
if (strpos($linea->tipo, "hq") !== false) { // $linea->tipo contains the substring "hq"
$calidad = 'premium';
}
if (strpos($linea->tipo, "color") !== false) { // $linea->tipo contains the substring "color"
if (strpos($linea->tipo, "color") !== false) { // $linea->tipo contains the substring "color"
$color = 'color';
}
}