! -> Note
$ -> Affected files
+30-May-2010 Joe Hunt
+! Global variabel, $def_print_destination, config.php can be set to 0 or 1
+$ config.default.php
+ /reporting/includes/reports_classes.inc
+! copy line memo to next line in journal entries and bank payments/deposits
+$ /gl/includes/ui/gl_bank_ui.inc
+ /gl/includes/ui/gl_journal_ui.inc
29-May-2010 Janusz Dobrowolski
# Smaller fixes initial COAs
/* show users online discretely in the footer */
$show_users_online = 0;
+ /* default print destination. 0 = PDF/Printer, 1 = Excel */
+ $def_print_destination = 0;
+
// Wiki context help configuration
// If your help wiki use translated page titles uncomment next line
// $old_style_help = 1; // this setting is depreciated and subject to removal in next FA versions
$_POST['amount'] = price_format(0);
$_POST['dimension_id'] = 0;
$_POST['dimension2_id'] = 0;
- $_POST['LineMemo'] = "";
+ //$_POST['LineMemo'] = ""; // let memo go to next line Joe Hunt 2010-05-30
if(isset($_POST['_code_id_update'])) {
$Ajax->activate('code_id');
}
$_POST['AmountCredit'] = ''; //price_format(0);
$_POST['dimension_id'] = 0;
$_POST['dimension2_id'] = 0;
- $_POST['LineMemo'] = "";
+ //$_POST['LineMemo'] = ""; // let memo go to next line Joe Hunt 2010-05-30
$_POST['_code_id_edit'] = "";
$_POST['code_id'] = "";
if(isset($_POST['_code_id_update'])) {
//
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)
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"));