Index: /changelog
===================================================================
--- /changelog	(revision 7920)
+++ /changelog	(revision 7921)
@@ -471,2 +471,3 @@
 - Bugfix: Probleme mit bestimmten Cache/SEO Plugins in zusammenhang mit den Produktartikeln gelÃ¶st
 - Bugfix: Vorkasse: Bei Verwendung von Wertgutscheinen wurde der falsche zu ÃŒberweisende Betrag angezeigt
+- Bugfix: Gutscheine/Wertgutscheine die nicht mehrfach verwendbar sind werden im Backend korrekt angezeigt 
Index: /lib/wpsg_calculation.class.php
===================================================================
--- /lib/wpsg_calculation.class.php	(revision 7920)
+++ /lib/wpsg_calculation.class.php	(revision 7921)
@@ -15,4 +15,10 @@
         private $db = null;
 
+	    /**
+	     * Wenn aus einer Bestellung generiert, dann ist hier die BestellID drin
+	     * @var ?int null 
+	     */
+        private $order_id = null;
+        
         /**
          * @var \wpsg_ShopController
@@ -701,5 +707,5 @@
 		                	if ($cr2['type'] === 'product') {
 
-		                		if ($oVoucher->isUsabel($cr2['data']['product_id'])) {
+		                		if ($oVoucher->isUsabel($cr2['data']['product_id'], false)) {
 
 		                			list($scope_set_netto, $scope_set_brutto) = $this->calculateTaxPart($cr2['bruttonetto'], $cr2['set'], $cr2['tax_key']);
@@ -718,5 +724,5 @@
 
 		                }
-
+		                
 						// Netto / Brutto berechnen
 						if ($cr['bruttonetto'] === WPSG_NETTO) {
@@ -1175,4 +1181,6 @@
 
 			if (!wpsg_isSizedInt($id)) return;
+
+			$this->order_id = $id;
 			
             $db_order = $this->db->fetchRow("SELECT O.*, A.`land` FROM `".WPSG_TBL_ORDER."` AS O LEFT JOIN `".WPSG_TBL_ADRESS."` AS A ON (O.`adress_id` = A.`id`) WHERE O.`id` = '".wpsg_q($id)."' ");
Index: /mods/mod_gutschein/wpsg_voucher.php
===================================================================
--- /mods/mod_gutschein/wpsg_voucher.php	(revision 7920)
+++ /mods/mod_gutschein/wpsg_voucher.php	(revision 7921)
@@ -121,10 +121,21 @@
         }
 
-        public function isUsabel($product_id = null) {
-			
-			if (strtotime($this->start_date) > time()) return false;
-			if (strtotime($this->end_date) < time()) return false;
-			if (!$this->isMultiUsable() && $this->getUsed() > 0) return false;
-			if ($this->getFreeAmount() <= 0) return false;
+		/**
+		 * PrÃŒft ob der Gutschein/Coupon anwendbar ist 
+		 * @param null $product_id
+		 * @param bool $bCheckAdd
+		 *
+		 * @return bool
+		 */
+        public function isUsabel($product_id = null, $bCheckAdd = true) {
+			
+        	if ($bCheckAdd) {
+			
+        		if (strtotime($this->start_date) > time()) return false;
+				if (strtotime($this->end_date) < time()) return false;
+				if (!$this->isMultiUsable() && $this->getUsed() > 0) return false;
+				if ($this->getFreeAmount() <= 0) return false;
+				
+	        }
 
 			if ($product_id !== null) {
Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7920)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7921)
@@ -483,5 +483,6 @@
 							WHERE 
 								K.`email` = '".wpsg_q($arCheckout['email'])."' AND
-								K.`id` != '".wpsg_q($temp_customer_id)."'  
+								K.`id` != '".wpsg_q($temp_customer_id)."' AND
+								K.`deleted` != '1'  
 						";
 						 
