[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1209] trunk/LedgerSMB/Form.pm



Revision: 1209
          http://svn.sourceforge.net/ledger-smb/?rev=1209&view=rev
Author:   einhverfr
Date:     2007-05-18 11:54:37 -0700 (Fri, 18 May 2007)

Log Message:
-----------
Fixing customer_id not found error

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2007-05-18 17:22:01 UTC (rev 1208)
+++ trunk/LedgerSMB/Form.pm	2007-05-18 18:54:37 UTC (rev 1209)
@@ -2395,7 +2395,7 @@
 			ct.notes, 
 			ct.curr AS currency
 		FROM $vc ct
-		WHERE ct.id = (select customer_id from $arap where $where AND ${vc}_id IS NOT NULL order by id DESC limit 1)|;
+		WHERE ct.id = (select ${vc}_id from $arap where $where AND ${vc}_id IS NOT NULL order by id DESC limit 1)|;
 
     $sth = $dbh->prepare($query);
     $sth->execute() || $self->dberror($query);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.