[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [595] trunk/LedgerSMB/IS.pm



Revision: 595
          http://svn.sourceforge.net/ledger-smb/?rev=595&view=rev
Author:   tetragon
Date:     2006-11-14 09:34:00 -0800 (Tue, 14 Nov 2006)

Log Message:
-----------
Some fixes for posting sales invoices

Modified Paths:
--------------
    trunk/LedgerSMB/IS.pm

Modified: trunk/LedgerSMB/IS.pm
===================================================================
--- trunk/LedgerSMB/IS.pm	2006-11-14 17:24:29 UTC (rev 594)
+++ trunk/LedgerSMB/IS.pm	2006-11-14 17:34:00 UTC (rev 595)
@@ -1269,7 +1269,7 @@
 					     VALUES (?, (SELECT id FROM chart
 					                  WHERE accno = ?),
 					            ?, ?)|;
-				$sth = $dbh->prpare($query);
+				$sth = $dbh->prepare($query);
 				$sth->execute(
 					$form->{id}, $form->{AR}, $amount, 
 					$form->{"datepaid_$i"}) 
@@ -1286,12 +1286,12 @@
 				INSERT INTO acc_trans 
 				            (trans_id, chart_id, amount, 
 				            transdate, source, memo, cleared)
-                  		     VALUES ($?, (SELECT id FROM chart
+                  		     VALUES (?, (SELECT id FROM chart
 		                                   WHERE accno = ?),
 		  		            ?, ?, ?, ?, ?)|;
 
 			$sth = $dbh->prepare($query); 
-			$sth->prepare(
+			$sth->execute(
 				$form->{id}, $accno, $amount, 
 				$form->{"datepaid_$i"}, $form->{"source_$i"},
 				$form->{"memo_$i"}, $cleared) 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.