summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/IR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index 0afbc827..0fbb4694 100644
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -901,7 +901,7 @@ sub reverse_invoice {
amount, transdate,
project_id)
VALUES (?, ?, ?, ?, ?)|;
- $sth = $dbh->do($query);
+ $sth = $dbh->prepare($query);
$sth->execute(
$pthref->{trans_id},
$ref->{inventory_accno_id},