mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
falta borrar direcciones cliente
This commit is contained in:
@ -234,6 +234,7 @@ class Cliente extends \App\Controllers\GoBaseResourceController
|
||||
$this->viewData['comunidadAutonomaList'] = $this->getComunidadAutonomaListItems($clienteEntity->comunidad_autonoma_id ?? null);
|
||||
$this->viewData['provinciaList'] = $this->getProvinciaListItems($clienteEntity->provincia_id ?? null);
|
||||
$this->viewData['paisList'] = $this->getPaisListItems($clienteEntity->pais_id ?? null);
|
||||
$this->viewData['ccaaList'] = $this->getCcaaListItems($clienteEntity->ccaa_id ?? null);
|
||||
$this->viewData['userList'] = $this->getUserListItems($clienteEntity->comercial_id ?? null);
|
||||
$this->viewData['userList2'] = $this->getUserListItems2($clienteEntity->soporte_id ?? null);
|
||||
$this->viewData['formaDePagoList'] = $this->getFormaDePagoListItems($clienteEntity->forma_pago_id ?? null);
|
||||
@ -354,6 +355,14 @@ class Cliente extends \App\Controllers\GoBaseResourceController
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function getCcaaListItems($selId = null)
|
||||
{
|
||||
$ccaaModel = model('App\Models\Configuracion\ComunidadAutonomaModel');
|
||||
$onlyActiveOnes = true;
|
||||
$data = $ccaaModel->getAllForMenu('id, nombre', 'nombre', $onlyActiveOnes);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected function getUserListItems($selId = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user