summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/IR.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index d04f0448..87719d4d 100644
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -276,7 +276,7 @@ sub post_invoice {
SET trans_id = ?,
parts_id = ?,
description = ?,
- qty = ? * -1,
+ qty = ?,
sellprice = ?,
fxsellprice = ?,
discount = ?,
@@ -290,7 +290,7 @@ sub post_invoice {
$sth = $dbh->prepare($query);
$sth->execute(
$form->{id}, $form->{"id_$i"},
- $form->{"description_$i"}, $form->{"qty_$i"},
+ $form->{"description_$i"}, $form->{"qty_$i"} * -1,
$form->{"sellprice_$i"}, $fxsellprice,
$form->{"discount_$i"}, $allocated,
$form->{"unit_$i"}, $form->{"deliverydate_$i"},