los acabados tienen que tener el check de mostrar en cliente a 1. Además se ha corregido un error al editar este check dentro de los servicios de acabado

This commit is contained in:
2025-06-24 13:06:46 +02:00
parent 819f297e90
commit 4bfc679c3e
2 changed files with 8 additions and 5 deletions

View File

@ -80,7 +80,7 @@ class ServiciosAcabado extends BaseResourceController
$sanitizedData['user_updated_id'] = auth()->user()->id;
if ($this->request->getPost('mostrar_en_presupuesto_cliente') == null) {
$sanitizedData['mostrar_en_presupuesto'] = false;
$sanitizedData['mostrar_en_presupuesto_cliente'] = false;
}
if ($this->request->getPost('acabado_cubierta') == null) {
@ -174,7 +174,7 @@ class ServiciosAcabado extends BaseResourceController
$sanitizedData['user_updated_id'] = auth()->user()->id;
if ($this->request->getPost('mostrar_en_presupuesto_cliente') == null) {
$sanitizedData['mostrar_en_presupuesto'] = false;
$sanitizedData['mostrar_en_presupuesto_cliente'] = false;
}
if ($this->request->getPost('acabado_cubierta') == null) {

View File

@ -213,7 +213,8 @@ class DisenioCubierta {
false,
{
[this.csrf_token]: this.csrf_hash,
"cubierta": 1
"cubierta": 1,
"cliente": 1
}
);
@ -223,7 +224,8 @@ class DisenioCubierta {
false,
{
[this.csrf_token]: this.csrf_hash,
"sobrecubierta": 1
"sobrecubierta": 1,
"cliente": 1
}
);
@ -233,7 +235,8 @@ class DisenioCubierta {
false,
{
[this.csrf_token]: this.csrf_hash,
"sobrecubierta": 1
"sobrecubierta": 1,
"cliente": 1
}
);