@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function saveBefore(): Closure |
72 | 72 | { |
73 | - return function () { |
|
73 | + return function() { |
|
74 | 74 | if (null !== $this->codigorect && $this->idfactura === null) { |
75 | 75 | $this->cleanRefundData(); |
76 | 76 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $tipocomprobante = $actualCliente->tipocomprobante; |
90 | 90 | } |
91 | 91 | |
92 | - if (true === in_array($this->numeroncf, ['',null])) { |
|
92 | + if (true === in_array($this->numeroncf, ['', null])) { |
|
93 | 93 | $ncfrango = new NCFRango(); |
94 | 94 | $ncfRangoToUse = $ncfrango->getByTipoComprobante($actualCliente->idempresa, $tipocomprobante); |
95 | 95 | if (!$ncfRangoToUse) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | //Verificamos si $this->tipoComprobante es una nota de crédito o debito |
108 | - $arrayNCFTypes = ['03','04']; |
|
108 | + $arrayNCFTypes = ['03', '04']; |
|
109 | 109 | if (in_array($this->tipocomprobante, $arrayNCFTypes) === true) { |
110 | 110 | $this->ncftipoanulacion = $_REQUEST['ncftipoanulacionr'] ?? $this->ncftipoanulacion; |
111 | 111 | $this->ncffechavencimiento = $_REQUEST['ncffechavencimientor'] ?? $this->ncffechavencimiento; |
@@ -118,11 +118,11 @@ discard block |
||
118 | 118 | |
119 | 119 | public function all(): Closure |
120 | 120 | { |
121 | - return function () { |
|
121 | + return function() { |
|
122 | 122 | $this->facturarectnumero2 = ''; |
123 | 123 | if ($this->idfacturarect !== '') { |
124 | 124 | $facturaRectificativa = $this->get($this->idfacturarect); |
125 | - $this->loadFromData(['facturarectnumero2' => 'SI' ]); |
|
125 | + $this->loadFromData(['facturarectnumero2' => 'SI']); |
|
126 | 126 | $this->facturarectnumero2 = $facturaRectificativa->numero2; |
127 | 127 | } else { |
128 | 128 | $this->loadFromData(['facturarectnumero2' => 'NO HAY']); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | public function descripcionTipoComprobante(): Closure |
135 | 135 | { |
136 | - return function () { |
|
136 | + return function() { |
|
137 | 137 | $ncftipocomprobante = new NCFTipo(); |
138 | 138 | $ncftipocomprobante->loadFromCode($this->tipocomprobante); |
139 | 139 | return $ncftipocomprobante->descripcion; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | protected function cleanRefundData() |
143 | 143 | { |
144 | - return function () { |
|
144 | + return function() { |
|
145 | 145 | $this->numeroncf = ''; |
146 | 146 | $this->tipocomprobante = null; |
147 | 147 | $this->ncffechavencimiento = null; |