X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay.pm;h=e1943ae2d0a4208dc387ec1c2d20e823caedeebd;hb=92fa788fb842baab8fa185e159d8effde739bd74;hp=7be11535647e462240a6fd5259a5561f2a0b3f6f;hpb=58d44fbe5eb9ab32e6d87063a4a3b22ddba9a828;p=freeside.git 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). + +=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