]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/LICENSES.pm
Eine ausgewählte Währung nicht mit der Standardwährung überschreiben.
[kivitendo-erp.git] / SL / LICENSES.pm
index 25b4d66eec2cbf1888955ea81c3c2dcef6d88d2e..8f9c0259206c70ff332b2df2e7af6e5dd1da92f1 100644 (file)
@@ -68,11 +68,6 @@ sub save_license {
   $sth->execute || $form->dberror($query);
   $sth->finish();
 
-  if ($form->{own_product}) {
-    $form->update_balance($dbh, "parts", "onhand", qq|id = $form->{parts_id}|,
-                          1);
-  }
-
   $dbh->disconnect();
 
   $main::lxdebug->leave_sub();
@@ -127,7 +122,7 @@ sub search {
   if ($form->{"customer_name"}) {
     $f .= " AND " if ($f);
     $f .=
-      "(customer_id IN (SELECT id FROM customer WHERE name ILIKE "
+      "(l.customer_id IN (SELECT id FROM customer WHERE name ILIKE "
       . $dbh->quote('%' . $form->{"customer_name"} . '%') . "))";
   }