summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-18 18:54:37 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-18 18:54:37 +0000
commita5563154d13467c169eadb7858d15694133a2b2a (patch)
treeb7f2d663a04f74403031002530f5ee55d02aacd8
parenta351bce79ac21032bbb61a8220bc80293f9bc9d5 (diff)
Fixing customer_id not found error
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1209 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index e441d474..d9ad0805 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2395,7 +2395,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);