From 1438fa7c55e2174fe74aafdb70d13d174a52e42d Mon Sep 17 00:00:00 2001 From: christopherm Date: Tue, 17 Apr 2007 20:05:55 +0000 Subject: 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 --- LedgerSMB/IR.pm | 4 ++-- 1 file 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"}, -- cgit v1.2.3