[freeside-commits] branch master updated. cd99d4ff00f359cfcdd35c1cebde5a67ae8218e3

Mark Wells mark at 420.am
Tue Feb 19 14:44:25 PST 2013


The branch, master has been updated
       via  cd99d4ff00f359cfcdd35c1cebde5a67ae8218e3 (commit)
      from  3a75059f65a77191e755dc5a262b85f720936ae2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cd99d4ff00f359cfcdd35c1cebde5a67ae8218e3
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Feb 19 14:43:57 2013 -0800

    fix misspelled table name, from #21117

diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi
index dde5461..9f9eb30 100755
--- a/httemplate/search/cust_pay_batch.cgi
+++ b/httemplate/search/cust_pay_batch.cgi
@@ -87,7 +87,7 @@ if ( $cgi->param('payby') ) {
 }
 
 if ( not $cgi->param('dcln') ) {
-  push @search, "cpb.status IS DISTINCT FROM 'Approved'";
+  push @search, "cust_pay_batch.status IS DISTINCT FROM 'Approved'";
 }
 
 my ($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi);
@@ -105,7 +105,7 @@ push @search, $curuser->agentnums_sql({ table      => 'pay_batch',
 
 my $search = ' WHERE ' . join(' AND ', @search);
 
-$count_query = 'SELECT COUNT(*) FROM cust_pay_batch AS cpb ' .
+$count_query = 'SELECT COUNT(*) FROM cust_pay_batch ' .
                   'LEFT JOIN cust_main USING ( custnum ) ' .
                   'LEFT JOIN pay_batch USING ( batchnum )' .
 		  $search;

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/cust_pay_batch.cgi |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list