X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_credit_refund.pm;h=cc3b32cdba2d0abd0ce080ccea160f9257236a65;hp=8b7d6dac3f6a94c34dcfba48a653ce4ab444a7af;hb=d5ae9f38bdea9e3de50f76aa8caf06956b4fb706;hpb=ef5490483c6b97512c4a1fe0ec841c2044e346af diff --git a/FS/FS/cust_credit_refund.pm b/FS/FS/cust_credit_refund.pm index 8b7d6dac3..cc3b32cdb 100644 --- a/FS/FS/cust_credit_refund.pm +++ b/FS/FS/cust_credit_refund.pm @@ -57,6 +57,8 @@ L and L for conversion functions. Creates a new record. To add the record to the database, see L<"insert">. +=cut + sub table { 'cust_credit_refund'; } =item insert @@ -147,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; @@ -174,7 +176,7 @@ Returns the credit (see L) =cut -sub cust_refund { +sub cust_credit { my $self = shift; qsearchs( 'cust_credit', { 'crednum' => $self->crednum } ); } @@ -183,7 +185,7 @@ sub cust_refund { =head1 VERSION -$Id: cust_credit_refund.pm,v 1.6 2002-01-24 11:52:02 ivan Exp $ +$Id: cust_credit_refund.pm,v 1.9 2002-01-26 01:52:31 ivan Exp $ =head1 BUGS