X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep707.php;h=14112f24bd5674f1e1ad7e9567397a6671d62901;hb=508b54ee5cef13ac64f1532dfedfb7b242aa9077;hp=0fa067a3993b667f7050bb1a7ad24cbb7233480c;hpb=648933d504efd675f49e4e07942ebafb9492745d;p=fa-stable.git diff --git a/reporting/rep707.php b/reporting/rep707.php index 0fa067a3..14112f24 100644 --- 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']; + $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']; } - else if ($dim == 1) + else { - $dimension = $_POST['PARAM_3']; + $decimals = $_POST['PARAM_3']; $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 @@ -182,7 +185,10 @@ function print_profit_and_loss_statement() 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);