[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.65, 1.66
Mark Wells
mark at wavetail.420.am
Tue Jan 31 21:30:18 PST 2012
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv18371/httemplate/view/cust_main
Modified Files:
payment_history.html
Log Message:
print customer statements on the fly, #15864
Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -w -d -r1.65 -r1.66
--- payment_history.html 8 Dec 2011 21:13:17 -0000 1.65
+++ payment_history.html 1 Feb 2012 05:30:16 -0000 1.66
@@ -123,8 +123,14 @@
</TD>
<TD ALIGN="right" VALIGN="top">
-%# invoice reports
+%# invoice reports, combined statement
% if ( $curuser->access_right('List invoices') ) {
+% if ( $conf->exists('cust_main-print_statement_link')
+% and $num_cust_bill > 0 ) {
+ <A HREF="<% $p %>view/cust_main_statement-pdf.cgi?<% $custnum %>"><%
+ mt('Print a current statement') |h %></A>
+ <BR>
+% }
<A HREF="<% $p %>search/report_cust_bill.html?custnum=<% $custnum %>"><% mt('Invoice reports') |h %></A>
% }
<BR>
@@ -410,12 +416,14 @@
}
#invoices
+my $num_cust_bill = 0;
foreach my $cust_bill ($cust_main->cust_bill) {
push @history, {
'date' => $cust_bill->_date,
'desc' => include('payment_history/invoice.html', $cust_bill, %opt ),
'charge' => $cust_bill->charged,
};
+ $num_cust_bill++;
}
#statements
More information about the freeside-commits
mailing list