summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r--LedgerSMB/AA.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index de95fbda..835dbe0d 100644
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -337,7 +337,7 @@ sub post_transaction {
SET invnumber = ?,
ordnumber = ?,
transdate = ?,
- entity_id = ?,
+ entity_credit_account = ?,
taxincluded = ?,
amount = ?,
duedate = ?,
@@ -1040,10 +1040,10 @@ sub get_name {
c.language_code, $duedate AS duedate,
b.discount AS tradediscount,
b.description AS business
- FROM $form->{vc} c
+ FROM entity_credit_account c
JOIN entity ON (entity.id = c.entity_id)
LEFT JOIN business b ON (b.id = c.business_id)
- WHERE c.entity_id = ?|;
+ WHERE c.id = ?|;
# TODO: Add location join
@queryargs = ( $form->{"$form->{vc}_id"} );