if ( $bill_total > $cust_bill->charged ) {
$dbh->rollback if $oldAutoCommit;
return "total cust_bill_pay.amount and cust_credit_bill.amount $bill_total".
- "for invnum ". $self->invnum.
+ " for invnum ". $self->invnum.
" greater than cust_bill.charged ". $cust_bill->charged;
}
;
return $error if $error;
- $self->_date(time) unless $self->_date;
+ return "amount must be > 0" if $self->amount == 0;
+ $self->_date(time) unless $self->_date;
''; #no error
}
=head1 VERSION
-$Id: cust_bill_pay.pm,v 1.6 2001-09-02 05:38:13 ivan Exp $
+$Id: cust_bill_pay.pm,v 1.8 2001-09-03 22:07:38 ivan Exp $
=head1 BUGS