X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep704.php;h=1703ed0a81762b1696ba698c12d3cee3dcd3407d;hb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;hp=e8063a82a1d7174284d1355ee1ff08c713e64235;hpb=c2d46f57e3b3becc9dceaa02a43cf85fd8c8789a;p=fa-stable.git diff --git a/reporting/rep704.php b/reporting/rep704.php index e8063a82..1703ed0a 100644 --- a/reporting/rep704.php +++ b/reporting/rep704.php @@ -46,25 +46,29 @@ function print_GL_transactions() $dimension = $_POST['PARAM_4']; $dimension2 = $_POST['PARAM_5']; $comments = $_POST['PARAM_6']; - $destination = $_POST['PARAM_7']; + $orientation = $_POST['PARAM_7']; + $destination = $_POST['PARAM_8']; } else if ($dim == 1) { $dimension = $_POST['PARAM_4']; $comments = $_POST['PARAM_5']; - $destination = $_POST['PARAM_6']; + $orientation = $_POST['PARAM_6']; + $destination = $_POST['PARAM_7']; } else { $comments = $_POST['PARAM_4']; - $destination = $_POST['PARAM_5']; + $orientation = $_POST['PARAM_5']; + $destination = $_POST['PARAM_6']; } if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); + $orientation = ($orientation ? 'L' : 'P'); - $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions", user_pagesize()); + $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions", user_pagesize(), 9, $orientation); $dec = user_price_dec(); //$cols = array(0, 80, 100, 150, 210, 280, 340, 400, 450, 510, 570); @@ -109,6 +113,8 @@ function print_GL_transactions() 1 => array('text' => _('Period'), 'from' => $from, 'to' => $to), 2 => array('text' => _('Accounts'),'from' => $fromacc,'to' => $toacc)); } + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); @@ -195,4 +201,3 @@ function print_GL_transactions() $rep->End(); } -?> \ No newline at end of file