[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2568] branches/1.2/bin/io.pl
- Subject: SF.net SVN: ledger-smb:[2568] branches/1.2/bin/io.pl
- From: ..hidden..
- Date: Sat, 18 Apr 2009 17:53:48 +0000
Revision: 2568
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2568&view=rev
Author: einhverfr
Date: 2009-04-18 17:53:48 +0000 (Sat, 18 Apr 2009)
Log Message:
-----------
Correcting tax rounding bug which causes erroneous change on POS systems
Modified Paths:
--------------
branches/1.2/bin/io.pl
Modified: branches/1.2/bin/io.pl
===================================================================
--- branches/1.2/bin/io.pl 2009-04-17 22:32:40 UTC (rev 2567)
+++ branches/1.2/bin/io.pl 2009-04-18 17:53:48 UTC (rev 2568)
@@ -88,6 +88,7 @@
* $form->parse_amount(\%myconfig, $form->{"qty_$i"})
* (1 - $form->parse_amount(\%myconfig, $form->{"discount_$i"})
/ 100);
+ $linetotal = $form->round_amount($linetotal, 2);
@taxaccounts = Tax::init_taxes(
$form, $form->{"taxaccounts_$i"},
$form->{'taxaccounts'}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.