summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pay.pm
diff options
context:
space:
mode:
authorivan <ivan>2001-09-02 07:49:52 +0000
committerivan <ivan>2001-09-02 07:49:52 +0000
commitdbfb0ae501d5acba37f9348476d94b99a4c92450 (patch)
tree29850d2a9d94808efb9f2a6edcfd4477701ea8f3 /FS/FS/cust_bill_pay.pm
parent4f8a0bb6d0c789c7e156a446dc61dbe27938a372 (diff)
things are starting to work again, sorta.
Diffstat (limited to 'FS/FS/cust_bill_pay.pm')
-rw-r--r--FS/FS/cust_bill_pay.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_bill_pay.pm b/FS/FS/cust_bill_pay.pm
index ac82c54..921c025 100644
--- a/FS/FS/cust_bill_pay.pm
+++ b/FS/FS/cust_bill_pay.pm
@@ -162,8 +162,9 @@ sub check {
;
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
}
@@ -194,7 +195,7 @@ sub cust_bill {
=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.7 2001-09-02 07:49:52 ivan Exp $
=head1 BUGS