summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/IR.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index ad7c437a..8523b870 100755
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -274,7 +274,7 @@ sub post_invoice {
SET trans_id = ?,
parts_id = ?,
description = ?,
- qty = ? * -1,
+ qty = ?,
sellprice = ?,
fxsellprice = ?,
discount = ?,
@@ -288,7 +288,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"},