%# invoice reports, combined statement
% if ( $curuser->access_right('List invoices') ) {
-% if ( $conf->exists('cust_main-print_statement_link')
-% and $num_cust_bill > 0 ) {
+% if ( $num_cust_bill > 0 ) {
<A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><%
- mt('Print a current statement') |h %></A>
+ mt('Download typeset statement PDF') |h %></A>
<BR>
% }
<A HREF="<% $p %>search/report_cust_bill.html?custnum=<% $custnum %>"><% mt('Invoice reports') |h %></A>
}
$i++;
}
-if ( $history[-1]->{'hide'} ) {
+if ( @history and $history[-1]->{'hide'} ) {
# then everything is hidden
$history[-1]->{'balance_forward'} = 1;
}