@@ -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']); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $this->tCmnSuperGlobals->request->get('pc'), |
130 | 130 | ]; |
131 | 131 | $this->tCmnSuperGlobals->request->set('wkDays', $this->setWorkingDaysInMonth($components[0], $components[1])); |
132 | - $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
132 | + $vDays = $this->tCmnSuperGlobals->request->get('wkDays') - $this->tCmnSuperGlobals->request->get('zfb'); |
|
133 | 133 | $this->tCmnSuperGlobals->request->set('nDays', max($vDays, 0)); |
134 | 134 | } |
135 | 135 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $sReturn[] = $this->setFormRowTwoLabels(sprintf($ovTime['m'], $ovTime[2]), '<span style="font-size:smaller;">' |
222 | 222 | . $ovTime['o2'] . 'h x 200%</span>', $ovTime[22]); |
223 | 223 | $sReturn[] = $this->setFormRowTwoLabels($this->setLabel('sb'), ' ', $brut); |
224 | - $brut += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4); |
|
224 | + $brut += $this->tCmnSuperGlobals->request->get('afet') * pow(10, 4); |
|
225 | 225 | $amount = $this->getValues($brut, $aryStngs, $shLabels); |
226 | 226 | $casValue = $this->txLvl['cas']; |
227 | 227 | $sReturn[] = $this->setFormRowTwoLabels($this->setLabel('cas'), $this->txLvl['casP'] . '%', $casValue); |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | |
298 | 298 | private function setFormRowAmount($value, $defaultCellStyle) |
299 | 299 | { |
300 | - $cellValue = []; |
|
300 | + $cellValue = []; |
|
301 | 301 | $defaultCellStyle['style'] .= 'text-align:right;'; |
302 | 302 | foreach ($this->currencyDetails['CX'] as $key2 => $value2) { |
303 | 303 | $fmt = new \NumberFormatter($value2['locale'], \NumberFormatter::CURRENCY); |
@@ -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'); |
@@ -174,6 +180,11 @@ discard block |
||
174 | 180 | return $sReturn; |
175 | 181 | } |
176 | 182 | |
183 | + /** |
|
184 | + * @param string $inName |
|
185 | + * @param integer $inSize |
|
186 | + * @param string $inAfterLabel |
|
187 | + */ |
|
177 | 188 | private function setFormInputText($inName, $inSize, $inAfterLabel) |
178 | 189 | { |
179 | 190 | $inputParameters = [ |
@@ -186,6 +197,9 @@ discard block |
||
186 | 197 | return $this->setStringIntoShortTag('input', $inputParameters) . ' ' . $inAfterLabel; |
187 | 198 | } |
188 | 199 | |
200 | + /** |
|
201 | + * @param string $configPath |
|
202 | + */ |
|
189 | 203 | private function setFormOutput($configPath, $shLabels) |
190 | 204 | { |
191 | 205 | $aryStngs = $this->readTypeFromJsonFileUniversal($configPath, 'valuesToCompute'); |
@@ -265,6 +279,9 @@ discard block |
||
265 | 279 | return implode('', $sReturn) . '</tr></thead></tbody>'; |
266 | 280 | } |
267 | 281 | |
282 | + /** |
|
283 | + * @param double $brut |
|
284 | + */ |
|
268 | 285 | private function setFormOutputTaxations($brut, $amnt) |
269 | 286 | { |
270 | 287 | $limitDisplayBase = false; |
@@ -320,6 +337,10 @@ discard block |
||
320 | 337 | return implode('', $cellValue); |
321 | 338 | } |
322 | 339 | |
340 | + /** |
|
341 | + * @param string $text1 |
|
342 | + * @param string $text2 |
|
343 | + */ |
|
323 | 344 | private function setFormRowTwoLabels($text1, $text2, $value) |
324 | 345 | { |
325 | 346 | return str_replace(':</td>', ':</td><td class="labelS" style="text-align:right;">' |