From dca465c21a7b16f37558a9bef8f8c2fedb7b7bf4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Oct 2010 09:21:00 +0200 Subject: [PATCH] * Update web view to ignore meta operations * Update submit button's names (web view) --- www/index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/www/index.php b/www/index.php index d05ce66..ce59bf0 100644 --- a/www/index.php +++ b/www/index.php @@ -60,7 +60,7 @@ if (!isset($_SESSION["user"])) echo "\n"; echo "

\n"; echo "Password :

\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "

\n"; echo "
KissCount © 2010 Grégory Soutadé
\n"; @@ -92,6 +92,8 @@ $total_incomes = $total_outcomes = $cur_incomes = $cur_outcomes = 0; while($operation = $operations->fetchArray()) { + if ($operation["transfert"] != "" || $operation["meta"] == "1") continue; + $date = mktime(0, 0, 0, $operation["month"]+1, $operation["day"]+1, $operation["year"]); $accounts[$operation["account"]]["total"] += $operation["amount"]; @@ -99,8 +101,6 @@ while($operation = $operations->fetchArray()) if ($date <= $cur_date) $accounts[$operation["account"]]["cur"] += $operation["amount"]; - if ($operation["transfert"] != "") continue; - if ($operation["amount"] < 0) { $categories[$operation["category"]] -= $operation["amount"]; @@ -162,7 +162,7 @@ function changeMonths() } ?> - + Disconnect

@@ -197,6 +197,8 @@ function changeMonths() $operations = LoadMonth($_SESSION["user"], $_SESSION["cur_month"], $_SESSION["cur_year"]); while($operation = $operations->fetchArray()) { + if ($operation["meta"] == "1") continue; + $category = $_SESSION["user"]->GetCategory($operation["category"]); if ($operation["fix_cost"] == "0") {