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

SF.net SVN: ledger-smb:[3049] branches/1.2



Revision: 3049
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3049&view=rev
Author:   einhverfr
Date:     2010-08-17 02:28:35 +0000 (Tue, 17 Aug 2010)

Log Message:
-----------
Fixing HST/Tax Expiration bug

Modified Paths:
--------------
    branches/1.2/bin/is.pl
    branches/1.2/ledgersmb-httpd.conf

Modified: branches/1.2/bin/is.pl
===================================================================
--- branches/1.2/bin/is.pl	2010-08-12 17:31:52 UTC (rev 3048)
+++ branches/1.2/bin/is.pl	2010-08-17 02:28:35 UTC (rev 3049)
@@ -541,11 +541,11 @@
     if ( !$form->{taxincluded} ) {
         foreach $item (keys %{$form->{taxes}}) {
             my $taccno = $item;
-            next if !$form->{"${taccno}_total"};
 	    $form->{invtotal} += $form->round_amount($form->{taxes}{$item}, 2);
             $form->{"${taccno}_total"} =
                   $form->format_amount( \%myconfig,
                     $form->round_amount( $form->{taxes}{$item}, 2 ), 2 );
+            next if !$form->{"${taccno}_total"};
             $tax .= qq|
         <tr>
       	<th align="right">$form->{"${taccno}_description"}</th>

Modified: branches/1.2/ledgersmb-httpd.conf
===================================================================
--- branches/1.2/ledgersmb-httpd.conf	2010-08-12 17:31:52 UTC (rev 3048)
+++ branches/1.2/ledgersmb-httpd.conf	2010-08-17 02:28:35 UTC (rev 3049)
@@ -1,7 +1,7 @@
 
-Alias /ledgersmb WORKING_DIR
+Alias /ledgersmb /usr/local/ledgersmb
 
-<Directory WORKING_DIR>
+<Directory /usr/local/ledgersmb>
   AllowOverride All
   AddHandler cgi-script .pl
   Options ExecCGI Includes FollowSymlinks
@@ -13,27 +13,27 @@
   </Files>
 </Directory>
 
-<Directory WORKING_DIR/users>
+<Directory /usr/local/ledgersmb/users>
   Order Deny,Allow
   Deny from All
 </Directory>
   
-<Directory WORKING_DIR/bin>
+<Directory /usr/local/ledgersmb/bin>
   Order Deny,Allow
   Deny from All
 </Directory>
   
-<Directory WORKING_DIR/utils>
+<Directory /usr/local/ledgersmb/utils>
   Order Deny,Allow
   Deny from All
 </Directory>
   
-<Directory WORKING_DIR/spool>
+<Directory /usr/local/ledgersmb/spool>
   Order Deny,Allow
   Deny from All
 </Directory>
 
-<Directory WORKING_DIR/LedgerSMB>
+<Directory /usr/local/ledgersmb/LedgerSMB>
   Order Deny,Allow
   Deny from All
 </Directory>


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