From b119931d2f74d3d0a6a2d3292154c175f534acf4 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 20 Dec 2007 01:25:01 +0000 Subject: Fixing flawed invoice behavior git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1985 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AA.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LedgerSMB/AA.pm') 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"} ); -- cgit v1.2.3