4242class EditRegularizacionImpuesto extends EditController
4343{
4444 /** @var float */
45- public $ purchases ;
45+ public float $ purchases ;
4646
4747 /** @var float */
48- public $ sales ;
48+ public float $ sales ;
4949
5050 /** @var float */
51- public $ total ;
51+ public float $ total ;
5252
5353 /** @var array */
5454 public array $ modelo303 = [];
@@ -63,7 +63,7 @@ public function getPageData(): array
6363 $ data = parent ::getPageData ();
6464 $ data ['menu ' ] = 'reports ' ;
6565 $ data ['title ' ] = 'model-303-390 ' ;
66- $ data ['icon ' ] = 'fas fa-balance-scale-right ' ;
66+ $ data ['icon ' ] = 'fa-solid fa-balance-scale-right ' ;
6767 return $ data ;
6868 }
6969
@@ -97,7 +97,7 @@ protected function createAccountingEntryAction(): void
9797 {
9898 $ reg = new RegularizacionImpuesto ();
9999 $ code = $ this ->request ->get ('code ' );
100- if (false === $ reg ->loadFromCode ($ code )) {
100+ if (false === $ reg ->load ($ code )) {
101101 Tools::log ()->warning ('record-not-found ' );
102102 return ;
103103 }
@@ -126,7 +126,7 @@ protected function createAccountingEntryAction(): void
126126 /**
127127 * Add the view set.
128128 */
129- protected function createViews ()
129+ protected function createViews (): void
130130 {
131131 parent ::createViews ();
132132 $ this ->setTabsPosition ('bottom ' );
@@ -137,7 +137,7 @@ protected function createViews()
137137
138138 protected function createViewsEntryLine (string $ viewName = 'ListPartida ' ): void
139139 {
140- $ this ->addListView ($ viewName , 'Partida ' , 'accounting-entry ' , 'fas fa-balance-scale ' );
140+ $ this ->addListView ($ viewName , 'Partida ' , 'accounting-entry ' , 'fa-solid fa-balance-scale ' );
141141 $ this ->disableButtons ($ viewName , true );
142142 }
143143
@@ -154,7 +154,7 @@ protected function createViewsTaxLine(string $viewName, string $caption, string
154154
155155 protected function createViewsTaxSummary (string $ viewName = 'ListPartidaImpuestoResumen ' ): void
156156 {
157- $ this ->addHtmlView ($ viewName , 'Modelo303 ' , 'Impuesto ' , 'summary ' , 'fas fa-list-alt ' );
157+ $ this ->addHtmlView ($ viewName , 'Modelo303 ' , 'Impuesto ' , 'summary ' , 'fa-solid fa-list-alt ' );
158158 $ this ->disableButtons ($ viewName );
159159 }
160160
@@ -173,7 +173,7 @@ protected function disableButtons(string $viewName, bool $clickable = false): vo
173173 *
174174 * @return bool
175175 */
176- protected function execPreviousAction ($ action )
176+ protected function execPreviousAction ($ action ): bool
177177 {
178178 switch ($ action ) {
179179 case 'create-accounting-entry ' :
@@ -184,7 +184,7 @@ protected function execPreviousAction($action)
184184 return parent ::execPreviousAction ($ action );
185185 }
186186
187- protected function exportAction ()
187+ protected function exportAction (): void
188188 {
189189 $ this ->exportManager ->setOrientation ('landscape ' );
190190 parent ::exportAction ();
@@ -227,7 +227,7 @@ protected function getListPartidaImpuestoResumen(BaseView $view): void
227227 new DataBaseWhere ('codejercicio ' , $ this ->getModel ()->codejercicio ),
228228 new DataBaseWhere ('fecha ' , $ this ->getModel ()->fechainicio , '>= ' ),
229229 new DataBaseWhere ('fecha ' , $ this ->getModel ()->fechafin , '< ' ),
230- ], [], 0 , 0 );
230+ ]);
231231 $ idsAsientos = array_unique (array_column ($ asientos , Asiento::primaryColumn ()));
232232
233233 if (empty ($ idsAsientos )) {
@@ -238,7 +238,7 @@ protected function getListPartidaImpuestoResumen(BaseView $view): void
238238 $ partidas = Partida::all ([
239239 new DataBaseWhere ('idasiento ' , $ idsAsientos , 'IN ' ),
240240 new DataBaseWhere ('codsubcuenta ' , $ subcuentas , 'IN ' )
241- ], [], 0 , 0 );
241+ ]);
242242
243243 // agrupamos por subcuenta
244244 $ partidasAgrupadas = [];
@@ -390,7 +390,7 @@ protected function getPartidaImpuestoWhere(int $group): array
390390
391391 // obtenemos todos los ids de los asientos de las regularizaciones
392392 $ ids = [];
393- foreach (RegularizacionImpuesto::all ([], [], 0 , 0 ) as $ reg ) {
393+ foreach (RegularizacionImpuesto::all () as $ reg ) {
394394 if ($ reg ->idasiento ) {
395395 $ ids [] = $ reg ->idasiento ;
396396 }
@@ -408,7 +408,7 @@ protected function getPartidaImpuestoWhere(int $group): array
408408 * @param string $viewName
409409 * @param BaseView $view
410410 */
411- protected function loadData ($ viewName , $ view )
411+ protected function loadData ($ viewName , $ view ): void
412412 {
413413 switch ($ viewName ) {
414414 case 'EditRegularizacionImpuesto ' :
@@ -446,7 +446,7 @@ protected function setCreateAcEntryButton(string $viewName): void
446446 'action ' => 'create-accounting-entry ' ,
447447 'color ' => 'success ' ,
448448 'confirm ' => true ,
449- 'icon ' => 'fas fa-balance-scale ' ,
449+ 'icon ' => 'fa-solid fa-balance-scale ' ,
450450 'label ' => 'create-accounting-entry ' ,
451451 'row ' => 'actions '
452452 ]);
0 commit comments