summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-12-04 21:13:01 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-12-04 21:13:01 +0000
commit0d597c59f2fd55cde905f2c233fe3d0b8c29c3b8 (patch)
tree1955c9671bbfe221553d4f6b1f92a5c9b899280d
parentfb569c118e8e8525763a963b3cdb2df83461f582 (diff)
Fix for db error in 1607680
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@714 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/AA.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 592d8d24..e9d8c938 100755
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -326,10 +326,10 @@ sub post_transaction {
fx_transaction, cleared)
VALUES (?, (SELECT id FROM chart
WHERE accno = ?),
- ? * ?, ?, ?, ?, ?, ?)|;
+ ?, ?, ?, ?, ?, ?)|;
@queryargs = ($form->{id}, $ref->{accno},
- $ref->{amount}, $ml, $form->{transdate},
+ $ref->{amount} * $ml, $form->{transdate},
$ref->{project_id}, $ref->{description},
$ref->{fx_transaction}, $ref->{cleared});
$dbh->prepare($query)->execute(@queryargs)