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

SF.net SVN: ledger-smb: [924] branches/1.2/LedgerSMB/OE.pm



Revision: 924
          http://svn.sourceforge.net/ledger-smb/?rev=924&view=rev
Author:   einhverfr
Date:     2007-03-16 21:41:47 -0700 (Fri, 16 Mar 2007)

Log Message:
-----------
Fixing constraint issue saving over existing sales/purchase order

Modified Paths:
--------------
    branches/1.2/LedgerSMB/OE.pm

Modified: branches/1.2/LedgerSMB/OE.pm
===================================================================
--- branches/1.2/LedgerSMB/OE.pm	2007-03-17 02:03:32 UTC (rev 923)
+++ branches/1.2/LedgerSMB/OE.pm	2007-03-17 04:41:47 UTC (rev 924)
@@ -486,18 +486,11 @@
 			@queryargs = ();
 			# save detail record in orderitems table
 			$query = qq|INSERT INTO orderitems (|;
-			if ($form->{"orderitems_id_$i"}){
-				$query .= "id, ";
-			}
 			$query .= qq|
 				trans_id, parts_id, description, qty, sellprice,
 				discount, unit, reqdate, project_id, ship, 
 				serialnumber, notes)
                    		VALUES (|;
-			if ($form->{"orderitems_id_$i"}){
-				$query .= "?, ";
-				push @queryargs, $form->{"orderitems_id_$i"};
-			}
       			$query .= qq| ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|;
 			$sth = $dbh->prepare($query);
 			push (@queryargs, 


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