summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 15:57:11 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 15:57:11 +0000
commit478075a6c2d3e8d12d1b40189f0929ba40d70269 (patch)
treeedd20f9fb33dcfc57ebffd653b35c1b81aae51bb
parentafb86944515aa5800b5c393cb6f76a5cee0b65f8 (diff)
Fixed: Timecards ignore price matrix (bug 1754099)
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1418 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/JC.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/JC.pm b/LedgerSMB/JC.pm
index c9addc51..936aeee2 100644
--- a/LedgerSMB/JC.pm
+++ b/LedgerSMB/JC.pm
@@ -138,7 +138,8 @@ sub jcitems_links {
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