projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more udpates for the new world of unapplied stuff. yay.
[freeside.git]
/
FS
/
FS
/
cust_credit_refund.pm
diff --git
a/FS/FS/cust_credit_refund.pm
b/FS/FS/cust_credit_refund.pm
index
f366eb1
..
200e34e
100644
(file)
--- 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 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 );
@ISA = qw( FS::Record );
@@
-154,16
+155,30
@@
sub check {
''; #no error
}
''; #no error
}
+=item cust_refund
+
+Returns the refund (see L<FS::cust_refund>)
+
+=cut
+
+sub cust_refund {
+ my $self = shift;
+ qsearchs( 'cust_refund', { 'refundnum' => $self->refundnum } );
+}
+
=back
=head1 VERSION
=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.
=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<FS::cust_credit>, L<FS::cust_refund>, L<FS::Record>, schema.html from the
=head1 SEE ALSO
L<FS::cust_credit>, L<FS::cust_refund>, L<FS::Record>, schema.html from the