[freeside-commits] freeside/FS/FS cust_bill_event.pm, 1.13.2.2, 1.13.2.3
Ivan,,,
ivan at wavetail.420.am
Mon Feb 18 18:25:25 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv11435
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_bill_event.pm
Log Message:
clean up POD docs for better wiki exportability
Index: cust_bill_event.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_event.pm,v
retrieving revision 1.13.2.2
retrieving revision 1.13.2.3
diff -u -d -r1.13.2.2 -r1.13.2.3
--- cust_bill_event.pm 2 Oct 2007 15:31:18 -0000 1.13.2.2
+++ cust_bill_event.pm 19 Feb 2008 02:25:23 -0000 1.13.2.3
@@ -38,18 +38,30 @@
=over 4
-=item eventnum - primary key
+=item eventnum
-=item invnum - invoice (see L<FS::cust_bill>)
+Primary key
-=item eventpart - event definition (see L<FS::part_bill_event>)
+=item invnum
-=item _date - specified as a UNIX timestamp; see L<perlfunc/"time">. Also see
+Invoice (see L<FS::cust_bill>)
+
+=item eventpart
+
+Event definition (see L<FS::part_bill_event>)
+
+=item _date
+
+Specified as a UNIX timestamp; see L<perlfunc/"time">. Also see
L<Time::Local> and L<Date::Parse> for conversion functions.
-=item status - event status: B<done> or B<failed>
+=item status
-=item statustext - additional status detail (i.e. error message)
+Event status: B<done> or B<failed>
+
+=item statustext
+
+Additional status detail (i.e. error message)
=back
@@ -189,18 +201,35 @@
$self->replace($old);
}
-=item search_sql HREF
+=item search_sql HASHREF
Class method which returns an SQL WHERE fragment to search for parameters
-specified in HREF. Valid parameters are
+specified in HASHREF. Valid parameters are
=over 4
+
=item agentnum
-=item beginning - an epoch date setting a lower bound for _date values
-=item ending - an epoch date setting a upper bound for _date values
-=item failed - limits the search to failed events if true
-=item payby - requires that the search be JOIN'd to part_bill_event # Bug?
-=item currentuser - specifies the user for agent virtualization
+
+=item beginning
+
+An epoch date setting a lower bound for _date values
+
+=item ending
+
+An epoch date setting a upper bound for _date values
+
+=item failed
+
+Limits the search to failed events if true
+
+=item payby
+
+Requires that the search be JOIN'd to part_bill_event # Bug?
+
+=item currentuser
+
+Specifies the user for agent virtualization
+
=back
=cut
@@ -224,10 +253,9 @@
push @search, "part_bill_event.payby = '". $params->{payby}. "'"
if $params->{payby};
- if ($params->{CurrentUser}) {
- my $access_user = qsearchs('access_user',
- {username => $params->{CurrentUser} }
- );
+ my $currentuser = $params->{currentuser} || $params->{CurrentUser};
+ if ($currentuser) {
+ my $access_user = qsearchs('access_user', { username => $currentuser });
if ($access_user) {
push @search, $access_user->agentnums_sql;
}else{
More information about the freeside-commits
mailing list