summaryrefslogtreecommitdiff
path: root/LedgerSMB/IR.pm
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 20:05:55 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 20:05:55 +0000
commit1438fa7c55e2174fe74aafdb70d13d174a52e42d (patch)
tree997a9081ecc07e77fe8fdd87c1be1c12d377793f /LedgerSMB/IR.pm
parentdd86414b916db1e2dd8da72c1d7504fa5ffdf409 (diff)
Fixing vendor invoice issue where * -1 in prepared query caused type problems
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1076 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/IR.pm')
-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"},