This commit was manufactured by cvs2svn to create tag 'freeside_1_4_2'.
[freeside.git] / FS / FS / cust_credit_refund.pm
index 83f6e2f..85187c3 100644 (file)
@@ -149,7 +149,7 @@ sub check {
   ;
   return $error if $error;
 
-  return "amount must be > 0" if $self->amount == 0;
+  return "amount must be > 0" if $self->amount <= 0;
 
   $self->_date(time) unless $self->_date;
 
@@ -176,17 +176,13 @@ Returns the credit (see L<FS::cust_credit>)
 
 =cut
 
-sub cust_refund {
+sub cust_credit {
   my $self = shift;
   qsearchs( 'cust_credit', { 'crednum' => $self->crednum } );
 }
 
 =back
 
-=head1 VERSION
-
-$Id: cust_credit_refund.pm,v 1.7 2002-01-24 16:54:53 ivan Exp $
-
 =head1 BUGS
 
 Delete and replace methods.