summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-06 07:11:55 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-06 07:11:55 +0000
commit1a514b64a3521fbf3ecfe27b767aed5c07dfe7e8 (patch)
tree2c766341d9b6a15e704121d4e9caaa5ebfcbc07e
parent6bfe5a56288000412826c500aabb76d3a2486331 (diff)
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
-rw-r--r--Changelog1
-rw-r--r--INSTALL2
-rwxr-xr-xLedgerSMB/GL.pm4
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;