Subversion Repositories wpShopGermany4

Rev

Rev 7704 | Rev 8060 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7704 Rev 8013
1
<?php
1
<?php
2
 
2
 
3
    /**
3
    /**
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
5
     */
5
     */
6
	    
6
	    
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
8
	$arTax = $this->view['oCalculation']->getTaxLabelArray();
8
	$arTax = $this->view['oCalculation']->getTaxLabelArray();
9
	$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
9
	$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
10
	     
10
	     
11
    $this->view['colspan'] = 3;
11
    $this->view['colspan'] = 3;
12
    if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
12
    if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
13
    
13
    
14
    $this->view['arCalculation'] = $arCalculation;
14
    $this->view['arCalculation'] = $arCalculation;
15
            
15
            
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
17
    else $display = 'brutto';
17
    else $display = 'brutto';
18
 
18
 
19
?>
19
?>
20
 
20
 
21
<style>
21
<style>
22
 
22
 
23
	.wpsg_row_small td { font-size:0.8em; }
23
	.wpsg_row_small td { font-size:0.8em; }
24
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
24
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
25
	/*.wpsg_productrow_add td { border-top:0px !important; }*/
25
	/*.wpsg_productrow_add td { border-top:0px !important; }*/
26
 
26
 
27
</style>
27
</style>
28
 
28
 
29
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
29
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
30
		\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
30
		\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
31
		\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
31
		\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
32
		\wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
32
		\wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
33
	], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
33
	], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
34
 
34
 
35
<br />
35
<br />
36
 
36
 
37
<table class="wpsg_produkte table">
37
<table class="wpsg_produkte table">
38
	<thead>
38
	<thead>
39
		<tr class="wpsg_kopf">
39
		<tr class="wpsg_kopf">
40
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
40
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
41
			<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
41
			<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
42
			<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
42
			<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
43
				<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
43
				<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
44
			<?php } ?>
44
			<?php } ?>
45
			<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
45
			<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
46
			<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
46
			<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
47
		</tr>
47
		</tr>
48
	</thead>
48
	</thead>
49
	<tbody>
49
	<tbody>
50
 
50
 
51
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
51
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display.'_single']; ?>
52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display.'_single']; ?>
53
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
53
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
54
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
54
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
55
					
55
					
56
					<?php if (wpsg_isTrue($p['eu'])) { ?>
56
					<?php if (wpsg_isTrue($p['eu'])) { ?>
57
						<img src="<?php echo WPSG_URL; ?>views/gfx/eu.png" alt="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" title="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" height="14" />
57
						<img src="<?php echo WPSG_URL; ?>views/gfx/eu.png" alt="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" title="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" height="14" />
58
					<?php } ?>
58
					<?php } ?>
59
					
59
					
60
					<a href="<?php 
60
					<a href="<?php 
61
						
61
						
62
						echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$p['product_id'], 'wpsg-product-edit-'.wpsg_getInt($p['product_id']));						
62
						echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$p['product_id'], 'wpsg-product-edit-'.wpsg_getInt($p['product_id']));						
63
						                
63
						                
64
					?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
64
					?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
65
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
65
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
66
					</a>
66
					</a>
67
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
67
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
68
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.removeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
68
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.removeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
69
				</td>
69
				</td>
70
			</tr>
70
			</tr>
71
            <?php $this->callMods('order_view_row_before', array(&$p, $i)); ?>
71
            <?php $this->callMods('order_view_row_before', array(&$p, $i)); ?>
72
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
72
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
73
				<td class="wpsg_cell_name"></td>
73
				<td class="wpsg_cell_name"></td>
74
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
74
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
75
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>					
75
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>					
76
					<td class="wpsg_cell_mwst"><?php 
76
					<td class="wpsg_cell_mwst"><?php 
77
							
77
							
78
						echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
78
						echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
79
							
79
							
80
					?></td>					
80
					?></td>					
81
				<?php } ?>
81
				<?php } ?>
82
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
82
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
83
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
83
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
84
			</tr>
84
			</tr>
85
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
85
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
86
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
86
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
87
		<?php } ?>
87
		<?php } ?>
88
		
88
		
89
		<?php // Gutscheine  ?>
89
		<?php // Gutscheine  ?>
90
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
90
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
91
			
91
			
92
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
92
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
93
 
93
 
94
				<tr class="wpsg_row_discount wpsg_row_small">
94
				<tr class="wpsg_row_discount wpsg_row_small">
95
					<td colspan="" class="wpsg_cell_mwst_label">
95
					<td colspan="" class="wpsg_cell_mwst_label">
96
 
96
 
97
						<div>
97
						<div>
98
							<?php echo __('Gutschein', 'wpsg'); ?>
98
							<?php echo __('Gutschein', 'wpsg'); ?>
99
							
99
							
100
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
100
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
101
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
101
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
102
							<?php } else { ?>
102
							<?php } else { ?>
103
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
103
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
104
							<?php } ?>
104
							<?php } ?>
105
 
105
 
106
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
106
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
107
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
107
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
108
						</div>
108
						</div>
109
						<div>
109
						<div>
110
							Code: <?php echo $v['code']; ?>
110
							Code: <?php echo $v['code']; ?>
111
						</div>
111
						</div>
112
 
112
 
113
					</td>
113
					</td>
114
					<td class="wpsg_cell_preis">
114
					<td class="wpsg_cell_preis">
115
						
115
						
116
						<?php if (strpos($v['set'], '%') === false) { ?>
116
						<?php if (strpos($v['set'], '%') === false) { ?>
117
							<?php echo wpsg_ff($v[$display], $this->get_option('wpsg_currency')); ?>
117
							<?php echo wpsg_ff($v[$display], $this->get_option('wpsg_currency')); ?>
118
						<?php } else { ?>
118
						<?php } else { ?>
119
							<?php echo wpsg_ff($v['set'], '%'); ?>
119
							<?php echo wpsg_ff($v['set'], '%'); ?>
120
						<?php } ?>
120
						<?php } ?>
121
						
121
						
122
					</td>
122
					</td>
123
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
123
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
124
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
124
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
125
					<?php } ?>
125
					<?php } ?>
126
					<td>1</td>
126
					<td>1</td>
127
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php 
127
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php 
128
							
128
							
129
						echo wpsg_ff($v[$display]); ?> <?php echo $this->get_option('wpsg_currency');
129
						echo wpsg_ff($p['amount'] * $product_price / $v['set']); ?> <?php echo $this->get_option('wpsg_currency');
130
						
130
						
131
						if (strpos($v['set'], '%') !== false) { 
131
						if (strpos($v['set'], '%') !== false) { 
132
 
132
 
133
							echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($v['set']), '%').')</span>';
133
							echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($v['set']), '%').')</span>';
134
 
134
 
135
						} 
135
						} 
136
							
136
							
137
					?></td>
137
					?></td>
138
				</tr>
138
				</tr>
139
			
139
			
140
			<?php } ?>
140
			<?php } ?>
141
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
141
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
142
		
142
		
143
		<?php } ?>
143
		<?php } ?>
144
 
144
 
145
		<tr class="wpsg_row_summe">
145
		<tr class="wpsg_row_summe">
146
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
146
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
147
				
147
				
148
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
148
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
149
					
149
					
150
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
150
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
151
				
151
				
152
				<?php } else { ?>
152
				<?php } else { ?>
153
					
153
					
154
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
154
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
155
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
155
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
156
					<?php } else { ?>
156
					<?php } else { ?>
157
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
157
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
158
					<?php } ?>
158
					<?php } ?>
159
				
159
				
160
				<?php } ?>
160
				<?php } ?>
161
 
161
 
162
			</td>
162
			</td>
163
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
163
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
164
				
164
				
165
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
165
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
166
 
166
 
167
			</td>
167
			</td>
168
		</tr>
168
		</tr>
169
		
169
		
170
		<?php // Versandkosten  ?>
170
		<?php // Versandkosten  ?>
171
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
171
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
172
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
172
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
173
			<tr class="wpsg_row_shipping">
173
			<tr class="wpsg_row_shipping">
174
				<td class="wpsg_cell_shipping_label" colspan="2">
174
				<td class="wpsg_cell_shipping_label" colspan="2">
175
					<?php echo __('Versandkosten', 'wpsg'); ?>
175
					<?php echo __('Versandkosten', 'wpsg'); ?>
176
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
176
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
177
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>"  onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
177
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>"  onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
178
				</td>
178
				</td>
179
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
179
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
180
				<td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
180
				<td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
181
				<?php } ?>
181
				<?php } ?>
182
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
182
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
183
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
183
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
184
					<?php echo $this->get_option('wpsg_currency'); ?>
184
					<?php echo $this->get_option('wpsg_currency'); ?>
185
					
185
					
186
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) { 
186
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) { 
187
 
187
 
188
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
188
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
189
 
189
 
190
					} ?>
190
					} ?>
191
					
191
					
192
				</td>
192
				</td>
193
			</tr>
193
			</tr>
194
		<?php } ?>
194
		<?php } ?>
195
		
195
		
196
		<?php // Zahlungskosten  ?>
196
		<?php // Zahlungskosten  ?>
197
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
197
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
198
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
198
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
199
			<tr class="wpsg_row_payment">
199
			<tr class="wpsg_row_payment">
200
				<td colspan="2" class="wpsg_cell_payment_label">
200
				<td colspan="2" class="wpsg_cell_payment_label">
201
					<?php echo __('Zahlungsart', 'wpsg'); ?>
201
					<?php echo __('Zahlungsart', 'wpsg'); ?>
202
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
202
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
203
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
203
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
204
				</td>
204
				</td>
205
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
205
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
206
					<td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
206
					<td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
207
				<?php } ?>
207
				<?php } ?>
208
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
208
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
209
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
209
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
210
					<?php echo $this->get_option('wpsg_currency'); ?>
210
					<?php echo $this->get_option('wpsg_currency'); ?>
211
					
211
					
212
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
212
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
213
						
213
						
214
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
214
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
215
						
215
						
216
					} ?>
216
					} ?>
217
					
217
					
218
				</td>
218
				</td>
219
			</tr>
219
			</tr>
220
		<?php } ?>
220
		<?php } ?>
221
		
221
		
222
		<?php // Rabatte  ?>
222
		<?php // Rabatte  ?>
223
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>			
223
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>			
224
			<?php foreach ($arCalculation['discount'] as $d) { ?>
224
			<?php foreach ($arCalculation['discount'] as $d) { ?>
225
				<tr class="wpsg_row_discount wpsg_row_small">
225
				<tr class="wpsg_row_discount wpsg_row_small">
226
					<td colspan="" class="wpsg_cell_mwst_label">
226
					<td colspan="" class="wpsg_cell_mwst_label">
227
						
227
						
228
						<?php echo __('Rabatt', 'wpsg'); ?>
228
						<?php echo __('Rabatt', 'wpsg'); ?>
229
						
229
						
230
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
230
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
231
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
231
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
232
						<?php } else { ?>
232
						<?php } else { ?>
233
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
233
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
234
						<?php } ?>
234
						<?php } ?>
235
 
235
 
236
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
236
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
237
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
237
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
238
 
238
 
239
					</td>
239
					</td>
240
					<td class="wpsg_cell_preis">
240
					<td class="wpsg_cell_preis">
241
						
241
						
242
						<?php if (strpos($d['set'], '%') === false) { ?>
242
						<?php if (strpos($d['set'], '%') === false) { ?>
243
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
243
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
244
						<?php } else { ?>
244
						<?php } else { ?>
245
							<?php echo wpsg_ff($d['set'], '%'); ?>
245
							<?php echo wpsg_ff($d['set'], '%'); ?>
246
						<?php } ?>
246
						<?php } ?>
247
						
247
						
248
					</td>
248
					</td>
249
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
249
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
250
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
250
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
251
					<?php } ?>
251
					<?php } ?>
252
					<td></td>
252
					<td></td>
253
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
253
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
254
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
254
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
255
					</td>
255
					</td>
256
				</tr>
256
				</tr>
257
			<?php } ?>
257
			<?php } ?>
258
		<?php } ?>
258
		<?php } ?>
259
		
259
		
260
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
260
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
261
			
261
			
262
			<tr class="wpsg_row_gesamt">
262
			<tr class="wpsg_row_gesamt">
263
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
263
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
264
					<?php echo __('Summe', 'wpsg'); ?>
264
					<?php echo __('Summe', 'wpsg'); ?>
265
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
265
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
266
				</td>
266
				</td>
267
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
267
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
268
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
268
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
269
				</td>
269
				</td>
270
			</tr>
270
			</tr>
271
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
271
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
272
				<tr class="wpsg_row_mwst wpsg_row_small">
272
				<tr class="wpsg_row_mwst wpsg_row_small">
273
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
273
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
274
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
274
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
275
					</td>
275
					</td>
276
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
276
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
277
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
277
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
278
					</td>
278
					</td>
279
				</tr>
279
				</tr>
280
			<?php } } ?>
280
			<?php } } ?>
281
			<tr class="wpsg_row_gesamt">
281
			<tr class="wpsg_row_gesamt">
282
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
282
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
283
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
283
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
284
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
284
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
285
				</td>
285
				</td>
286
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
286
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
287
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
287
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
288
				</td>
288
				</td>
289
			</tr>
289
			</tr>
290
			
290
			
291
		<?php } else { ?>
291
		<?php } else { ?>
292
 
292
 
293
			<tr class="wpsg_row_gesamt">
293
			<tr class="wpsg_row_gesamt">
294
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
294
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
295
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
295
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
296
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
296
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
297
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
297
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
298
					<?php } else { ?>
298
					<?php } else { ?>
299
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
299
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
300
					<?php } ?>
300
					<?php } ?>
301
				</td>
301
				</td>
302
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
302
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
303
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
303
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
304
				</td>
304
				</td>
305
			</tr>			
305
			</tr>			
306
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
306
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
307
				<tr class="wpsg_row_mwst wpsg_row_small">
307
				<tr class="wpsg_row_mwst wpsg_row_small">
308
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
308
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
309
						<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
309
						<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
310
							<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
310
							<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
311
						<?php } else { ?>
311
						<?php } else { ?>
312
							<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
312
							<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
313
						<?php } ?>
313
						<?php } ?>
314
					</td>
314
					</td>
315
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
315
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
316
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
316
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
317
					</td>
317
					</td>
318
				</tr>
318
				</tr>
319
			<?php } } ?>
319
			<?php } } ?>
320
			
320
			
321
		<?php } ?>
321
		<?php } ?>
322
		
322
		
323
		<?php // Wertgutscheine  ?>
323
		<?php // Wertgutscheine  ?>
324
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
324
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
325
			
325
			
326
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
326
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
327
 
327
 
328
				<tr class="wpsg_row_discount wpsg_row_small">
328
				<tr class="wpsg_row_discount wpsg_row_small">
329
					<td colspan="" class="wpsg_cell_mwst_label">
329
					<td colspan="" class="wpsg_cell_mwst_label">
330
 
330
 
331
						<div>
331
						<div>
332
							<?php echo __('Wertgutschein', 'wpsg'); ?>
332
							<?php echo __('Wertgutschein', 'wpsg'); ?>
333
							
333
							
334
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
334
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
335
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
335
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
336
							<?php } else { ?>
336
							<?php } else { ?>
337
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
337
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
338
							<?php } ?>
338
							<?php } ?>
339
 
339
 
340
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgtschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
340
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgtschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
341
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
341
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
342
						</div>
342
						</div>
343
						<div>
343
						<div>
344
							Code: <?php echo $c['code']; ?>
344
							Code: <?php echo $c['code']; ?>
345
						</div>
345
						</div>
346
 
346
 
347
					</td>
347
					</td>
348
					<td class="wpsg_cell_preis">
348
					<td class="wpsg_cell_preis">
349
						
349
						
350
						<?php if (strpos($c['set'], '%') === false) { ?>
350
						<?php if (strpos($c['set'], '%') === false) { ?>
351
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
351
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
352
						<?php } else { ?>
352
						<?php } else { ?>
353
							<?php echo wpsg_ff($c['set'], '%'); ?>
353
							<?php echo wpsg_ff($c['set'], '%'); ?>
354
						<?php } ?>
354
						<?php } ?>
355
 
355
 
356
					</td>
356
					</td>
357
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
357
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
358
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
358
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
359
					<?php } ?>
359
					<?php } ?>
360
					<td>1</td>
360
					<td>1</td>
361
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
361
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
362
							
362
							
363
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
363
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
364
							
364
							
365
							if (strpos($c['set'], '%') !== false) {
365
							if (strpos($c['set'], '%') !== false) {
366
								
366
								
367
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
367
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
368
								
368
								
369
							}
369
							}
370
						
370
						
371
						?></td>
371
						?></td>
372
				</tr>
372
				</tr>
373
			
373
			
374
			<?php } ?>
374
			<?php } ?>
375
 
375
 
376
			<tr class="wpsg_row_gesamt">
376
			<tr class="wpsg_row_gesamt">
377
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
377
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
378
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
378
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
379
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
379
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
380
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
380
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
381
					<?php } else { ?>
381
					<?php } else { ?>
382
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
382
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
383
					<?php } ?>
383
					<?php } ?>
384
				</td>
384
				</td>
385
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
385
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
386
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
386
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
387
				</td>
387
				</td>
388
			</tr>
388
			</tr>
389
		
389
		
390
		<?php } ?>	
390
		<?php } ?>	
391
	
391
	
392
	</tbody>
392
	</tbody>
393
</table>
393
</table>
394
 
394
 
395
<?php // wpsg_debug($arCalculation);  ?>
395
<?php // wpsg_debug($arCalculation);  ?>
396
	
396