@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | echo $this->setFooterHtml($interfaceElements['Application']); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param double $lngBase |
|
| 63 | + */ |
|
| 61 | 64 | private function getIncomeTaxValue($inDate, $lngBase, $vBA, $aryDeductions, $arySettings) |
| 62 | 65 | { |
| 63 | 66 | $rest = $lngBase - array_sum($aryDeductions); |
@@ -84,6 +87,9 @@ discard block |
||
| 84 | 87 | ]; |
| 85 | 88 | } |
| 86 | 89 | |
| 90 | + /** |
|
| 91 | + * @param double $lngBase |
|
| 92 | + */ |
|
| 87 | 93 | private function getValues($lngBase, $aStngs, $shLabels) |
| 88 | 94 | { |
| 89 | 95 | $inDate = $this->tCmnSuperGlobals->request->get('ym'); |
@@ -173,6 +179,11 @@ discard block |
||
| 173 | 179 | return $sReturn; |
| 174 | 180 | } |
| 175 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $inName |
|
| 184 | + * @param integer $inSize |
|
| 185 | + * @param string $inAfterLabel |
|
| 186 | + */ |
|
| 176 | 187 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
| 177 | 188 | { |
| 178 | 189 | $inputParameters = [ |
@@ -185,6 +196,9 @@ discard block |
||
| 185 | 196 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
| 186 | 197 | } |
| 187 | 198 | |
| 199 | + /** |
|
| 200 | + * @param string $configPath |
|
| 201 | + */ |
|
| 188 | 202 | private function setFormOutput($configPath, $shLabels) |
| 189 | 203 | { |
| 190 | 204 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -239,6 +253,9 @@ discard block |
||
| 239 | 253 | ]); |
| 240 | 254 | } |
| 241 | 255 | |
| 256 | + /** |
|
| 257 | + * @param double $amntLAA |
|
| 258 | + */ |
|
| 242 | 259 | private function setFormOutputBonuses($snValue, $wkDays, $amntLAA, $ovTimeVal) |
| 243 | 260 | { |
| 244 | 261 | $sRt = []; |
@@ -281,6 +298,9 @@ discard block |
||
| 281 | 298 | return implode('', $sReturn) . '</tr></thead></tbody>'; |
| 282 | 299 | } |
| 283 | 300 | |
| 301 | + /** |
|
| 302 | + * @param double $brut |
|
| 303 | + */ |
|
| 284 | 304 | private function setFormOutputTaxations($brut, $amnt) |
| 285 | 305 | { |
| 286 | 306 | $sRn = []; |
@@ -332,6 +352,10 @@ discard block |
||
| 332 | 352 | return implode('', $cellValue); |
| 333 | 353 | } |
| 334 | 354 | |
| 355 | + /** |
|
| 356 | + * @param string $text1 |
|
| 357 | + * @param string $text2 |
|
| 358 | + */ |
|
| 335 | 359 | private function setFrmRowTwoLbls($text1, $text2, $value) |
| 336 | 360 | { |
| 337 | 361 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->initializeSprGlbAndSession(); |
| 51 | 51 | $this->handleLocalizationSalariu($interfaceElements['Application']); |
| 52 | 52 | echo $this->setHeaderHtml(); |
| 53 | - $ymValues = $this->buildYMvalues(); |
|
| 53 | + $ymValues = $this->buildYMvalues(); |
|
| 54 | 54 | $this->processFormInputDefaults($this->tCmnSuperGlobals, $interfaceElements['Values Filter Rules'], $ymValues); |
| 55 | 55 | echo $this->setFormInput($ymValues); |
| 56 | 56 | $this->setExchangeRateValues($interfaceElements['Application'], $interfaceElements['Relevant Currencies']); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $this->tCmnSuperGlobals->request->get('pc'), |
| 128 | 128 | ]; |
| 129 | 129 | $this->tCmnSuperGlobals->request->set('wkDays', $this->setWorkingDaysInMonth($components[0], $components[1])); |
| 130 | - $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
| 130 | + $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
| 131 | 131 | $this->tCmnSuperGlobals->request->set('nDays', max($vDays, 0)); |
| 132 | 132 | } |
| 133 | 133 | |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | |
| 322 | 322 | private function setFormRowAmount($value, $defaultCellStyle) |
| 323 | 323 | { |
| 324 | - $cellValue = []; |
|
| 324 | + $cellValue = []; |
|
| 325 | 325 | $defaultCellStyle['style'] .= 'text-align:right;'; |
| 326 | 326 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
| 327 | 327 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |