From 59ee9949bbc5ed9681b8c7ca5fb50ffe0ec7538b Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 18 May 2007 17:22:01 +0000 Subject: Fixing customer_id not found error git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1208 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 54d3be51..d582601f 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -2416,7 +2416,7 @@ sub lastname_used { 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); -- cgit v1.2.3