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

SF.net SVN: ledger-smb:[2837] branches/1.2/bin/io.pl



Revision: 2837
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2837&view=rev
Author:   einhverfr
Date:     2010-01-15 01:06:41 +0000 (Fri, 15 Jan 2010)

Log Message:
-----------
Correcting bug with rounding error fix

Modified Paths:
--------------
    branches/1.2/bin/io.pl

Modified: branches/1.2/bin/io.pl
===================================================================
--- branches/1.2/bin/io.pl	2009-12-22 23:07:46 UTC (rev 2836)
+++ branches/1.2/bin/io.pl	2010-01-15 01:06:41 UTC (rev 2837)
@@ -256,10 +256,10 @@
                 }
             }
         }
-
         $linetotal = $form->round_amount( $form->{"sellprice_$i"}
-                                          * (1 - ($form->{"discount_$i"} / 100),
+                                          * (1 - ($form->{"discount_$i"} / 100)),
                                           $decimalplaces);
+
         $linetotal = $form->round_amount( $linetotal * $form->{"qty_$i"}, 2 );
 
         if (


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