X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill-pdf.cgi;h=ce7ab0c5c23e2fa3b0bc5f7d47425c72f9b2c02b;hp=1ef25d9e9dc5fc8594607082b1b1d7059fd757c7;hb=34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb;hpb=97c0616b60819a23dbc6d7d6ebf2ff1dc3446e91 diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi index 1ef25d9e9..ce7ab0c5c 100755 --- a/httemplate/view/cust_bill-pdf.cgi +++ b/httemplate/view/cust_bill-pdf.cgi @@ -3,7 +3,7 @@ #untaint invnum my($query) = $cgi->keywords; $query =~ /^((.+)-)?(\d+)(.pdf)?$/; -my $templatename = $1; +my $templatename = $2; my $invnum = $3; my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); @@ -14,5 +14,4 @@ my $pdf = $cust_bill->print_pdf( '', $templatename); http_header('Content-Type' => 'application/pdf' ); http_header('Content-Length' => length($pdf) ); http_header('Cache-control' => 'max-age=60' ); -%> -<%= $pdf %> +%><%= $pdf %>