Fixes for statement

This commit is contained in:
Deon George
2014-02-18 14:51:29 +11:00
parent 06cbec3a94
commit e2b84fc063
3 changed files with 51 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ class Controller_Reseller_Statement extends Controller_Statement {
$result[$key] = $o;
$total += Currency::round($o->total());
$total -= Currency::round($o->total());
}
foreach ($ao->invoice->list_active() as $o) {
@@ -62,7 +62,7 @@ class Controller_Reseller_Statement extends Controller_Statement {
$result[$key] = $o;
$total -= Currency::round($o->total());
$total += Currency::round($o->total());
}
krsort($result);

View File

@@ -29,7 +29,7 @@ class Controller_User_Statement extends Controller_Statement {
$result[$key] = $o;
$total += Currency::round($o->total());
$total -= Currency::round($o->total());
}
foreach ($this->ao->invoice->list_active() as $o) {
@@ -40,7 +40,7 @@ class Controller_User_Statement extends Controller_Statement {
$result[$key] = $o;
$total -= Currency::round($o->total());
$total += Currency::round($o->total());
}
krsort($result);