From a79e8c5a8ee3d201d160659dde6e14cdd77f7298 Mon Sep 17 00:00:00 2001 From: christopherm Date: Tue, 17 Apr 2007 20:08:22 +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/branches/1.2@1077 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 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"}, -- cgit v1.2.3