diff options
author | ivan <ivan> | 2001-09-02 04:25:55 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-09-02 04:25:55 +0000 |
commit | f1ee95396defc991301ac758b71bdda9df82984e (patch) | |
tree | e74c506e501b88a93f7d19a1c5b0d3025ab2db1f /FS/FS | |
parent | 29b94aeb1c3003f7a9bbfbe1a91a86f8b9edfbbc (diff) |
lame testsuite and the embarassing fixes in it found
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/cust_bill_pay.pm | 6 | ||||
-rw-r--r-- | FS/FS/cust_main.pm | 6 | ||||
-rw-r--r-- | FS/FS/cust_refund.pm | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/FS/FS/cust_bill_pay.pm b/FS/FS/cust_bill_pay.pm index a7e2831..fea6aee 100644 --- a/FS/FS/cust_bill_pay.pm +++ b/FS/FS/cust_bill_pay.pm @@ -107,9 +107,9 @@ sub insert { }; my $bill_total = 0; - $bill_total += foreach map { $_->amount } + $bill_total += $_ foreach map { $_->amount } qsearch('cust_bill_pay', { 'invnum' => $self->invnum } ); - $bill_total += foreach map { $_->amount } + $bill_total += $_ foreach map { $_->amount } qsearch('cust_credit_bill', { 'invnum' => $self->invnum } ); if ( $bill_total > $cust_bill->charged ) { $dbh->rollback if $oldAutoCommit; @@ -194,7 +194,7 @@ sub cust_bill { =head1 VERSION -$Id: cust_bill_pay.pm,v 1.4 2001-09-02 02:46:55 ivan Exp $ +$Id: cust_bill_pay.pm,v 1.5 2001-09-02 04:25:55 ivan Exp $ =head1 BUGS diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index c44c893..41ad21b 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1266,7 +1266,7 @@ sub apply_credits { foreach my $cust_bill ( @invoices ) { my $amount; - if (!(defined $credit) || $credit->credited == 0) { + if ( !defined($credit) || $credit->credited == 0) { $credit = pop @credits or last; } @@ -1316,7 +1316,7 @@ sub apply_payments { foreach my $cust_bill ( @invoices ) { my $amount; - if ( !defined $payment || $payment->unapplied = 0 ) { + if ( !defined($payment) || $payment->unapplied == 0 ) { $payment = pop @payments or last; } @@ -1501,7 +1501,7 @@ sub rebuild_fuzzyfiles { =head1 VERSION -$Id: cust_main.pm,v 1.27 2001-09-02 02:46:55 ivan Exp $ +$Id: cust_main.pm,v 1.28 2001-09-02 04:25:55 ivan Exp $ =head1 BUGS diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm index c216ec2..89f8f68 100644 --- a/FS/FS/cust_refund.pm +++ b/FS/FS/cust_refund.pm @@ -103,7 +103,7 @@ sub insert { 'amount' => $self->refund, '_date' => $self->_date, }; - $error = $cust_bill_pay->insert; + $error = $cust_credit_refund->insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; return $error; @@ -198,7 +198,7 @@ sub check { =head1 VERSION -$Id: cust_refund.pm,v 1.6 2001-09-02 02:46:55 ivan Exp $ +$Id: cust_refund.pm,v 1.7 2001-09-02 04:25:55 ivan Exp $ =head1 BUGS |