RT#14829: automatic payments triggered by bill now show up as Payment by fs_queue...
authorJonathan Prykop <jonathan@freeside.biz>
Mon, 24 Aug 2015 22:50:58 +0000 (17:50 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Mon, 24 Aug 2015 22:50:58 +0000 (17:50 -0500)
FS/FS/queue.pm

index 35f4d65..9bbaf34 100644 (file)
@@ -406,20 +406,19 @@ sub update_statustext {
   #'';
 }
 
-# not needed in 4
-#=item access_user
-#
-#Returns FS::access_user object (if any) associated with this user.
-#
-#Returns nothing if not found.
-#
-#=cut
-#
-#sub access_user {
-#  my $self = shift;
-#  my $usernum = $self->usernum || return ();
-#  return qsearchs('access_user',{ 'usernum' => $usernum }) || ();
-#}
+=item access_user
+
+Returns FS::access_user object (if any) associated with this user.
+
+Returns nothing if not found.
+
+=cut
+
+sub access_user {
+  my $self = shift;
+  my $usernum = $self->usernum || return ();
+  return qsearchs('access_user',{ 'usernum' => $usernum }) || ();
+}
 
 =back