summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/OE.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm
index b5bbc6a4..6fd5aeca 100755
--- a/LedgerSMB/OE.pm
+++ b/LedgerSMB/OE.pm
@@ -2546,7 +2546,7 @@ sub consolidate_orders {
$amount += $ref->{amount};
$netamount += $ref->{netamount};
- $id = $dbh->quore($id);
+ $id = $dbh->quote($id);
foreach $item
(@{ $oe{orderitems}{$curr}{$id} }) {
@@ -2605,9 +2605,7 @@ sub consolidate_orders {
department_id = $department_id
WHERE id = $id|;
$sth = $dbh->prepare($query);
- $sth->execute (
- $department_id, $id
- ) || $form->dberror($query);
+ $sth->execute () || $form->dberror($query);
# add items