X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep701.php;h=63c90c39ede42b88b85206d4c4224389b1e33793;hb=8429c2d2e1500cd879e084335391615e79fc3da3;hp=12bea194cccc7c882f880bb5838641a37a1a4f83;hpb=b506d68d066badbfee8496f31bc0219f697c6f1a;p=fa-stable.git diff --git a/reporting/rep701.php b/reporting/rep701.php index 12bea194..63c90c39 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -25,7 +25,6 @@ include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_Chart_of_Accounts(); //---------------------------------------------------------------------------------------------------- @@ -37,16 +36,11 @@ function print_Chart_of_Accounts() $showbalance = $_POST['PARAM_0']; $comments = $_POST['PARAM_1']; $destination = $_POST['PARAM_2']; - if (isset($destination) && $destination) - { + if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "ChartOfAccounts.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "ChartOfAccounts.pdf"; - } + $dec = 0; $cols = array(0, 50, 300, 425, 500); @@ -57,7 +51,7 @@ function print_Chart_of_Accounts() $params = array(0 => $comments); - $rep = new FrontReport(_('Chart of Accounts'), $filename, user_pagesize()); + $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);