X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=cffe6cb3e793f6fab0f85100fb0a51bcf7171fc0;hb=55c51a9db64c9fe402d615e204824f8e4cd6a310;hp=51012b11a487ecaf3bb2b3b3013b7e586284585b;hpb=0c35858b77d57a2990c547523b0b62d3eefb9b89;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 51012b11..cffe6cb3 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -81,7 +81,7 @@ class BoxReports . "
\n"; $st_params .= submit('Rep'.$report->id, _("Display: ") . access_string($report->name, true), - false, '', $pdf_debug ? false : 'default') . hidden('REP_ID', $report->id, false).'

'; + false, '', $pdf_debug ? false : 'default process') . hidden('REP_ID', $report->id, false).'

'; $st_params .= $this->getOptions($report->get_controls()); $st_params .= "\n
\n"; set_focus('Rep'.$report->id); @@ -164,7 +164,7 @@ class BoxReports // function get_ctrl($name, $type) { - global $path_to_root, $use_date_picker, $pdf_debug, $print_invoice_no; + global $path_to_root, $use_date_picker, $pdf_debug, $print_invoice_no, $def_print_destination; $st = ''; switch ($type) @@ -221,7 +221,10 @@ class BoxReports case 'DESTINATION': $sel = array(_("PDF/Printer"), "Excel"); - return array_selector($name, null, $sel); + $def = 0; + if (isset($def_print_destination) && $def_print_destination == 1) + $def = 1; + return array_selector($name, $def, $sel); case 'COMPARE': $sel = array(_("Accumulated"), _("Period Y-1"), _("Budget"));