RT# 75095 - Added Ooma integration to one time charges
[freeside.git] / httemplate / misc / download-bill_batch.html
index 00d9236..9b5f1ef 100644 (file)
@@ -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('');