From c2f3e31ee16b527315a3c6ffde4f4001c431f9ee Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 19 Oct 2007 06:05:41 +0000 Subject: Some voucher fixes git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1795 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/GL.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'LedgerSMB/GL.pm') diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index 502bb0e9..834bf8f0 100644 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -101,12 +101,11 @@ sub post_transaction { $uid .= "$$"; $query = qq| - INSERT INTO gl (reference, employee_id) - VALUES ('$uid', (SELECT id FROM employee - WHERE login = ?))|; + INSERT INTO gl (reference) + VALUES ('$uid')|; $sth = $dbh->prepare($query); - $sth->execute( $form->{login} ) || $form->dberror($query); + $sth->execute() || $form->dberror($query); $query = qq| SELECT id -- cgit v1.2.3