From f8dc7be89795df90ba69c366e84142f52a06223c Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 17 Jul 2007 15:55:29 +0000 Subject: Fixed: Timecards ignore price matrix (bug 1754099) git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1417 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/JC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LedgerSMB/JC.pm b/LedgerSMB/JC.pm index c9addc51..dbcf916c 100755 --- a/LedgerSMB/JC.pm +++ b/LedgerSMB/JC.pm @@ -134,11 +134,11 @@ sub jcitems_links { if ( $form->{project_id} ) { $form->{orphaned} = 1; - $query = qq|SELECT parts_id FROM project WHERE id = ?|; + $query = qq|SELECT parts_id, customer_id FROM project WHERE id = ?|; my $sth = $dbh->prepare($query); $sth->execute( $form->{project_id} ); - - if ( $sth->fetchrow_array ) { + ($parts_id, $form->{customer_id} ) = $sth->fetchrow_array ; + if ( $parts_id ) { $form->{project} = 'job'; $query = qq| SELECT id -- cgit v1.2.3