]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Form.pm
Umwandlung von Angebot nach Auftrag hat nach Fehler verursacht, da gleiches Modul
[kivitendo-erp.git] / SL / Form.pm
index e5203f737d780e1301b29d0d7afdfbaefc5c96a0..d43e51fb1e28f5ac92b177e7b48d078c0b1af8bd 100644 (file)
@@ -1507,8 +1507,9 @@ sub add_shipto {
                        shiptophone = ? AND
                        shiptofax = ? AND
                        shiptoemail = ? AND
                        shiptophone = ? AND
                        shiptofax = ? AND
                        shiptoemail = ? AND
-                       module = ?|;
-      my $insert_check = selectfirst_hashref_query($self, $dbh, $query, @values, $module);
+                       module = ? AND 
+                       trans_id = ?|;
+      my $insert_check = selectfirst_hashref_query($self, $dbh, $query, @values, $module, $id);
       if(!$insert_check){
         $query =
           qq|INSERT INTO shipto (trans_id, shiptoname, shiptodepartment_1, shiptodepartment_2,
       if(!$insert_check){
         $query =
           qq|INSERT INTO shipto (trans_id, shiptoname, shiptodepartment_1, shiptodepartment_2,