X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep114.php;h=d1cc7a36d0dcd8e1a572734263c139e4fea123bc;hb=refs%2Fheads%2Fphp7;hp=1b555d6c3b06bf7b178c166623be64427647272e;hpb=ca2b5ce02c108d54ce7d2e59b33c0edc6ca517c9;p=fa-stable.git diff --git a/reporting/rep114.php b/reporting/rep114.php index 1b555d6c..d1cc7a36 100644 --- a/reporting/rep114.php +++ b/reporting/rep114.php @@ -68,7 +68,8 @@ function print_sales_summary_report() $to = $_POST['PARAM_1']; $tax_id = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; - $destination = $_POST['PARAM_4']; + $orientation = $_POST['PARAM_4']; + $destination = $_POST['PARAM_5']; if ($tax_id == 0) $tid = _('No'); else @@ -79,10 +80,11 @@ function print_sales_summary_report() 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(); - $rep = new FrontReport(_('Sales Summary Report'), "SalesSummaryReport", user_pagesize()); + $rep = new FrontReport(_('Sales Summary Report'), "SalesSummaryReport", user_pagesize(), 9, $orientation); $params = array( 0 => $comments, 1 => array('text' => _('Period'), 'from' => $from, 'to' => $to), @@ -92,6 +94,9 @@ function print_sales_summary_report() $headers = array(_('Customer'), _('Tax Id'), _('Total ex. Tax'), _('Tax')); $aligns = array('left', 'left', 'right', 'right'); + if ($orientation == 'L') + recalculate_cols($cols); + $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); $rep->NewPage(); @@ -162,4 +167,3 @@ function print_sales_summary_report() $rep->End(); } -?> \ No newline at end of file