[freeside-commits] freeside/FS/FS/Report/Table Monthly.pm, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Mon Oct 22 15:29:50 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/Report/Table
In directory wavetail:/tmp/cvs-serv21209
Modified Files:
Monthly.pm
Log Message:
fix more fallout from agent-virtualized packages
Index: Monthly.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Report/Table/Monthly.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Monthly.pm 14 Aug 2007 21:46:16 -0000 1.9
+++ Monthly.pm 22 Oct 2007 22:29:48 -0000 1.10
@@ -331,11 +331,12 @@
my $sql = "$col >= $speriod AND $col < $eperiod";
#agent selection
- $sql .= " AND agentnum = $agentnum"
+ $sql .= " AND cust_main.agentnum = $agentnum"
if $agentnum;
#agent virtualization
- $sql .= ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql;
+ $sql .= ' AND '.
+ $FS::CurrentUser::CurrentUser->agentnums_sql( 'table'=>'cust_main' );
$sql;
}
More information about the freeside-commits
mailing list