[freeside-commits] freeside/FS/FS cust_bill.pm,1.340,1.341

Mark Wells mark at wavetail.420.am
Thu May 26 18:11:04 PDT 2011


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

Modified Files:
	cust_bill.pm 
Log Message:
invoice batch download fix, #11871

Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.340
retrieving revision 1.341
diff -u -w -d -r1.340 -r1.341
--- cust_bill.pm	10 May 2011 02:47:35 -0000	1.340
+++ cust_bill.pm	27 May 2011 01:11:02 -0000	1.341
@@ -245,6 +245,7 @@
     cust_pay_batch
     cust_bill_pay_batch
     cust_bill_pkg
+    cust_bill_batch
   )) {
 
     foreach my $linked ( $self->$table() ) {
@@ -733,6 +734,17 @@
 
 }
 
+=item cust_bill_batch
+
+Returns all invoice batch records (L<FS::cust_bill_batch>) for this invoice.
+
+=cut
+
+sub cust_bill_batch {
+  my $self = shift;
+  qsearch('cust_bill_batch', { 'invnum' => $self->invnum });
+}
+
 =item tax
 
 Returns the tax amount (see L<FS::cust_bill_pkg>) for this invoice.



More information about the freeside-commits mailing list