trabajando ya en el formulario

This commit is contained in:
2024-04-17 12:19:42 +02:00
parent b702d286ce
commit 82beb615a3
6 changed files with 2920 additions and 5 deletions

View File

@ -82,5 +82,11 @@ class Js_loader extends BaseController
return view('themes/backend/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js');
}
function presupuestoCliente_js()
{
$this->response->setHeader('Content-Type', 'text/javascript');
return view('themes/backend/vuexy/form/presupuestos/cliente/presupuestoCliente.js');
}
}

View File

@ -151,10 +151,14 @@ class Presupuestocliente extends \App\Controllers\GoBaseResourceController
$presupuestoEntity = isset($sanitizedData) ? new PresupuestoEntity($sanitizedData) : new PresupuestoEntity();
$presupuestoEntity->POD = model('App\Models\Configuracion\ConfiguracionSistemaModel')->getPOD();
$presupuestoEntity->clienteId = $clienteId;
$datosPresupuesto = (object)array();
$datosPresupuesto->paisList = model('App\Models\Configuracion\PaisModel')->getAllForMenu('id, nombre', 'nombre', true);
$this->viewData['formAction'] = route_to('crearPresupuestoCliente');
$this->viewData['presupuestoEntity'] = $presupuestoEntity;
$this->viewData['datosPresupuesto'] = $datosPresupuesto;
$this->viewData['boxTitle'] = lang('Basic.global.addNew') . ' ' . $this->viewData['pageTitle'] . ' ' . lang('Basic.global.addNewSuffix');