fix misspelled table name, from #21117
authorMark Wells <mark@freeside.biz>
Tue, 19 Feb 2013 22:43:57 +0000 (14:43 -0800)
committerMark Wells <mark@freeside.biz>
Tue, 19 Feb 2013 22:43:57 +0000 (14:43 -0800)
httemplate/search/cust_pay_batch.cgi

index dde5461..9f9eb30 100755 (executable)
@@ -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;