[freeside-commits] freeside/FS/FS cust_main.pm,1.479,1.480
Ivan,,,
ivan at wavetail.420.am
Sun Nov 29 16:38:12 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv24291/FS/FS
Modified Files:
cust_main.pm
Log Message:
fix bulk sending of customer notices, RT#6778
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -d -r1.479 -r1.480
--- cust_main.pm 29 Nov 2009 23:15:36 -0000 1.479
+++ cust_main.pm 30 Nov 2009 00:38:10 -0000 1.480
@@ -2528,7 +2528,7 @@
=item invoice_terms
-Options terms to be printed on this invoice. Otherwise, customer-specific
+Optional terms to be printed on this invoice. Otherwise, customer-specific
terms or the default terms are used.
=back
@@ -8431,13 +8431,20 @@
# amounts
##
- #my $balance_sql = $class->balance_sql();
- my $balance_sql = FS::cust_main->balance_sql();
+ if ( $params->{'current_balance'} ) {
- my @current_balance = @{ $params->{'current_balance'} };
+ #my $balance_sql = $class->balance_sql();
+ my $balance_sql = FS::cust_main->balance_sql();
- push @where, map { s/current_balance/$balance_sql/; $_ }
- @current_balance;
+ my @current_balance =
+ ref( $params->{'current_balance'} )
+ ? @{ $params->{'current_balance'} }
+ : ( $params->{'current_balance'} );
+
+ push @where, map { s/current_balance/$balance_sql/; $_ }
+ @current_balance;
+
+ }
##
# custbatch
More information about the freeside-commits
mailing list