Update web view

This commit is contained in:
Grégory Soutadé
2010-11-05 19:01:23 +01:00
parent 457bb7941a
commit 27b5740b5c
2 changed files with 4 additions and 7 deletions

View File

@@ -107,15 +107,12 @@ while($operation = $operations->fetchArray())
if ($date <= $cur_date)
$accounts[$operation["account"]]["cur"] += $operation["amount"];
if ($operation["transfert"] != "" && ($operation["amount"] < 0
|| $_SESSION["user"]->IsAccountBlocked($operation["account"])))
if (!($operation["transfert"] == "" || ($operation["amount"] > 0 && $_SESSION["user"]->IsAccountBlocked($operation["account"]))))
continue;
if ($operation["transfert"] != "")
{
$operation["amount"] = -$operation["amount"];
}
if ($operation["amount"] < 0)
{