[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4714] branches/1.3



Revision: 4714
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4714&view=rev
Author:   einhverfr
Date:     2012-05-14 13:56:18 +0000 (Mon, 14 May 2012)
Log Message:
-----------
Correcting internal server errors on tax lookup

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Tax.pm

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-05-14 07:53:28 UTC (rev 4713)
+++ branches/1.3/Changelog	2012-05-14 13:56:18 UTC (rev 4714)
@@ -14,6 +14,7 @@
 * Fixed file uploads sometimes throwing action not found errors (Chris T)
 * Fixed helpful DB error messages not displayed (Chris T)
 * Fixing Form.pm so that max_post_size = -1 behaves as in CGI::Simple (Chris T)
+* Fixed internal server error on tax lookup (Chris T)
 
 Mark L is Matt Lubratt
 

Modified: branches/1.3/LedgerSMB/Tax.pm
===================================================================
--- branches/1.3/LedgerSMB/Tax.pm	2012-05-14 07:53:28 UTC (rev 4713)
+++ branches/1.3/LedgerSMB/Tax.pm	2012-05-14 13:56:18 UTC (rev 4714)
@@ -82,7 +82,8 @@
         $tax->chart( $ref->{'chart'} );
         $tax->description( $ref->{'description'} );
         $tax->value( Math::BigFloat->bzero() );
-        $tax->minvalue($ref->{'minvalue'});
+        $tax->minvalue(Math::BigFloat->new($ref->{'minvalue'} || 0));
+        $tax->maxvalue(Math::BigFloat->new($ref->{'maxvalue'} || 0));
 
         push @taxes, $tax;
         $sth->finish;#should this not be out of foreach loop?, to examine

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.