@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $this->addView('ListNCFRango', 'NCFRango'); |
50 | 50 | $this->addSearchFields('ListNCFRango', ['tipocomprobante']); |
51 | - $this->addOrderBy('ListNCFRango', ['tipocomprobante','correlativo'], 'tipocomprobante'); |
|
51 | + $this->addOrderBy('ListNCFRango', ['tipocomprobante', 'correlativo'], 'tipocomprobante'); |
|
52 | 52 | |
53 | 53 | $this->setSettings('ListNCFRango', 'modalInsert', 'ncf-rango-insert'); |
54 | 54 | $this->setCustomWidgetValues('ListNCFRango'); |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | $valueUsuarioCreacion = $this->request->request->get('usuariocreacion'); |
80 | 80 | $valueFechaCreacion = $this->request->request->get('fechacreacion'); |
81 | 81 | $data = $this->request->request->all(); |
82 | - $data['serie']=($this->inputExists($valueSerie))?$valueSerie:$data['serie']; |
|
83 | - $data['idempresa']=($this->inputExists($valueIdEmpresa))?$valueIdEmpresa:$this->empresa->idempresa; |
|
84 | - $data['usuariomodificacion']=($this->inputExists($valueFechaCreacion))?$this->user->nick:null; |
|
85 | - $data['usuariocreacion']=($this->inputExists($valueUsuarioCreacion)) |
|
86 | - ?$valueUsuarioCreacion |
|
82 | + $data['serie'] = ($this->inputExists($valueSerie)) ? $valueSerie : $data['serie']; |
|
83 | + $data['idempresa'] = ($this->inputExists($valueIdEmpresa)) ? $valueIdEmpresa : $this->empresa->idempresa; |
|
84 | + $data['usuariomodificacion'] = ($this->inputExists($valueFechaCreacion)) ? $this->user->nick : null; |
|
85 | + $data['usuariocreacion'] = ($this->inputExists($valueUsuarioCreacion)) |
|
86 | + ? $valueUsuarioCreacion |
|
87 | 87 | :$this->user->nick; |
88 | - $data['fechacreacion']=($this->inputExists($valueFechaCreacion)) |
|
89 | - ?$valueFechaCreacion |
|
88 | + $data['fechacreacion'] = ($this->inputExists($valueFechaCreacion)) |
|
89 | + ? $valueFechaCreacion |
|
90 | 90 | :\date('Y-m-d'); |
91 | 91 | $rangoNuevo = new NCFRango(); |
92 | 92 | $rangoNuevo->loadFromData($data); |