summaryrefslogtreecommitdiff
path: root/LedgerSMB/GL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/GL.pm')
-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;