X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_credit_bill.pm;h=a54acb683ed02120aebde19e043cc63a87a1a095;hb=522679c46b8938dbbd9bffe6e0e9724719dbf65d;hp=96134081385052062fdb3a6a825af49a184aaf08;hpb=f5266a4d07d116efd732f433d0f4f3a47b143a7d;p=freeside.git diff --git a/FS/FS/cust_credit_bill.pm b/FS/FS/cust_credit_bill.pm index 961340813..a54acb683 100644 --- a/FS/FS/cust_credit_bill.pm +++ b/FS/FS/cust_credit_bill.pm @@ -109,7 +109,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; return "Unknown credit" unless my $cust_credit = @@ -127,7 +127,7 @@ sub check { return "Cannot apply more than remaining value of invoice" unless $self->amount <= $cust_bill->owed; - ''; #no error + $self->SUPER::check; } =item sub cust_credit @@ -145,7 +145,7 @@ sub cust_credit { =head1 VERSION -$Id: cust_credit_bill.pm,v 1.5 2001-09-11 00:08:18 ivan Exp $ +$Id: cust_credit_bill.pm,v 1.8 2003-08-05 00:20:41 khoff Exp $ =head1 BUGS @@ -153,7 +153,7 @@ The delete method. =head1 SEE ALSO -L, L, L, L, +L, L, L, L, schema.html from the base documentation. =cut