Will things ever be the same again?
[freeside.git] / httemplate / view / cust_bill-ps.cgi
1 %
2 %
3 %#untaint invnum
4 %my($query) = $cgi->keywords;
5 %$query =~ /^((.+)-)?(\d+)$/;
6 %my $templatename = $2;
7 %my $invnum = $3;
8 %
9 %my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
10 %die "Invoice #$invnum not found!" unless $cust_bill;
11 %
12 %http_header('Content-Type' => 'application/postscript' );
13 %
14 <% $cust_bill->print_ps( '', $templatename) %>