summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorivan <ivan>2005-03-06 03:04:29 +0000
committerivan <ivan>2005-03-06 03:04:29 +0000
commit34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb (patch)
treefaf2226212cf421ffc5d7c998f9eab9ed2ef9216 /httemplate/view
parentf34557b8890dcc63db6c5588233dc7bfa9d39f22 (diff)
add Excel and CSV download of templated reports and clean up their HTML formatting, closes; Bug#520, Bug#1107
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_bill-pdf.cgi3
-rwxr-xr-xhttemplate/view/cust_bill-ps.cgi3
2 files changed, 2 insertions, 4 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi
index a72a60551..ce7ab0c5c 100755
--- a/httemplate/view/cust_bill-pdf.cgi
+++ b/httemplate/view/cust_bill-pdf.cgi
@@ -14,5 +14,4 @@ my $pdf = $cust_bill->print_pdf( '', $templatename);
http_header('Content-Type' => 'application/pdf' );
http_header('Content-Length' => length($pdf) );
http_header('Cache-control' => 'max-age=60' );
-%>
-<%= $pdf %>
+%><%= $pdf %>
diff --git a/httemplate/view/cust_bill-ps.cgi b/httemplate/view/cust_bill-ps.cgi
index 8485a150f..e730a822a 100755
--- a/httemplate/view/cust_bill-ps.cgi
+++ b/httemplate/view/cust_bill-ps.cgi
@@ -10,5 +10,4 @@ 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) %>
+%><%= $cust_bill->print_ps( '', $templatename) %>