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")
{