X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_statement.html;h=3e1345ed50817bca900b811c0b93cde820c953d3;hb=e41880cfb8d9835bca858ec13c96724b08fa0af7;hp=ec4ee9ebd6215074269a3523641c8efd35373040;hpb=5c35f5323f1cdcf7eabe6632d0352ea417d3047e;p=freeside.git
diff --git a/httemplate/view/cust_statement.html b/httemplate/view/cust_statement.html
index ec4ee9ebd..3e1345ed5 100755
--- a/httemplate/view/cust_statement.html
+++ b/httemplate/view/cust_statement.html
@@ -4,14 +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 ( $conf->exists('hylafax') && length($cust_statement->cust_main->fax) ) {
- | Re-fax this statement
+% if ( 0 ) {
+% #if ( $conf->exists('hylafax') && length($cust_statement->cust_main->fax) ) {
+ | Re-fax this statement
% }
@@ -19,9 +21,10 @@
% }
-% if ( $conf->exists('invoice_latex') ) {
+% #if ( $conf->exists('invoice_latex') ) {
+% if ( 0 ) { #broken???
- View typeset statement
+ View typeset statement
% }
@@ -47,7 +50,7 @@ die "access denied"
#untaint statement
my($query) = $cgi->keywords;
$query =~ /^((.+)-)?(\d+)$/;
-my $templatename = $2;
+my $templatename = $2 || 'statement'; #XXX configure... via event?? eh..
my $statementnum = $3;
my $conf = new FS::Conf;
@@ -70,6 +73,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>