summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/Form.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 9883839c..3d43b8a6 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2248,7 +2248,8 @@ sub create_links {
c.language_code, a.ponumber, a.reverse,
a.approved
FROM $arap a
- JOIN entity_credit_account c USING (entity_id)
+ JOIN entity_credit_account c
+ ON (a.entity_credit_account = c.id)
JOIN entity ce ON (ce.id = c.entity_id)
LEFT JOIN employee er ON (er.entity_id = a.person_id)
LEFT JOIN entity e ON (er.entity_id = e.id)