projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e09c90a
)
adding
author
ivan
<ivan>
Sun, 11 Jan 2004 23:37:08 +0000
(23:37 +0000)
committer
ivan
<ivan>
Sun, 11 Jan 2004 23:37:08 +0000
(23:37 +0000)
httemplate/view/cust_bill-pdf.cgi
[new file with mode: 0755]
patch
|
blob
diff --git a/httemplate/view/cust_bill-pdf.cgi
b/httemplate/view/cust_bill-pdf.cgi
new file mode 100755
(executable)
index 0000000..
03340a1
--- /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 %>