diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 04:41:47 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-17 04:41:47 +0000 |
commit | 72a1ff33990ce6900423865db7703e8e4180848d (patch) | |
tree | d28c427a7b0f5503d6439673653440bd4b26802c /LedgerSMB | |
parent | 012939a121e1ca3ccfd3215bf8e4b91e3bb316e2 (diff) |
Fixing constraint issue saving over existing sales/purchase order
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@924 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/OE.pm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm index 47a2b3f4..b5bbc6a4 100755 --- a/LedgerSMB/OE.pm +++ b/LedgerSMB/OE.pm @@ -486,18 +486,11 @@ sub save { @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, |