src/Intraface/modules/accounting/Account.php 1 location
|
@@ 508-513 (lines=6) @@
|
505 |
|
AND intranet_id = " . $this->year->kernel->intranet->get('id'); |
506 |
|
$db2->query($sql); |
507 |
|
$total = 0; |
508 |
|
while ($db2->nextRecord()) { |
509 |
|
// $sub = 0; |
510 |
|
$sAccount = new Account($this->year, $db2->f('id')); |
511 |
|
$sAccount->getSaldo(); |
512 |
|
$total = $total + $sAccount->get('saldo'); |
513 |
|
} |
514 |
|
$this->value['saldo'] = $total; |
515 |
|
$total_saldo = $total_saldo + $total; |
516 |
|
} else { |
src/Intraface/modules/accounting/Year.php 1 location
|
@@ 784-795 (lines=12) @@
|
781 |
|
AND account.year_id = ".$this->get('id')." |
782 |
|
ORDER BY account.number ASC"); |
783 |
|
$i = 0; |
784 |
|
while ($db->nextRecord()) { |
785 |
|
$account = new Account($this, $db->f('id')); |
786 |
|
|
787 |
|
# ikke sum konti |
788 |
|
if ($account->get('type_key') == array_search('sum', $account->types)) { |
789 |
|
continue; |
790 |
|
} |
791 |
|
|
792 |
|
$account->getSaldo(); |
793 |
|
|
794 |
|
$i++; |
795 |
|
} |
796 |
|
|
797 |
|
// HACK midlertidigt hack round() indtil alle beløb er integers i stedet for floats |
798 |
|
if (round($this->value['year_saldo']) == 0) { |