summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/search-deposit_slip.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/elements/search-deposit_slip.html')
-rw-r--r--httemplate/search/elements/search-deposit_slip.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/httemplate/search/elements/search-deposit_slip.html b/httemplate/search/elements/search-deposit_slip.html
new file mode 100644
index 0000000..c7a6cbb
--- /dev/null
+++ b/httemplate/search/elements/search-deposit_slip.html
@@ -0,0 +1,17 @@
+<% $deposit_pdf %>\
+<%init>
+
+my %args = @_;
+my $rows = $args{'rows'};
+
+my $deposit_pdf = deposit_slip_pdf(
+ conf => FS::Conf->new,
+ cust_pay => $rows,
+);
+
+http_header('Content-Type' => 'application/pdf');
+http_header('Content-Disposition' => "filename=deposit.pdf" );
+http_header('Content-Length' => length($deposit_pdf) );
+http_header('Cache-control' => 'max-age=60' );
+
+</%init>