summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2001-12-21 21:40:24 +0000
committerivan <ivan>2001-12-21 21:40:24 +0000
commitc00273147a2d400779fcdaf34f171b2180faa453 (patch)
treecf8b9a0a245162d5493144c94ed88ba86056c8d8 /FS
parent29a315f2dc4187e5558315f76c3d27d11e287620 (diff)
add name/address to post payment screen
get rid of some $-0.00 yay for ieee fp
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 1a2ecaf1d..fbccff1ff 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -297,6 +297,8 @@ sub owed {
$balance -= $_->amount foreach ( $self->cust_bill_pay );
$balance -= $_->amount foreach ( $self->cust_credited );
$balance = sprintf( "%.2f", $balance);
+ $balance =~ s/^\-0\.00$/0.00/; #yay ieee fp
+ $balance;
}
=item print_text [TIME];
@@ -493,7 +495,7 @@ sub print_text {
=head1 VERSION
-$Id: cust_bill.pm,v 1.13 2001-12-17 23:59:56 ivan Exp $
+$Id: cust_bill.pm,v 1.14 2001-12-21 21:40:24 ivan Exp $
=head1 BUGS