X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill-ps.cgi;h=e730a822a54050f3e164345ceb94dbc6d60204fe;hb=34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb;hp=03340a16f664ebec672de0973167000845623a87;hpb=23ec9b00410224868d6be1e47a0d72a6c8b3f6f5;p=freeside.git diff --git a/httemplate/view/cust_bill-ps.cgi b/httemplate/view/cust_bill-ps.cgi index 03340a16f..e730a822a 100755 --- a/httemplate/view/cust_bill-ps.cgi +++ b/httemplate/view/cust_bill-ps.cgi @@ -2,12 +2,12 @@ #untaint invnum my($query) = $cgi->keywords; -$query =~ /^(\d+)$/; -my $invnum = $1; +$query =~ /^((.+)-)?(\d+)$/; +my $templatename = $2; +my $invnum = $3; my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum}); die "Invoice #$invnum not found!" unless $cust_bill; http_header('Content-Type' => 'application/postscript' ); -%> -<%= $cust_bill->print_ps %> +%><%= $cust_bill->print_ps( '', $templatename) %>