X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fdownload-bill_batch.html;h=9b5f1efa8bf3ce557cee366ef7b797efa761f32d;hp=00d9236f3ec853863ff8bc5a06573dc5107455cd;hb=b282a5536ad5145f956ef27704e2267a124aacf5;hpb=007fd3026ade508a9d88b436575a4797d003280a diff --git a/httemplate/misc/download-bill_batch.html b/httemplate/misc/download-bill_batch.html index 00d9236f3..9b5f1efa8 100644 --- a/httemplate/misc/download-bill_batch.html +++ b/httemplate/misc/download-bill_batch.html @@ -12,6 +12,12 @@ $m->clear_buffer; $r->content_type('application/pdf'); $r->headers_out->add( 'Content-Disposition' => 'attachment;filename="invoice_batch_'.$batchnum.'.pdf"'); +my $cookie = CGI::Cookie->new( + -name => "bill_batch_download", + -value => $batchnum, + -expires => '+1d', +); +$r->headers_out->add( 'Set-Cookie' => $cookie->as_string ); $m->print($content); $batch->pdf('');