X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep601.php;h=66fbbf2abb8dffffd8e3eee0d3b5299c72e80947;hb=c4eae7a18f0eb824e6eda7be2ba6fa820e9e58c9;hp=7bbd8ef2aaed1cffe3c6d0ef763c02e8e01aa40f;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep601.php b/reporting/rep601.php index 7bbd8ef2..66fbbf2a 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -25,7 +25,6 @@ include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_bank_transactions(); //---------------------------------------------------------------------------------------------------- @@ -62,19 +61,12 @@ function print_bank_transactions() $to = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; $destination = $_POST['PARAM_4']; - if ($destination) - { include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "BankStatement.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "BankStatement.pdf"; - } - $rep = new FrontReport(_('Bank Statement'), $filename, user_pagesize()); + $rep = new FrontReport(_('Bank Statement'), "BankStatement", user_pagesize()); $dec = user_price_dec(); $cols = array(0, 90, 110, 170, 225, 350, 400, 460, 520);