diff options
author | ivan <ivan> | 2003-09-10 10:54:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-09-10 10:54:46 +0000 |
commit | 3b10b02bee99de0ca2a2d260227b315ae227976a (patch) | |
tree | 960c0a626efbdea178a4a0453c67610d21e528d9 | |
parent | 6bc212a7fda75de769f1e1f656313e7e7874e0ab (diff) |
adding cust_main method
-rw-r--r-- | FS/FS/cust_pay.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index 7be115356..e1943ae2d 100644 --- a/FS/FS/cust_pay.pm +++ b/FS/FS/cust_pay.pm @@ -385,11 +385,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.25 2003-08-05 00:20:42 khoff Exp $ +$Id: cust_pay.pm,v 1.26 2003-09-10 10:54:46 ivan Exp $ =head1 BUGS |