@@ -77,6 +77,9 @@ discard block |
||
| 77 | 77 | return implode(';', $sReturn) . ';'; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param double $lngBase |
|
| 82 | + */ |
|
| 80 | 83 | private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings) |
| 81 | 84 | { |
| 82 | 85 | $rest = $lngBase - array_sum($aryDeductions); |
@@ -103,6 +106,9 @@ discard block |
||
| 103 | 106 | ]; |
| 104 | 107 | } |
| 105 | 108 | |
| 109 | + /** |
|
| 110 | + * @param double $lngBase |
|
| 111 | + */ |
|
| 106 | 112 | private function getValues($lngBase, $aStngs) |
| 107 | 113 | { |
| 108 | 114 | $inDate = $this->tCmnSuperGlobals->get('ym'); |
@@ -273,6 +279,11 @@ discard block |
||
| 273 | 279 | return $this->setArrayToSelect($temp, $this->tCmnSuperGlobals->get('ym'), 'ym', ['size' => 1]); |
| 274 | 280 | } |
| 275 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $inName |
|
| 284 | + * @param integer $inSize |
|
| 285 | + * @param string $inAfterLabel |
|
| 286 | + */ |
|
| 276 | 287 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
| 277 | 288 | { |
| 278 | 289 | $inputParameters = [ |
@@ -285,6 +296,9 @@ discard block |
||
| 285 | 296 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
| 286 | 297 | } |
| 287 | 298 | |
| 299 | + /** |
|
| 300 | + * @param string $configPath |
|
| 301 | + */ |
|
| 288 | 302 | private function setFormOutput($configPath) |
| 289 | 303 | { |
| 290 | 304 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -351,6 +365,9 @@ discard block |
||
| 351 | 365 | ]), 'fieldset', ['style' => 'float: left;']); |
| 352 | 366 | } |
| 353 | 367 | |
| 368 | + /** |
|
| 369 | + * @param string $text |
|
| 370 | + */ |
|
| 354 | 371 | private function setFormRow($text, $value, $type = 'amount') |
| 355 | 372 | { |
| 356 | 373 | $defaultCellStyle = $this->setFormatRow($text, $value); |
@@ -413,6 +430,9 @@ discard block |
||
| 413 | 430 | . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>'; |
| 414 | 431 | } |
| 415 | 432 | |
| 433 | + /** |
|
| 434 | + * @param string $labelId |
|
| 435 | + */ |
|
| 416 | 436 | private function setLabel($labelId) |
| 417 | 437 | { |
| 418 | 438 | $labelInfo = $this->appFlags['FI'][$labelId]['Label']; |
@@ -431,6 +451,9 @@ discard block |
||
| 431 | 451 | return $this->setLabelSuffix($sReturn); |
| 432 | 452 | } |
| 433 | 453 | |
| 454 | + /** |
|
| 455 | + * @param string $text |
|
| 456 | + */ |
|
| 434 | 457 | private function setLabelSuffix($text) |
| 435 | 458 | { |
| 436 | 459 | $suffix = ''; |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $sReturn[] = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4))); |
| 314 | 314 | $sReturn[] = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4))); |
| 315 | 315 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_BruttoSalary'), $brut); |
| 316 | - $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
| 316 | + $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
| 317 | 317 | $amount = $this->getValues($brut, $aryStngs); |
| 318 | 318 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_PensionFund'), $amount['cas']); |
| 319 | 319 | $sReturn[] = $this->setFormRow($this->tApp->gettext('i18n_Form_Label_UnemploymentTax'), $amount['somaj']); |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | |
| 373 | 373 | private function setFormRowAmount($value, $defaultCellStyle) |
| 374 | 374 | { |
| 375 | - $cellValue = []; |
|
| 375 | + $cellValue = []; |
|
| 376 | 376 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 377 | 377 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
| 378 | 378 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | 'class' => 'labelS', |
| 390 | 390 | 'style' => 'color:#000;', |
| 391 | 391 | ]; |
| 392 | - $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 392 | + $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 393 | 393 | if (array_key_exists($text, $fieldsStyled)) { |
| 394 | 394 | $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]); |
| 395 | 395 | } |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | $sReturn = ''; |
| 420 | 420 | if (is_array($labelInfo)) { |
| 421 | 421 | if (count($labelInfo) == 3) { |
| 422 | - $pieces = [ |
|
| 422 | + $pieces = [ |
|
| 423 | 423 | $this->tApp->gettext($labelInfo[0]), |
| 424 | 424 | $this->tApp->gettext($labelInfo[1]), |
| 425 | 425 | ]; |