$input = tally ($dbh, "Einnahmen", $where . "price > 0.0");
if (strlen($_POST[year])) {
- $foo = $input["tax"] - $output["tax"];
- printf ("<p>Summe Steuern: %.2f", $foo);
- if ($foo > 0)
- echo (" (<strong>Nachzahlung</strong>)");
- elseif ($foo < 0)
- echo (" (<strong>Rückzahlung</strong>)");
- printf ("<br>Summe netto: %.2f", $input["netto"] - $output["netto"]);
- $foo = $input["brutto"] - $output["brutto"];
- printf ("<br>Summe brutto: %.2f</p>", $foo);
- if ($foo > 0)
- echo (" (<strong>Gewinn</strong>)");
- elseif ($foo < 0)
- echo (" (<strong>Verlust</strong>)");
+ $foo = $input["tax"] - $output["tax"];
+ printf ("<p>Summe Steuern: %.2f", $foo);
+ if ($foo > 0)
+ echo (" (<strong>Nachzahlung</strong>)");
+ elseif ($foo < 0)
+ echo (" (<strong>Rückzahlung</strong>)");
+ printf ("<br>Summe netto: %.2f", $input["netto"] - $output["netto"]);
+ $foo = $input["brutto"] - $output["brutto"];
+ printf ("<br>Summe brutto: %.2f</p>", $foo);
+ if ($foo > 0)
+ echo (" (<strong>Gewinn</strong>)");
+ elseif ($foo < 0)
+ echo (" (<strong>Verlust</strong>)");
}
}