summaryrefslogtreecommitdiff
path: root/LedgerSMB/IR.pm
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 20:08:22 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-17 20:08:22 +0000
commita79e8c5a8ee3d201d160659dde6e14cdd77f7298 (patch)
tree54c97bef9e964cb8228e97265b0380d380a89461 /LedgerSMB/IR.pm
parent48c5a6bdafc90445177aed9c1ff692f27e0c7075 (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/branches/1.2@1077 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/IR.pm')
-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"},