[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1417] branches/1.2/LedgerSMB/JC.pm
- Subject: SF.net SVN: ledger-smb: [1417] branches/1.2/LedgerSMB/JC.pm
- From: ..hidden..
- Date: Tue, 17 Jul 2007 08:55:29 -0700
Revision: 1417
http://svn.sourceforge.net/ledger-smb/?rev=1417&view=rev
Author: einhverfr
Date: 2007-07-17 08:55:29 -0700 (Tue, 17 Jul 2007)
Log Message:
-----------
Fixed: Timecards ignore price matrix (bug 1754099)
Modified Paths:
--------------
branches/1.2/LedgerSMB/JC.pm
Modified: branches/1.2/LedgerSMB/JC.pm
===================================================================
--- branches/1.2/LedgerSMB/JC.pm 2007-07-17 02:46:41 UTC (rev 1416)
+++ branches/1.2/LedgerSMB/JC.pm 2007-07-17 15:55:29 UTC (rev 1417)
@@ -134,11 +134,11 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.