use SL::ReportGenerator;
require "bin/mozilla/common.pl";
-require "bin/mozilla/report_generator.pl";
+require "bin/mozilla/reportgenerator.pl";
require "bin/mozilla/io.pl";
require "bin/mozilla/arap.pl";
}
}
- $form->{title} = $locale->text('Edit Dunning Process Config');
- $form->{callback} ||= build_std_url("action=edit_config");
- $form->{rowcount} = 1 + scalar @{ $form->{DUNNING} };
- $form->{rowcount_odd} = $form->{rowcount} % 2;
+ $form->{title} = $locale->text('Edit Dunning Process Config');
+ $form->{callback} ||= build_std_url("action=edit_config");
$form->header();
print $form->parse_html_template("dunning/edit_config");
$form->{jsscript} = 1;
$form->{callback} ||= build_std_url("action=show_invoices", qw(login password customer invnumber ordnumber groupinvoices minamount dunning_level notes));
- $form->{PRINT_OPTIONS} = print_options({ 'inline' => 1,
- 'no_queue' => 1,
- 'no_postscript' => 1,
- 'no_html' => 1,
- 'no_opendocument' => 1, });
+ $form->{PRINT_OPTIONS} = print_options('inline' => 1,
+ 'no_queue' => 1,
+ 'no_postscript' => 1,
+ 'no_html' => 1,
+ 'no_opendocument' => 1,);
$form->header();
print $form->parse_html_template("dunning/show_invoices");
'languages' => 'languages');
$form->{type} = 'dunning';
- $form->{PRINT_OPTIONS} = print_options({ 'inline' => 1,
- 'no_queue' => 1,
- 'no_postscript' => 1,
- 'no_html' => 1,
- 'no_opendocument' => 1, });
+ $form->{PRINT_OPTIONS} = print_options('inline' => 1,
+ 'no_queue' => 1,
+ 'no_postscript' => 1,
+ 'no_html' => 1,
+ 'no_opendocument' => 1,);
$form->{title} = $locale->text('Dunning overview');
my $report = SL::ReportGenerator->new(\%myconfig, $form);
};
}
- $row->{checkbox} = {
+ $row->{checkbox} = !$first_row_for_dunning ? { } : {
'raw_data' => $cgi->hidden('-name' => "dunning_id_$i", '-value' => $ref->{dunning_id})
. $cgi->checkbox('-name' => "selected_$i", '-value' => 1, '-label' => ''),
'valign' => 'center',
$report->set_options('raw_top_info_text' => $form->parse_html_template('dunning/show_dunning_top'),
'raw_bottom_info_text' => $form->parse_html_template('dunning/show_dunning_bottom'),
'output_format' => 'HTML',
- 'attachment_basename' => strftime('dunning_report_%Y%m%d', localtime time),
+ 'attachment_basename' => $locale->text('dunning_list') . strftime('_%Y%m%d', localtime time),
);
$report->set_options_from_form();