summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-09-10 10:54:47 +0000
committerivan <ivan>2003-09-10 10:54:47 +0000
commitfb8599aef5be84bd0d6e31fb333a7e0dacbbb819 (patch)
tree76d3813727cd784ef89bb29a98b776d622a2e551
parenta70838c97ee7059deb4c1d4f9c628d5ad9d534b6 (diff)
adding cust_main method
-rw-r--r--FS/FS/cust_pay.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index 67fdcf246..1afd22a43 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -402,11 +402,23 @@ sub unapplied {
sprintf("%.2f", $amount );
}
+=item cust_main
+
+Returns the parent customer object (see L<FS::cust_main>).
+
+=cut
+
+sub cust_main {
+ my $self = shift;
+ qsearchs( 'cust_main', { 'custnum' => $self->custnum } );
+}
+
+
=back
=head1 VERSION
-$Id: cust_pay.pm,v 1.21.4.2 2002-11-19 09:52:02 ivan Exp $
+$Id: cust_pay.pm,v 1.21.4.3 2003-09-10 10:54:47 ivan Exp $
=head1 BUGS