[freeside-commits] freeside/FS/FS bill_batch.pm,1.3,1.4
Mark Wells
mark at wavetail.420.am
Sat Jul 30 16:13:41 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19526/FS/FS
Modified Files:
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.4
diff -u -w -d -r1.3 -r1.4
--- bill_batch.pm 20 Jul 2011 18:34:19 -0000 1.3
+++ bill_batch.pm 30 Jul 2011 23:13:39 -0000 1.4
@@ -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