summaryrefslogtreecommitdiff
path: root/bin/lib/OsikaEvaluator.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2013-09-15 14:58:03 +0200
committeremkael <emkael@tlen.pl>2013-09-15 14:58:03 +0200
commita99b287afc2f30f3dd8af001702af893d52c8bd1 (patch)
treebd9c717918c0ab9bdcde566f351416eaa01e20e6 /bin/lib/OsikaEvaluator.php
parentc6f4409f7d2052f384f07e894394481a703e7369 (diff)
* dodanie pola sumy częściowej lew honorowych
Diffstat (limited to 'bin/lib/OsikaEvaluator.php')
-rw-r--r--bin/lib/OsikaEvaluator.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/lib/OsikaEvaluator.php b/bin/lib/OsikaEvaluator.php
index e3a7543..e373536 100644
--- a/bin/lib/OsikaEvaluator.php
+++ b/bin/lib/OsikaEvaluator.php
@@ -256,18 +256,24 @@ class OsikaEvaluator {
$result['l10n'] = array('total' => $this->_localizationCorrections($result, $distribution));
$subtotal = array();
+ $lhSubtotal = array();
$total = 0;
foreach ($result as $category => $factor) {
if (count($factor) === 5) {
foreach ($factor as $index => $subt) {
if (!isset($subtotal[$index])) {
$subtotal[$index] = 0;
+ $lhSubtotal[$index] = 0;
}
$subtotal[$index] += $subt;
+ if ($category !== 'lu') {
+ $lhSubtotal[$index] += $subt;
+ }
}
}
$total += $factor['total'];
}
+ $result['lh_subtotal'] = $lhSubtotal;
$result['subtotal'] = $subtotal;
$result['total'] = array('total' => $total);