Index: /changelog
===================================================================
--- /changelog	(revision 7944)
+++ /changelog	(revision 7945)
@@ -482,2 +482,3 @@
 - Bugfix: Gutschein - Zahlbetrag wird bei Wertgutshein und teilweiser Bezahlung korrekt angezeigt
 - Bugfix: PHP8 KompatibilitÃ€t Cron/PDF Barcode
+- Bugfix: Option "Bestellungen fÃŒr 0 EUR direkt abschlieÃen" bezieht sich jetzt auf den zu zahlenden Betrag und nicht auf den Bestellwert (Bei Wertgutscheinen) 
Index: /lib/wpsg_basket.class.php
===================================================================
--- /lib/wpsg_basket.class.php	(revision 7944)
+++ /lib/wpsg_basket.class.php	(revision 7945)
@@ -906,6 +906,5 @@
 					
 					// Bestellung direkt auf "Zahlung akzeptiert setzen" wenn option aktiv ist
-					if ($this->shop->get_option('wpsg_emptyorder_clear') == '1' && $arBasket['sum']['preis_gesamt_brutto'] == 0)
-					{
+					if ($this->shop->get_option('wpsg_emptyorder_clear') == '1' && $oCalculation->getToPay(WPSG_BRUTTO) == 0) {
 						
 						$this->shop->setOrderStatus($o_id, 100, true);
Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7944)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7945)
@@ -930,4 +930,6 @@
 					 
 					$this->registerMail($kunde_data);
+
+					\delete_transient('wpsg_mod_kundenverwaltung_mathcaptcha_result');
 					
 					//$_SESSION['wpsg']['checkout']['id'] = wpsg_xss($kunde_id); *** ersetzt um den WP-User anzumelden ***
