diff --git a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php index a822c826..10ebbea4 100755 --- a/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php +++ b/ci4/app/Controllers/Presupuestos/Cosidotapablanda.php @@ -100,6 +100,10 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController // JJO $sanitizedData['user_created_id'] = $session->id_user; + if ($sanitizedData['papel_formato_id'] == null) { + $sanitizedData['papel_formato_id'] = 0; + } + $noException = true; if ($successfulResult = $this->canValidate($this->model->validationRulesAdd, $this->model->validationMessagesAdd)) : // if ($successfulResult = $this->validate($this->formValidationRules) ) : @@ -218,6 +222,10 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController $sanitizedData['papel_formato_personalizado'] = false; } + if ($this->request->getPost('papel_formato_id') == null) { + $sanitizedData['papel_formato_id'] = 0; + } + $noException = true; if($sanitizedData['papel_formato_id'] == null && $sanitizedData['papel_formato_ancho'] == null && $sanitizedData['papel_formato_alto'] == null){ diff --git a/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php b/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php index 4aa222ac..7d6d6ca3 100755 --- a/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php +++ b/ci4/app/Models/Presupuestos/PresupuestoEncuadernacionesModel.php @@ -253,7 +253,7 @@ class PresupuestoEncuadernacionesModel extends \App\Models\GoBaseModel array_push($ret_array, (object)[ - 'tarifa_id'=> $tarifa['tarifa_id'], + 'tarifa_id'=> $tarifa_proveedor->tarifa_enc_id, 'tarifa_nombre'=> $tarifa_proveedor->tarifa_enc_nombre, 'precio_unidad'=> $result_data[0], 'total'=> $result_data[1], diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php index 4b80201e..a1f4cc08 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems.php @@ -73,13 +73,13 @@