Subversion Repositories wpShopGermany4

Rev

Rev 8069 | Rev 8072 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8069 Rev 8071
Line 189... Line 189...
189
	};
189
	};
190
	
190
	
191
    $rhead_count = 1;
191
    $rhead_count = 1;
192
    $sum_multi_offset = 0;
192
    $sum_multi_offset = 0;
193
    $orders = $this->view['multi_data']['orders']; 
193
    $orders = $this->view['multi_data']['orders']; 
194
 
194
     	
195
    $sum_topay_brutto = 0;
-
 
196
    $sum_topay_netto = 0;
-
 
197
    $sum_productsum_brutto = 0;
-
 
198
    $sum_productsum_netto = 0;
-
 
199
    $sum_shipping_brutto = 0;
-
 
200
    $sum_shipping_netto = 0;
-
 
201
    $sum_payment_brutto = 0;
-
 
202
    $sum_payment_netto = 0;
-
 
203
    	
-
 
204
	// moMwSt
195
	// moMwSt
205
	$bNoTax = false;
196
	$bNoTax = false;
206
	
197
	
207
	$bTaxCol = false;
198
	$bTaxCol = false;
208
	if ($this->get_option('wpsg_showMwstAlways') === '1') $bTaxCol = true;
199
	if ($this->get_option('wpsg_showMwstAlways') === '1') $bTaxCol = true;
Line 722... Line 713...
722
	if ($this->get_option('wpsg_kleinunternehmer')) {
713
	if ($this->get_option('wpsg_kleinunternehmer')) {
723
		
714
		
724
		$pdf->Text($prod_left, $prod_top + $offset + 10, __("Es ergibt sich folgender Gesamtbetrag", "wpsg").':');
715
		$pdf->Text($prod_left, $prod_top + $offset + 10, __("Es ergibt sich folgender Gesamtbetrag", "wpsg").':');
725
		$pdf->Text($prod_left + 80, $prod_top + $offset, __("Summe", "wpsg"));
716
		$pdf->Text($prod_left + 80, $prod_top + $offset, __("Summe", "wpsg"));
726
		$pdf->setXY($prod_left + 140, $prod_top + $offset - 5);
717
		$pdf->setXY($prod_left + 140, $prod_top + $offset - 5);
727
		$pdf->Cell(37, 8, wpsg_ff($sum_productsum_brutto + $arCalculation['sum']['preis_rabatt'], $this->get_option('wpsg_currency')), 0, 0, 'R');
718
		$pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R');
728
		
719
		
729
		$offset += 5;
720
		$offset += 5;
730
		
721
		
731
	} else {
722
	} else {
732
		
723
		
Line 788... Line 779...
788
		
779
		
789
		$pdf->setFont('Arial', '', '9');
780
		$pdf->setFont('Arial', '', '9');
790
		$pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R');
781
		$pdf->Cell(37, 8, wpsg_ff($arCalculation['sum']['brutto'], $this->get_option('wpsg_currency')), 0, 0, 'R');
791
		$pdf->setFont('Arial', '', '9');
782
		$pdf->setFont('Arial', '', '9');
792
 
783
 
-
 
784
		foreach ($this->view['multi_data']['order_data'] as $order_data) {
-
 
785
        
793
        foreach ($orders as $oCoupons){
786
			$arCalculationOrder = $order_data['arCalculation'];
794
 
787
 
795
            foreach ($arCalculation['coupon'] as $c) {
788
            foreach ($arCalculationOrder['coupon'] as $c) {
796
                
789
                
797
                $offset += 5;
790
                $offset += 5;
798
                $pdf->Text($prod_left + 80, $prod_top + $offset + 10, __('Wertgutschein', 'wpsg').' '.((wpsg_isSizedString($c['code']))?'('.$c['code'].')':''));
791
                $pdf->Text($prod_left + 80, $prod_top + $offset + 10, __('Wertgutschein', 'wpsg').' '.((wpsg_isSizedString($c['code']))?'('.$c['code'].')':''));
799
                $pdf->setXY($prod_left + 140, $prod_top + $offset + 10 - 5);
792
                $pdf->setXY($prod_left + 140, $prod_top + $offset + 10 - 5);
800
                
793
                
Line 870... Line 863...
870
	
863
	
871
	$shipping_adress = false;
864
	$shipping_adress = false;
872
		
865
		
873
	$offset += 5;
866
	$offset += 5;
874
		
867
		
875
	if (!file_exists($this->callMod('wpsg_mod_rechnungen', 'getFilePath', array($data['id'])))) {
-
 
876
		
-
 
877
		mkdir($this->callMod('wpsg_mod_rechnungen', 'getFilePath', array($data['id'])), 0777, true);
-
 
878
		
-
 
879
	}
-
 
880
		
-
 
881
	$filename = $this->view['filename'].".pdf";
868
	$filename = $this->view['filename'].".pdf";
882
	 
869
	 
883
	if ($this->view['preview']) {
870
	if ($this->view['preview']) {
884
 
871
 
885
		//$pdf->Output($this->callMod('wpsg_mod_rechnungen', 'getFilePath', array('multi')).$filename, 'F');
872
		//$pdf->Output($this->callMod('wpsg_mod_rechnungen', 'getFilePath', array('multi')).$filename, 'F');
Line 887... Line 874...
887
		
874
		
888
	    exit;
875
	    exit;
889
		
876
		
890
	} else {
877
	} else {
891
		
878
		
892
		$pdf->Output($this->callMod('wpsg_mod_rechnungen', 'getFilePath', array('multi')).$filename, 'F');
-
 
893
		
-
 
894
		// Hier wird der Dateiname an FPD übergeben. Er soll sich aus der Rechnungsnummer ergeben, auch wenn das Dokument über die ID gespeichert ist.
-
 
895
		if ($this->view['output'] === true) $pdf->Output($this->view['filename_out'], 'I');
879
		$pdf->Output($this->view['file_path'], 'F');
896
		
880
		
897
	}
881
	}
898
 
882
 
899
883