diff options
author | cvs2git <cvs2git> | 2004-01-11 23:37:09 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2004-01-11 23:37:09 +0000 |
commit | bc8c1cc5f50baf28339aaeba7af52ad1bbda8f36 (patch) | |
tree | 601ca319c9a95cdb703da7abd996b840519d50c4 /httemplate | |
parent | 23514b209304e58bca737894139243ac0cc2f7c1 (diff) | |
parent | 01c33bcdfa27576bee4ab922095749794a6b9f57 (diff) |
This commit was manufactured by cvs2svn to create branch
'FREESIDE_1_4_BRANCH'.
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/cust_bill-pdf.cgi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi new file mode 100755 index 000000000..03340a16f --- /dev/null +++ b/httemplate/view/cust_bill-pdf.cgi @@ -0,0 +1,13 @@ +<% + +#untaint invnum +my($query) = $cgi->keywords; +$query =~ /^(\d+)$/; +my $invnum = $1; + +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 %> |