@@ -72,7 +72,7 @@ public function getPageData(): array
7272 *
7373 * @param PartidaImpuestoResumen[] $data
7474 */
75- protected function calculateAmounts (array $ data )
75+ protected function calculateAmounts (array $ data ): void
7676 {
7777 // Init totals values
7878 $ this ->sales = 0.0 ;
@@ -93,7 +93,7 @@ protected function calculateAmounts(array $data)
9393 $ this ->total = $ this ->sales - $ this ->purchases ;
9494 }
9595
96- protected function createAccountingEntryAction ()
96+ protected function createAccountingEntryAction (): void
9797 {
9898 $ reg = new RegularizacionImpuesto ();
9999 $ code = $ this ->request ->get ('code ' );
@@ -135,13 +135,13 @@ protected function createViews()
135135 $ this ->createViewsEntryLine ();
136136 }
137137
138- protected function createViewsEntryLine (string $ viewName = 'ListPartida ' )
138+ protected function createViewsEntryLine (string $ viewName = 'ListPartida ' ): void
139139 {
140140 $ this ->addListView ($ viewName , 'Partida ' , 'accounting-entry ' , 'fas fa-balance-scale ' );
141141 $ this ->disableButtons ($ viewName , true );
142142 }
143143
144- protected function createViewsTaxLine (string $ viewName , string $ caption , string $ icon )
144+ protected function createViewsTaxLine (string $ viewName , string $ caption , string $ icon ): void
145145 {
146146 $ this ->addListView ($ viewName , 'Join\PartidaImpuesto ' , $ caption , $ icon )
147147 ->addSearchFields (['partidas.concepto ' ])
@@ -152,13 +152,13 @@ protected function createViewsTaxLine(string $viewName, string $caption, string
152152 $ this ->disableButtons ($ viewName );
153153 }
154154
155- protected function createViewsTaxSummary (string $ viewName = 'ListPartidaImpuestoResumen ' )
155+ protected function createViewsTaxSummary (string $ viewName = 'ListPartidaImpuestoResumen ' ): void
156156 {
157157 $ this ->addHtmlView ($ viewName , 'Modelo303 ' , 'Impuesto ' , 'summary ' , 'fas fa-list-alt ' );
158158 $ this ->disableButtons ($ viewName );
159159 }
160160
161- protected function disableButtons (string $ viewName , bool $ clickable = false )
161+ protected function disableButtons (string $ viewName , bool $ clickable = false ): void
162162 {
163163 $ this ->setSettings ($ viewName , 'btnDelete ' , false );
164164 $ this ->setSettings ($ viewName , 'btnNew ' , false );
@@ -190,7 +190,7 @@ protected function exportAction()
190190 parent ::exportAction ();
191191 }
192192
193- protected function getListPartida (BaseView $ view )
193+ protected function getListPartida (BaseView $ view ): void
194194 {
195195 $ idasiento = $ this ->getViewModelValue ('EditRegularizacionImpuesto ' , 'idasiento ' );
196196 if (!empty ($ idasiento )) {
@@ -199,7 +199,7 @@ protected function getListPartida(BaseView $view)
199199 }
200200 }
201201
202- protected function getListPartidaImpuesto (BaseView $ view , int $ group )
202+ protected function getListPartidaImpuesto (BaseView $ view , int $ group ): void
203203 {
204204 $ id = $ this ->getViewModelValue ($ this ->getMainViewName (), 'idregiva ' );
205205 if (!empty ($ id )) {
@@ -209,7 +209,7 @@ protected function getListPartidaImpuesto(BaseView $view, int $group)
209209 }
210210 }
211211
212- protected function getListPartidaImpuestoResumen (BaseView $ view )
212+ protected function getListPartidaImpuestoResumen (BaseView $ view ): void
213213 {
214214 $ impuestos = Impuestos::all ();
215215
@@ -219,8 +219,8 @@ protected function getListPartidaImpuestoResumen(BaseView $view)
219219 array_column ($ impuestos , 'codsubcuentasop ' ),
220220 ))));
221221
222- // obtenemos los asientos para poder filtrar
223- // por fecha. asi nos aseguramos que se filtra
222+ // Obtenemos los asientos para poder filtrar
223+ // por fecha. Asi nos aseguramos que se filtra
224224 // primero por fecha de devengo y si no existe
225225 // por fecha de factura
226226 $ asientos = Asiento::all ([
@@ -284,8 +284,8 @@ protected function getListPartidaImpuestoResumen(BaseView $view)
284284 '27 ' => 0.00 ,
285285 ];
286286
287- // obtenemos los codigos de subcuentas agrupados según tipo iva
288- // esto lo hacemos por si existen varios impuesto
287+ // obtenemos los códigos de subcuentas agrupados según tipo iva
288+ // esto lo hacemos por si existen varios impuestos
289289 // del mismo iva y distintas subcuentas
290290 $ subcuentasSegunIVA = [];
291291 foreach ($ impuestos as $ impuesto ) {
@@ -294,7 +294,7 @@ protected function getListPartidaImpuestoResumen(BaseView $view)
294294 }
295295
296296 // obtenemos los codigos de subcuentas agrupados según tipo recargo
297- // esto lo hacemos por si existen varios impuesto
297+ // esto lo hacemos por si existen varios impuestos
298298 // del mismo recargo y distintas subcuentas
299299 $ subcuentasSegunRecargo = [];
300300 foreach ($ impuestos as $ impuesto ) {
0 commit comments