[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1490] trunk/LedgerSMB/IS.pm
- Subject: SF.net SVN: ledger-smb: [1490] trunk/LedgerSMB/IS.pm
- From: ..hidden..
- Date: Sat, 01 Sep 2007 11:29:22 -0700
Revision: 1490
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1490&view=rev
Author: einhverfr
Date: 2007-09-01 11:29:22 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
Fixing sales invoice posting.
Modified Paths:
--------------
trunk/LedgerSMB/IS.pm
Modified: trunk/LedgerSMB/IS.pm
===================================================================
--- trunk/LedgerSMB/IS.pm 2007-09-01 18:18:51 UTC (rev 1489)
+++ trunk/LedgerSMB/IS.pm 2007-09-01 18:29:22 UTC (rev 1490)
@@ -1492,7 +1492,7 @@
ordnumber = ?,
quonumber = ?,
transdate = ?,
- customer_id = ?,
+ entity_id = ?,
amount = ?,
netamount = ?,
paid = ?,
@@ -1513,14 +1513,13 @@
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},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.