From f6762a3469fbce0e233c958990ba6a5096540e0a Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 1 Sep 2007 18:29:22 +0000 Subject: Fixing sales invoice posting. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1490 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/IS.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm index 0877b215..489f16d4 100644 --- a/LedgerSMB/IS.pm +++ b/LedgerSMB/IS.pm @@ -1492,7 +1492,7 @@ sub post_invoice { ordnumber = ?, quonumber = ?, transdate = ?, - customer_id = ?, + entity_id = ?, amount = ?, netamount = ?, paid = ?, @@ -1513,14 +1513,13 @@ sub post_invoice { ponumber = ? WHERE id = ? |; - $sth = $dbh->prepare($query); $sth->execute( $form->{invnumber}, $form->{ordnumber}, - $form->{quonumber}, $form->{transdate}, + $form->{quonumber}, $form->{transdate} || 'now', $form->{customer_id}, $invamount, $invnetamount, $form->{paid}, - $form->{datepaid}, $form->{duedate}, + $form->{datepaid} || 'now', $form->{duedate} || 'now', $form->{shippingpoint}, $form->{shipvia}, $form->{terms}, $form->{notes}, $form->{intnotes}, $form->{taxincluded}, -- cgit v1.2.3