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

SF.net SVN: ledger-smb:[5270] branches/1.3/LedgerSMB/Tax.pm



Revision: 5270
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5270&view=rev
Author:   einhverfr
Date:     2012-11-27 07:04:49 +0000 (Tue, 27 Nov 2012)
Log Message:
-----------
Correcting Tax handling when tax is ended and no new rate added

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

Modified: branches/1.3/LedgerSMB/Tax.pm
===================================================================
--- branches/1.3/LedgerSMB/Tax.pm	2012-11-27 04:13:01 UTC (rev 5269)
+++ branches/1.3/LedgerSMB/Tax.pm	2012-11-27 07:04:49 UTC (rev 5270)
@@ -69,6 +69,7 @@
         }
         $sth->execute($taxaccount, $form->{transdate}) || $form->dberror($query);
         my $ref = $sth->fetchrow_hashref;
+        next unless $ref;
 
         my $module = $ref->{'taxmodulename'};
         require "LedgerSMB/Taxes/${module}.pm";

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