X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_statement.html;h=87a185fab2aa7a9aef3e7b440b3fa5bb30480aa9;hb=3888fd6d1902f93c19d62df186e04617357f58c5;hp=b078c9d07ea36d8c26ef013f6f5de71945eeb57c;hpb=1e34f4a5d142bd58f5918219db0931e81ad0418e;p=freeside.git
diff --git a/httemplate/view/cust_statement.html b/httemplate/view/cust_statement.html
index b078c9d07..87a185fab 100755
--- a/httemplate/view/cust_statement.html
+++ b/httemplate/view/cust_statement.html
@@ -4,16 +4,16 @@
% if ( $FS::CurrentUser::CurrentUser->access_right('Resend invoices') ) {
-%# Re-print this statement
+%# Re-print this statement
% if ( grep { $_ ne 'POST' } $cust_statement->cust_main->invoicing_list ) {
%# |
- Re-email this statement
+ Re-email this statement
% }
% if ( 0 ) {
% #if ( $conf->exists('hylafax') && length($cust_statement->cust_main->fax) ) {
- | Re-fax this statement
+ | Re-fax this statement
% }
@@ -24,7 +24,7 @@
% #if ( $conf->exists('invoice_latex') ) {
% if ( 0 ) { #broken???
- View typeset statement
+ View typeset statement
% }
@@ -35,10 +35,10 @@
% if ( $conf->exists('invoice_html') ) {
- <% join('', $cust_statement->print_html('', $templatename) ) %>
+ <% join('', $cust_statement->print_html('template' => $templatename) ) %>
% } else {
-
<% join('', $cust_statement->print_text('', $templatename) ) %>+
<% join('', $cust_statement->print_text('template' => $templatename) ) %>% } <% include('/elements/footer.html') %> @@ -55,12 +55,6 @@ my $statementnum = $3; my $conf = new FS::Conf; -my @payby = grep /\w/, $conf->config('payby'); -#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) -@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) - unless @payby; -my %payby = map { $_=>1 } @payby; - my $cust_statement = qsearchs({ 'select' => 'cust_statement.*', 'table' => 'cust_statement', @@ -73,6 +67,7 @@ die "Statement #$statementnum not found!" unless $cust_statement; my $custnum = $cust_statement->custnum; my $display_custnum = $cust_statement->cust_main->display_custnum; -my $link = $templatename ? "$templatename-$statementnum" : $statementnum; +my $link = "statementnum=$statementnum"; +$link .= ';template='. uri_escape($templatename) if $templatename; %init>