summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/search-deposit_slip.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2020-05-27 13:39:47 -0700
committerIvan Kohler <ivan@freeside.biz>2020-05-27 13:39:47 -0700
commitfc263806f5e475559a0c4cfdb70a5f1cefe0ffa3 (patch)
treec0887bc08d9836175fd4a915d3b20bb7ce458bb6 /httemplate/search/elements/search-deposit_slip.html
parentae09d41481da0937765821af91537b8e728169e4 (diff)
deposit slips
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 000000000..c7a6cbb18
--- /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>