This commit was manufactured by cvs2svn to create tag 'freeside_1_4_2'.
[freeside.git] / FS / FS / cust_pay.pm
index 67fdcf2..0eae59f 100644 (file)
@@ -402,11 +402,19 @@ sub unapplied {
   sprintf("%.2f", $amount );
 }
 
-=back
+=item cust_main
+
+Returns the parent customer object (see L<FS::cust_main>).
+
+=cut
 
-=head1 VERSION
+sub cust_main {
+  my $self = shift;
+  qsearchs( 'cust_main', { 'custnum' => $self->custnum } );
+}
 
-$Id: cust_pay.pm,v 1.21.4.2 2002-11-19 09:52:02 ivan Exp $
+
+=back
 
 =head1 BUGS