Añadida la funcionalidad en tarifas preimpresion de mostrar en presupuesto

This commit is contained in:
Jaime Jimenez
2023-08-18 14:02:47 +02:00
parent 77cb70ede4
commit 8200de2d73
7 changed files with 32 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class Tarifapreimpresion extends \App\Controllers\GoBaseController
$sanitizedData = $this->sanitized($postData, $nullIfEmpty);
if ($this->request->getPost('mostrar_en_presupuesto') == null) {
$sanitizedData['mostrar_en_presupuesto'] = false;
}
$noException = true;
if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :
@ -140,6 +144,9 @@ class Tarifapreimpresion extends \App\Controllers\GoBaseController
if (isset($this->model->user_updated_id)) {
$sanitizedData['user_updated_id'] = $session->id_user;
}
if ($this->request->getPost('mostrar_en_presupuesto') == null) {
$sanitizedData['mostrar_en_presupuesto'] = false;
}
$noException = true;
if ($successfulResult = $this->canValidate()) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :