summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-ps.cgi
blob: bbf63ced911ec270cc3fe8b189c714d52e8e93b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%

#untaint invnum
my($query) = $cgi->keywords;
$query =~ /^((.+)-)?(\d+)$/;
my $templatename = $1;
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( '', $templatename) %>