From 1a514b64a3521fbf3ecfe27b767aed5c07dfe7e8 Mon Sep 17 00:00:00 2001
From: einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>
Date: Sun, 6 May 2007 07:11:55 +0000
Subject: Fixing GL transaction posting bug and correcting typo in INSTALL

git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1125 4979c152-3d1c-0410-bac9-87ea11338e46
---
 Changelog       | 1 +
 INSTALL         | 2 +-
 LedgerSMB/GL.pm | 4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Changelog b/Changelog
index b1196813..3ec35d2b 100644
--- a/Changelog
+++ b/Changelog
@@ -1,6 +1,7 @@
 Changelog for 1.2.5
 * Partsgroup handling corrected on POS and Sales invoice screens (Chris T)
 * Closed books handling is corrected (Chris T)
+* Corrected intermediate rounding issues involving sales tax (Chris T)
 
 Changelog for 1.2.4
 * Fixed internal functions avgcost() and lastcost() to not use float (Joshua D)
diff --git a/INSTALL b/INSTALL
index 5abb54d4..eba83de2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -101,7 +101,7 @@ ledgersmb=> \q
 
 a) Copy 'ledgersmb.conf.default' to 'ledgersmb.conf'
 
-b) Make sure to set the section under [globaldbh] to point to the
+b) Make sure to set the section under [globaldb] to point to the
 central user and session database, using password MYROLEPASSWORD:
 
 [globaldb]
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm
index a5c39dbb..2148050b 100755
--- a/LedgerSMB/GL.pm
+++ b/LedgerSMB/GL.pm
@@ -179,8 +179,8 @@ sub post_transaction {
                 $form->{id},                  $accno,
                 $amount,                      $form->{transdate},
                 $form->{"source_$i"},         $project_id,
-                $form->{"fx_transaction_$i"}, $form->{"memo_$i"},
-                $form->{"cleared_$i"}
+                ($form->{"fx_transaction_$i"} || 0), $form->{"memo_$i"},
+                ($form->{"cleared_$i"} || 0)
             ) || $form->dberror($query);
 
             $posted = 1;
-- 
cgit v1.2.3