@@ -173,6 +173,9 @@ |
||
| 173 | 173 | . '<h1>' . $this->tApp->gettext('i18n_ApplicationName') . '</h1>'; |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $labelId |
|
| 178 | + */ |
|
| 176 | 179 | private function setLabel($labelId) |
| 177 | 180 | { |
| 178 | 181 | $labelInfo = $this->appFlags['FI'][$labelId]['Label']; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | 'class' => 'labelS', |
| 150 | 150 | 'style' => 'color:#000;', |
| 151 | 151 | ]; |
| 152 | - $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 152 | + $fieldsStyled = $this->buildArrayOfFieldsStyled(); |
|
| 153 | 153 | if (array_key_exists($text, $fieldsStyled)) { |
| 154 | 154 | $defaultCellStyle['style'] = $this->buildStyleForCellFormat($fieldsStyled[$text]); |
| 155 | 155 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $sReturn = ''; |
| 180 | 180 | if (is_array($labelInfo)) { |
| 181 | 181 | if (count($labelInfo) == 3) { |
| 182 | - $pieces = [ |
|
| 182 | + $pieces = [ |
|
| 183 | 183 | $this->tApp->gettext($labelInfo[0]), |
| 184 | 184 | $this->tApp->gettext($labelInfo[1]), |
| 185 | 185 | ]; |
@@ -56,6 +56,9 @@ discard block |
||
| 56 | 56 | echo $this->setFooterHtml($interfaceElements['Application']); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param double $lngBase |
|
| 61 | + */ |
|
| 59 | 62 | private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings) |
| 60 | 63 | { |
| 61 | 64 | $rest = $lngBase - array_sum($aryDeductions); |
@@ -82,6 +85,9 @@ discard block |
||
| 82 | 85 | ]; |
| 83 | 86 | } |
| 84 | 87 | |
| 88 | + /** |
|
| 89 | + * @param double $lngBase |
|
| 90 | + */ |
|
| 85 | 91 | private function getValues($lngBase, $aStngs, $shLabels) |
| 86 | 92 | { |
| 87 | 93 | $inDate = $this->tCmnSuperGlobals->get('ym'); |
@@ -103,6 +109,9 @@ discard block |
||
| 103 | 109 | return $aReturn; |
| 104 | 110 | } |
| 105 | 111 | |
| 112 | + /** |
|
| 113 | + * @param integer $wkDay |
|
| 114 | + */ |
|
| 106 | 115 | private function getValuesPrimary($inDate, $wkDay, $lngBase, $aStngs, $shLbl) |
| 107 | 116 | { |
| 108 | 117 | $nMealDays = ($wkDay - $this->tCmnSuperGlobals->get('zfb')); |
@@ -159,6 +168,11 @@ discard block |
||
| 159 | 168 | return $sReturn; |
| 160 | 169 | } |
| 161 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $inName |
|
| 173 | + * @param integer $inSize |
|
| 174 | + * @param string $inAfterLabel |
|
| 175 | + */ |
|
| 162 | 176 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
| 163 | 177 | { |
| 164 | 178 | $inputParameters = [ |
@@ -171,6 +185,9 @@ discard block |
||
| 171 | 185 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
| 172 | 186 | } |
| 173 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string $configPath |
|
| 190 | + */ |
|
| 174 | 191 | private function setFormOutput($configPath, $shLabels) |
| 175 | 192 | { |
| 176 | 193 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -232,6 +249,9 @@ discard block |
||
| 232 | 249 | ]); |
| 233 | 250 | } |
| 234 | 251 | |
| 252 | + /** |
|
| 253 | + * @param string $text |
|
| 254 | + */ |
|
| 235 | 255 | private function setFormRow($text, $value, $type = 'amount') |
| 236 | 256 | { |
| 237 | 257 | $defaultCellStyle = $this->setFormatRow($text, $value); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $sReturn[] = $this->setFormRow(sprintf($ovTime['m'], $ovTime[1], '175%'), ($ovTimeVal['os175'] * pow(10, 4))); |
| 197 | 197 | $sReturn[] = $this->setFormRow(sprintf($ovTime['m'], $ovTime[2], '200%'), ($ovTimeVal['os200'] * pow(10, 4))); |
| 198 | 198 | $sReturn[] = $this->setFormRow($this->setLabel('sb'), $brut); |
| 199 | - $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
| 199 | + $brut += $this->tCmnSuperGlobals->get('afet') * pow(10, 4); |
|
| 200 | 200 | $amount = $this->getValues($brut, $aryStngs, $shLabels); |
| 201 | 201 | $sReturn[] = $this->setFormRow($this->setLabel('cas'), $amount['cas']); |
| 202 | 202 | $sReturn[] = $this->setFormRow($this->setLabel('somaj'), $amount['somaj']); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | private function setFormRowAmount($value, $defaultCellStyle) |
| 255 | 255 | { |
| 256 | - $cellValue = []; |
|
| 256 | + $cellValue = []; |
|
| 257 | 257 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 258 | 258 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
| 259 | 259 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |