Index: /changelog
===================================================================
--- /changelog	(revision 8385)
+++ /changelog	(revision 8386)
@@ -617,2 +617,3 @@
 - Bugfix: Alternative Produktansicht mit Produktkombinationen
 - Bugfix: PHP 8.2 Fehler bei Rechnungen ohne Farbe
+- Feature: Suche nach Firmennamen beim Anlegen neuer Bestellungen
Index: /lib/install.php
===================================================================
--- /lib/install.php	(revision 8385)
+++ /lib/install.php	(revision 8386)
@@ -100,4 +100,5 @@
    		ustidnr VARCHAR(100) NOT NULL,   		
    		custom TEXT NOT NULL,
+   		comment TEXT NOT NULL,
    		adress_id INT(11) NOT NULL COMMENT 'Link zu WPSG_TBL_ADRESS (Kundenadresse)',
    		deleted INT(11) NOT NULL COMMENT 'Markierung fÃŒr gelÃ¶schte Kunden',
Index: /model/wpsg_customer.class.php
===================================================================
--- /model/wpsg_customer.class.php	(revision 8385)
+++ /model/wpsg_customer.class.php	(revision 8386)
@@ -500,6 +500,5 @@
 		} // public static function count($arFilter)
 
-		public static function find($arFilter = array())
-		{
+		public static function find($arFilter = array()) {
 
 			list($strQuerySELECT, $strQueryWHERE, $strQueryJOIN, $strQueryHAVING, $strQueryORDER) = self::getQueryParts($arFilter);
@@ -525,5 +524,5 @@
 					".$strQueryORDER."		
 				".$strLimit."
-			";	
+			";
 			
 			$arCustomerID = $GLOBALS['wpsg_db']->fetchAssocField($strQuery);
@@ -550,6 +549,5 @@
         }
         
-		public static function getQueryParts($arFilter = array())
-		{
+		public static function getQueryParts($arFilter = array()) {
 
 			$strQuerySELECT = "";
@@ -565,6 +563,5 @@
 			";
 
-			if (wpsg_isSizedString($arFilter['email']))
-			{
+			if (wpsg_isSizedString($arFilter['email'])) {
 				
 				$strQueryWHERE .= " AND K.`email` = '".wpsg_q($arFilter['email'])."' ";
@@ -574,6 +571,5 @@
 			if (wpsg_isSizedInt($arFilter['group_id'])) $strQueryWHERE .= " AND `group_id` = '".wpsg_q($arFilter['group_id'])."' ";
 
-			if (wpsg_isSizedString($arFilter['s']))
-			{
+			if (wpsg_isSizedString($arFilter['s'])) {
 
 			    $bJoinAdress = true;
@@ -583,4 +579,5 @@
 						CA.`name` LIKE '%".wpsg_q($arFilter['s'])."%' OR
 						CA.`vname` LIKE '%".wpsg_q($arFilter['s'])."%' OR
+						CA.`firma` LIKE '%".wpsg_q($arFilter['s'])."%' OR
 						K.`email` LIKE '%".wpsg_q($arFilter['s'])."%' OR
 						K.`id` = '".wpsg_q($arFilter['s'])."' OR
@@ -590,5 +587,5 @@
 					)
 				";
-
+				
 			}
 			
Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 8385)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 8386)
@@ -79,5 +79,4 @@
 			$sql = "CREATE TABLE ".WPSG_TBL_KU." (
 		   		passwort_saltmd5 VARCHAR(255) NOT NULL,
-		   		comment TEXT NOT NULL,
 		   		wp_user_id INT(11) DEFAULT 0 NOT NULL,
 				last_login DATETIME NOT NULL COMMENT 'Datum des letzten Logins',
