-<% include('/elements/header.html', $title ) %>
+<& /elements/header.html, mt($title, @title_arg) &>
<FORM ACTION="cust_pkg.cgi" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="bill">
unless $FS::CurrentUser::CurrentUser->access_right('List packages');
my $title = 'Package Report';
+#false laziness w/report_cust_bill.html
+my @title_arg = ();
my $custnum = '';
if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
'hashref' => { 'custnum' => $custnum },
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
}) or die "unknown custnum $custnum";
- $title .= ': '. $cust_main->name;
+ $title .= ': [_1]';
+ push @title_arg, $cust_main->name;
}
</%init>