X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_credit_refund.pm;h=200e34e556fcf0abb0d6382ac3b669dee6be4d8b;hp=f366eb147bbfc38be473f32d488d938a67bfe702;hb=51e148d543a59a3cdec24bfb5ffb839ee7b4ac72;hpb=98ddc878969bb39e576e3bd316f96ff7eeedb750 diff --git a/FS/FS/cust_credit_refund.pm b/FS/FS/cust_credit_refund.pm index f366eb147..200e34e55 100644 --- a/FS/FS/cust_credit_refund.pm +++ b/FS/FS/cust_credit_refund.pm @@ -4,7 +4,8 @@ use strict; use vars qw( @ISA ); use FS::Record qw( qsearch qsearchs dbh ); #use FS::UID qw(getotaker); -#use FS::cust_credit +use FS::cust_credit; +use FS::cust_refund; @ISA = qw( FS::Record ); @@ -154,16 +155,30 @@ sub check { ''; #no error } +=item cust_refund + +Returns the refund (see L) + +=cut + +sub cust_refund { + my $self = shift; + qsearchs( 'cust_refund', { 'refundnum' => $self->refundnum } ); +} + =back =head1 VERSION -$Id: cust_credit_refund.pm,v 1.1 2001-09-01 20:11:07 ivan Exp $ +$Id: cust_credit_refund.pm,v 1.2 2001-09-02 01:27:11 ivan Exp $ =head1 BUGS Delete and replace methods. +the checks for over-applied refunds could be better done like the ones in +cust_bill_credit + =head1 SEE ALSO L, L, L, schema.html from the