This commit was manufactured by cvs2svn to create tag 'freeside_2_1_0'.
[freeside.git] / httemplate / search / report_prepaid_income.cgi
index 2fe5b6f..bfb699b 100644 (file)
@@ -108,6 +108,10 @@ my @where = ();
 #here is the agent virtualization
 push @where, $curuser->agentnums_sql( 'table'=>'cust_main' );
 
+#well, because cust_bill_pkg.cgi has it and without it the numbers don't match..
+push @where , " payby != 'COMP' "
+  unless $cgi->param('include_comp_cust');
+
 my %total = ();
 my %total_legacy = ();
 foreach my $agentnum (@agentnums) {