X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep704.php;h=b584c97c529e1056070defe62127f08143f85577;hb=5dec41f0d87e407e1c9ffcb8eb63b92e4e471a9b;hp=192cc5230ea8eb1c1469d3ce5d8e645261f49266;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep704.php b/reporting/rep704.php index 192cc523..b584c97c 100644 --- a/reporting/rep704.php +++ b/reporting/rep704.php @@ -25,7 +25,6 @@ include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_GL_transactions(); //---------------------------------------------------------------------------------------------------- @@ -59,17 +58,12 @@ function print_GL_transactions() $comments = $_POST['PARAM_4']; $destination = $_POST['PARAM_5']; } - if (isset($destination) && $destination) - { + if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "GLAccountTransactions.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "GLAccountTransactions.pdf"; - } - $rep = new FrontReport(_('GL Account Transactions'), $filename, user_pagesize()); + + $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions", user_pagesize()); $dec = user_price_dec(); $cols = array(0, 70, 90, 140, 210, 280, 340, 400, 450, 510, 570);