summaryrefslogtreecommitdiff
path: root/LedgerSMB
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 /LedgerSMB
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/GL.pm4
1 files changed, 2 insertions, 2 deletions
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;