Subversion Repositories wpShopGermany4

Rev

Rev 8139 | Rev 8267 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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