Index: /mods/wpsg_mod_rechnungen.class.php
===================================================================
--- /mods/wpsg_mod_rechnungen.class.php	(revision 8191)
+++ /mods/wpsg_mod_rechnungen.class.php	(revision 8192)
@@ -1033,4 +1033,5 @@
 			$oCalculation = new \wpsg\wpsg_calculation();
 			$oCalculationOrder = \wpsg\wpsg_calculation::getOrderCalculation($order_id);
+			$this->shop->view['oCalculationOrder'] = $oCalculationOrder;
 			
 			if (intval($_REQUEST['wpsg_rechnungen_discount_voucher_coupon']??0) > 0) {
@@ -1413,5 +1414,7 @@
 						
 			$arProduct = [];
-			
+			$sum = []; 
+			$sum['weight_gesamt'] = 0;
+
 			$tax_view = WPSG_NETTO;
 			
@@ -1484,6 +1487,4 @@
 			if (($_REQUEST['wpsg_rechnungen_shippay']??'0') === '1') {
 				
-				//die($oOrder->__get('shipping_bruttonetto')."=".$oOrder->__get('shipping_set'));
-				
 				$oCalculation->addShipping(
 					$oOrder->__get('shipping_set'), 
@@ -1501,9 +1502,4 @@
 				
 			}
-			
-			//die(wpsg_debug($oCalculation->getCalculationArray()));
-
-			//wpsg_debug($oCalculation->getCalculationArray(true));
-			//wpsg_debug($oCalculationOrder->getCalculationArray(true));die();
 
 			$this->shop->view['basket'] = [
@@ -2188,5 +2184,5 @@
 			
 			foreach (array($invoice_data) as $id) {
-					
+
 				try {
 				
