diff options
author | ivan <ivan> | 2010-07-10 09:43:13 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-10 09:43:13 +0000 |
commit | d0dd5bac82823cb92b4747b77b9ac9d0251217df (patch) | |
tree | 6f0b779705eac1c50882497590120e85e0dc9809 /FS/FS/cust_credit_bill_pkg.pm | |
parent | 7903fffd694ccf7128da34023ecbbc5eb06e84e8 (diff) |
should fix intermittent "Illegal (money) amount" error applying credits to invoices when using texas tax, RT#8930
Diffstat (limited to 'FS/FS/cust_credit_bill_pkg.pm')
-rw-r--r-- | FS/FS/cust_credit_bill_pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_credit_bill_pkg.pm b/FS/FS/cust_credit_bill_pkg.pm index 158fc73..019a1a8 100644 --- a/FS/FS/cust_credit_bill_pkg.pm +++ b/FS/FS/cust_credit_bill_pkg.pm @@ -131,7 +131,7 @@ sub insert { my $cust_tax_exempt_pkg = new FS::cust_tax_exempt_pkg { 'billpkgnum' => $self->billpkgnum, 'creditbillpkgnum' => $self->creditbillpkgnum, - 'amount' => 0-$amount, + 'amount' => sprintf('%.2f', 0-$amount), map { $_ => $exemption->$_ } split(',', $groupby) }; my $error = $cust_tax_exempt_pkg->insert; |