diff --git a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php index 90dce5cd..68c93493 100755 --- a/ci4/app/Controllers/Presupuestos/Presupuestocliente.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestocliente.php @@ -164,8 +164,9 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController if ($presupuestoEntity->is_duplicado) { $this->model->removeIsDuplicado($presupuestoEntity->id); } - + $this->viewData['presupuestoId'] = $presupuestoEntity->id; + $this->viewData['state'] = intval($presupuestoEntity->estado_id); $this->viewData['boxTitle'] = lang('Basic.global.edit2') . ' ' . $this->viewData['pageTitle'] . ' ' . lang('Basic.global.edit3'); return $this->displayForm(__METHOD__, $id); @@ -626,6 +627,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController $datosCabecera = $reqData['datosCabecera'] ?? []; $confirmar = $reqData['confirmar'] ?? 0; + $confirmar = intval($confirmar); $cliente_id = $reqData['clienteId'] ?? -1; @@ -928,17 +930,16 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController { if ($this->request->isAJAX()) { - $modelPapelGenerico = new PapelGenericoModel(); $modelPapelFormato = new PapelFormatoModel(); $modelCliente = new ClienteModel(); - $reqData = $this->request->getPost(); - + $presupuesto = $this->model->find($id); $data = []; if ($presupuesto) { $data['lc'] = $presupuesto->lomo_cubierta; $data['lsc'] = $presupuesto->lomo_sobrecubierta; + $data['state'] = intval($presupuesto->estado_id); $data['datosGenerales']['titulo'] = $presupuesto->titulo; $data['datosGenerales']['autor'] = $presupuesto->autor; $data['datosGenerales']['isbn'] = $presupuesto->isbn; @@ -1005,6 +1006,11 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController $data['direcciones'] = $this->obtenerDireccionesEnvio($id, $presupuesto->cliente_id); + if(intval($presupuesto->estado_id) == 2){ + $data['resumen']['base'] = $presupuesto->total_aceptado; + $data['resumen']['precio_unidad'] = $presupuesto->total_precio_unidad; + } + $tiradas_alternativas = json_decode($presupuesto->tirada_alternativa_json_data); for ($i = 0; $i < count($tiradas_alternativas); $i++) { $tirada = $tiradas_alternativas[$i]; diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php index a2ab40c9..aad9101e 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php @@ -1,30 +1,36 @@
-
+
-
-
- +
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ +
+
- -
-
- -
-
- -
-
- -
-
- -
- -
- -
-
- -
\ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php index 1083ef86..7cdfa40f 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_resumen.php @@ -182,4 +182,25 @@
+ + +
+

Ficheros

+
+
+
+ Arrastre aquí los ficheros o haga click +
+
+ +
+
+
+ +
+ +
\ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php index fee3258d..e66e65b2 100644 --- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php +++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/viewPresupuestoclienteForm.php @@ -12,7 +12,7 @@
- +

@@ -29,7 +29,7 @@
-
+
class="step active titulos-menu" data-target="#datos-generales">
-
+
class="step titulos-menu" data-target="#interior-libro">
-
+
class="step titulos-menu" data-target="#cubierta-libro">
-
+
class="step titulos-menu" data-target="#direcciones-libro">
-
+