projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rerun
[fa-stable.git]
/
reporting
/
rep707.php
diff --git
a/reporting/rep707.php
b/reporting/rep707.php
index 0fa067a3993b667f7050bb1a7ad24cbb7233480c..14112f24bd5674f1e1ad7e9567397a6671d62901 100644
(file)
--- a/
reporting/rep707.php
+++ b/
reporting/rep707.php
@@
-156,23
+156,26
@@
function print_profit_and_loss_statement()
{
$dimension = $_POST['PARAM_3'];
$dimension2 = $_POST['PARAM_4'];
{
$dimension = $_POST['PARAM_3'];
$dimension2 = $_POST['PARAM_4'];
+ $decimals = $_POST['PARAM_5'];
+ $graphics = $_POST['PARAM_6'];
+ $comments = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
+ }
+ else if ($dim == 1)
+ {
+ $dimension = $_POST['PARAM_3'];
+ $decimals = $_POST['PARAM_4'];
$graphics = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
$destination = $_POST['PARAM_7'];
}
$graphics = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
$destination = $_POST['PARAM_7'];
}
- else
if ($dim == 1)
+ else
{
{
- $d
imension
= $_POST['PARAM_3'];
+ $d
ecimals
= $_POST['PARAM_3'];
$graphics = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
$destination = $_POST['PARAM_6'];
}
$graphics = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
$destination = $_POST['PARAM_6'];
}
- else
- {
- $graphics = $_POST['PARAM_3'];
- $comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
- }
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
@@
-182,7
+185,10
@@
function print_profit_and_loss_statement()
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
$pg = new graph();
}
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
$pg = new graph();
}
- $dec = 0;
+ if (!$decimals)
+ $dec = 0;
+ else
+ $dec = user_price_dec();
$pdec = user_percent_dec();
$cols = array(0, 50, 200, 350, 425, 500);
$pdec = user_percent_dec();
$cols = array(0, 50, 200, 350, 425, 500);