Index: /controller/wpsg_OrderController.class.php
===================================================================
--- /controller/wpsg_OrderController.class.php	(revision 8088)
+++ /controller/wpsg_OrderController.class.php	(revision 8089)
@@ -1244,10 +1244,10 @@
                     
 				} else if (wpsg_isSizedString($_REQUEST['do'], 'updatePrice')) {
-			
+
 		        	parse_str($_REQUEST['form_data'], $form_data);
 		        	
 					$product_key = $_REQUEST['product_id'];					
 					$this->shop->callMods('getProductKeyFromRequest',[&$product_key, $_REQUEST['product_id'], $form_data]);
-					
+
 					$arProduct = $this->shop->loadProduktArray($_REQUEST['product_id'],['product_key' => $product_key]);
 					 
@@ -1586,6 +1586,4 @@
 					} else if ($_REQUEST['wpsg_action'] == 'writeRechnung') {
 
-						// Buggy
-
 						$nWriteRechnung = 0;
 
@@ -1635,4 +1633,27 @@
 						{
 
+							// Damit alle Produkte der Bestellung ausgewÃ€hlt werden
+							if(!$_REQUEST['invoice_products'] ) {
+
+								$db_invoice_products = $this->db->fetchAssoc("
+									SELECT
+										*
+									FROM
+										`".WPSG_TBL_ORDERPRODUCT."` 
+									WHERE
+										`o_id` = '".wpsg_q($k)."'
+								");
+				
+								foreach ($db_invoice_products as $p) {
+									$v[$p['id']] = [
+											'set' => '1',
+											'amount' => $p['menge']
+										];
+								}
+				
+								$_REQUEST['invoice_products'] = $v;
+
+							}
+
 							$bRechnungExists = $this->db->fetchOne("SELECT COUNT(*) FROM `".WPSG_TBL_RECHNUNGEN."` WHERE `rnr` != '' AND `o_id` = '".wpsg_q($k)."' AND `storno` = '0000-00-00 00:00:00'");
 
@@ -1646,5 +1667,5 @@
 								{
 
-									$this->shop->callMod('wpsg_mod_rechnungen', 'writeRechnung', array($k, false, false));
+									$this->shop->callMod('wpsg_mod_rechnungen', 'writeRechnung', [$k, false, false]);
 									$arIDs[] = $k;
 									$nWriteRechnung ++;
@@ -1671,8 +1692,8 @@
 						{
 
+							// Downloadlink buggy
 							$this->addBackendMessage(
-								'nohspc_'.
-								wpsg_translate(__('#1# Rechnungen geschrieben', 'wpsg'), $nWriteRechnung).
-								' <a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&noheader=1&do=writeMultiRechnung&ids='.implode('_', $arIDs).'" target="_new">'.__('Download', 'wpsg').'</a>'
+								'nohspc_'.wpsg_translate(__('#1# Rechnungen geschrieben', 'wpsg'), $nWriteRechnung)
+								//.' <a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&noheader=1&do=writeMultiRechnung&ids='.implode('_', $arIDs).'" target="_new">'.__('Download', 'wpsg').'</a>'
 							);
 
@@ -1745,11 +1766,11 @@
 
 						} else {
-
+							
 							$this->shop->callMod('wpsg_mod_rechnungen', 'writeMultiRechnung', [$arIDs, $bPreview]); 
-							
+
+							// Downloadlink buggy
 							if (!$bPreview) $this->addBackendMessage(
-								'nohspc_'.
-								wpsg_translate(__('#1# Rechnungen als Sammelechnung geschrieben', 'wpsg'), $nWriteRechnung).
-								' <a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&noheader=1&do=writeMultiRechnung&ids='.implode('_', $arIDs).'" target="_new">'.__('Download', 'wpsg').'</a>'
+								'nohspc_'.wpsg_translate(__('Rechnungen als Sammelechnung geschrieben', 'wpsg'))
+								//.' <a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&noheader=1&do=writeMultiRechnung&ids='.implode('_', $arIDs).'" target="_new">'.__('Download', 'wpsg').'</a>'
 							);
 
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 8088)
+++ /controller/wpsg_ShopController.class.php	(revision 8089)
@@ -1208,4 +1208,8 @@
 			
 			if (method_exists($this->arModule[$mod_key], $func_name)) {
+
+				// wpsg_debug($this->arModule[$mod_key]);
+				// wpsg_debug($func_name);
+				// wpsg_debug($arParam);
 
 				return call_user_func_array(array($this->arModule[$mod_key], $func_name), $arParam);
Index: /mods/wpsg_mod_rechnungen.class.php
===================================================================
--- /mods/wpsg_mod_rechnungen.class.php	(revision 8088)
+++ /mods/wpsg_mod_rechnungen.class.php	(revision 8089)
@@ -1208,8 +1208,8 @@
 			
 			$bOK = false;
-			
+
 			// PrÃŒfen das Produkte gesetzt sind
 			foreach ($_REQUEST['invoice_products']??[] as $order_product_id => $order_product_info) {
-			
+
 				if ($order_product_info['set'] === '1') {
 					
@@ -1243,5 +1243,7 @@
 			$this->shop->view['kunde']['land'] = $this->db->fetchRow("SELECT L.* FROM `".WPSG_TBL_LAND."` AS L WHERE L.`id` = '".wpsg_q($this->shop->view['kunde']['land'])."'");
 			$this->shop->view['data']['shipping_land'] = $this->db->fetchRow("SELECT L.* FROM `".WPSG_TBL_LAND."` AS L WHERE L.`id` = '".wpsg_q(wpsg_getStr($this->shop->view['data']['shipping_land']))."'");
-			
+
+			$_REQUEST['wpsg_rechnungen_datum'] = date("Y-m-d", strtotime($_REQUEST['wpsg_rechnungen_datum']));
+
 			if (wpsg_checkInput($_REQUEST['wpsg_rechnungen_datum'], WPSG_SANITIZE_DATE_EN)) $this->shop->view['rDatum'] = date('d.m.Y', strtotime($_REQUEST['wpsg_rechnungen_datum']));
 			else throw \wpsg\Exception::getSanitizeException();
@@ -1275,4 +1277,6 @@
 			$this->shop->view['payment'] = $this->shop->getPaymentName(@$this->shop->view['data']['type_payment'], $order_id);
 			$this->shop->view['fussText'] = $this->shop->replaceUniversalPlatzhalter(wpsg_sinput("text_field", @$_REQUEST['wpsg_rechnungen_fusstext']), $order_id);
+
+			$_REQUEST['wpsg_rechnungen_faelligkeitsdatum'] = date("Y-m-d", strtotime($_REQUEST['wpsg_rechnungen_faelligkeitsdatum']));
 			
 			if ($_REQUEST['wpsg_rechnungen_faelligkeit'] == '1') {
Index: /views/order/index.phtml
===================================================================
--- /views/order/index.phtml	(revision 8088)
+++ /views/order/index.phtml	(revision 8089)
@@ -471,5 +471,5 @@
                         } else {
 							
-							el_doaction.style.display = 'block';
+							el_doaction.style.display = 'inline-block';
 							
                         }
