From d0dd5bac82823cb92b4747b77b9ac9d0251217df Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 10 Jul 2010 09:43:13 +0000 Subject: [PATCH] should fix intermittent "Illegal (money) amount" error applying credits to invoices when using texas tax, RT#8930 --- FS/FS/cust_credit_bill_pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_credit_bill_pkg.pm b/FS/FS/cust_credit_bill_pkg.pm index 158fc73a7..019a1a874 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; -- 2.11.0