[freeside-commits] freeside/FS/FS cust_credit_bill_pkg.pm,1.6,1.7

Ivan,,, ivan at wavetail.420.am
Sat Jul 10 02:43:15 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv29538

Modified Files:
	cust_credit_bill_pkg.pm 
Log Message:
should fix intermittent "Illegal (money) amount" error applying credits to invoices when using texas tax, RT#8930

Index: cust_credit_bill_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_credit_bill_pkg.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- cust_credit_bill_pkg.pm	21 Dec 2009 14:44:09 -0000	1.6
+++ cust_credit_bill_pkg.pm	10 Jul 2010 09:43:13 -0000	1.7
@@ -131,7 +131,7 @@
       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;



More information about the freeside-commits mailing list