X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_credit.pm;h=8ec255b95e77056540e9a7409382c7cc472e10a1;hb=8f6a34b553a7ca9b7fc9c9cf5802ce418e3a5296;hp=19a54534f1c2aea886b406792b2fee50d5adbcd5;hpb=c085c3ba3bd0677719407ce613dd24466f05abe2;p=freeside.git diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 19a54534f..8ec255b95 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -300,6 +300,18 @@ sub credited { sprintf( "%.2f", $amount ); } +=item cust_main + +Returns the customer (see L) for this credit. + +=cut + +sub cust_main { + my $self = shift; + qsearchs( 'cust_main', { 'custnum' => $self->custnum } ); +} + + =back =head1 BUGS