blob: 8485a150f6da98ba8b5f66555d398f6f9ef4884e (
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 = $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( '', $templatename) %>
|