X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep708.php;h=17854bca712e68c4c90ea3c3d0fb54004c6f1d5f;hb=6a4d8e6c1e92ff1b8fc5abb3fae76fb1c1968550;hp=979ca2e1e4a45bffa0d9e871a8627e209f11b8b7;hpb=c2d46f57e3b3becc9dceaa02a43cf85fd8c8789a;p=fa-stable.git diff --git a/reporting/rep708.php b/reporting/rep708.php index 979ca2e1..17854bca 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -147,23 +147,27 @@ function print_trial_balance() $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'); $dec = user_price_dec(); $cols2 = array(0, 50, 190, 310, 430, 530); @@ -203,12 +207,16 @@ function print_trial_balance() 1 => array('text' => _('Period'),'from' => $from, 'to' => $to)); } - $rep = new FrontReport(_('Trial Balance'), "TrialBalance", user_pagesize()); - + $rep = new FrontReport(_('Trial Balance'), "TrialBalance", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + { + recalculate_cols($cols); + recalculate_cols($cols2); + } $rep->Font(); $rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2); $rep->NewPage(); - + $classresult = get_account_classes(false); while ($class = db_fetch($classresult)) { @@ -256,7 +264,7 @@ function print_trial_balance() else $rep->AmountCol(7, 8, abs($tbal), $dec); $rep->NewLine(); - + $rep->Line($rep->row + 10); if (($pbal = round2($pbal, $dec)) != 0.0 && $dimension == 0 && $dimension2 == 0) {