[freeside-commits] freeside/FS/FS bill_batch.pm,1.3,1.3.2.1

Mark Wells mark at wavetail.420.am
Sat Jul 30 16:14:24 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19639/FS/FS

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	bill_batch.pm 
Log Message:
rearrange flow of batch download, #947

Index: bill_batch.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/bill_batch.pm,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -w -d -r1.3 -r1.3.2.1
--- bill_batch.pm	20 Jul 2011 18:34:19 -0000	1.3
+++ bill_batch.pm	30 Jul 2011 23:14:22 -0000	1.3.2.1
@@ -84,6 +84,7 @@
       die $error if $error;
     }
   }
+  $job->update_statustext(100, 'Combining invoices') if $job;
 
   return $pdf_out->toPDF;
 }
@@ -144,6 +145,11 @@
   my $batch = FS::bill_batch->by_key($param->{batchnum});
   die "batch '$param->{batchnum}' not found!\n" if !$batch;
 
+  if ( $param->{'close'} ) {
+    my $error = $batch->close;
+    die $error if $error;
+  }
+
   my $pdf = $batch->print_pdf($job);
   $batch->pdf($pdf);
   my $error = $batch->replace;



More information about the freeside-commits mailing list