diff options
Diffstat (limited to 'httemplate/view/cust_bill-ps.cgi')
-rwxr-xr-x | httemplate/view/cust_bill-ps.cgi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill-ps.cgi b/httemplate/view/cust_bill-ps.cgi new file mode 100755 index 000000000..8485a150f --- /dev/null +++ b/httemplate/view/cust_bill-ps.cgi @@ -0,0 +1,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) %> |