Subversion Repositories wpShopGermany4

Rev

Rev 8267 | 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>
8280 daniel 52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display.'_single'];
53
 
54
			$oProduct = wpsg_product::getInstance(intval($p['product_id']));
55
			if (($p['product_key']??'') !== '') $oProduct->setProductKey($p['product_key']);
56
 
57
			?>
7197 daniel 58
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
7210 daniel 59
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
60
 
61
					<?php if (wpsg_isTrue($p['eu'])) { ?>
62
						<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" />
63
					<?php } ?>
64
 
7590 daniel 65
					<a href="<?php
66
 
67
						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']));
68
 
69
					?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
8280 daniel 70
						<?php echo wpsg_hspc($oProduct->getProductName(false)); ?>
7197 daniel 71
					</a>
72
					<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 73
					<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 74
				</td>
7210 daniel 75
			</tr>
7704 daniel 76
            <?php $this->callMods('order_view_row_before', array(&$p, $i)); ?>
7210 daniel 77
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
78
				<td class="wpsg_cell_name"></td>
7197 daniel 79
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
7243 daniel 80
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
81
					<td class="wpsg_cell_mwst"><?php
82
 
83
						echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
84
 
85
					?></td>
7197 daniel 86
				<?php } ?>
87
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
88
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
89
			</tr>
90
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
91
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
92
		<?php } ?>
93
 
94
		<?php // Gutscheine  ?>
95
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
96
 
97
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
7179 daniel 98
 
7197 daniel 99
				<tr class="wpsg_row_discount wpsg_row_small">
100
					<td colspan="" class="wpsg_cell_mwst_label">
101
 
102
						<div>
103
							<?php echo __('Gutschein', 'wpsg'); ?>
104
 
105
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
106
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
107
							<?php } else { ?>
108
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
109
							<?php } ?>
110
 
7486 daniel 111
							<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>
112
							<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 113
						</div>
114
						<div>
115
							Code: <?php echo $v['code']; ?>
116
						</div>
117
 
118
					</td>
119
					<td class="wpsg_cell_preis">
120
 
121
						<?php if (strpos($v['set'], '%') === false) { ?>
7486 daniel 122
							<?php echo wpsg_ff($v[$display], $this->get_option('wpsg_currency')); ?>
7197 daniel 123
						<?php } else { ?>
124
							<?php echo wpsg_ff($v['set'], '%'); ?>
125
						<?php } ?>
126
 
127
					</td>
128
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
129
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
130
					<?php } ?>
131
					<td>1</td>
7349 daniel 132
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
133
 
8060 daniel 134
						echo wpsg_ff($v['set']); ?> <?php echo $this->get_option('wpsg_currency');
7349 daniel 135
 
7486 daniel 136
						if (strpos($v['set'], '%') !== false) {
7349 daniel 137
 
7486 daniel 138
							echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($v['set']), '%').')</span>';
7349 daniel 139
 
140
						}
141
 
142
					?></td>
7197 daniel 143
				</tr>
144
 
145
			<?php } ?>
146
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
147
 
148
		<?php } ?>
149
 
150
		<tr class="wpsg_row_summe">
151
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
152
 
153
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
7179 daniel 154
 
7197 daniel 155
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
156
 
157
				<?php } else { ?>
158
 
159
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
160
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
161
					<?php } else { ?>
162
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
163
					<?php } ?>
164
 
165
				<?php } ?>
166
 
167
			</td>
168
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
169
 
170
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
171
 
172
			</td>
173
		</tr>
174
 
175
		<?php // Versandkosten  ?>
176
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
177
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
178
			<tr class="wpsg_row_shipping">
179
				<td class="wpsg_cell_shipping_label" colspan="2">
180
					<?php echo __('Versandkosten', 'wpsg'); ?>
181
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
182
					<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>
183
				</td>
184
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
8266 karl 185
 
186
				<td><?php echo (($arCalculation['shipping'][0]['brutto'] === $arCalculation['shipping'][0]['netto'])?wpsg_ff(0, '%'):$arTaxShort[$arCalculation['shipping'][0]['tax_key']]); ?></td>
187
 
7197 daniel 188
				<?php } ?>
189
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
190
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
191
					<?php echo $this->get_option('wpsg_currency'); ?>
7347 daniel 192
 
193
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) {
194
 
195
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
196
 
197
					} ?>
198
 
7197 daniel 199
				</td>
200
			</tr>
201
		<?php } ?>
202
 
203
		<?php // Zahlungskosten  ?>
204
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
205
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
206
			<tr class="wpsg_row_payment">
207
				<td colspan="2" class="wpsg_cell_payment_label">
208
					<?php echo __('Zahlungsart', 'wpsg'); ?>
209
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
210
					<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>
211
				</td>
212
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
8266 karl 213
 
214
					<td><?php echo (($arCalculation['payment'][0]['brutto'] === $arCalculation['payment'][0]['netto'])?wpsg_ff(0, '%'):$arTaxShort[$arCalculation['payment'][0]['tax_key']]); ?></td>
215
 
7197 daniel 216
				<?php } ?>
217
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
218
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
219
					<?php echo $this->get_option('wpsg_currency'); ?>
7347 daniel 220
 
221
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
222
 
223
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
224
 
225
					} ?>
226
 
7197 daniel 227
				</td>
228
			</tr>
229
		<?php } ?>
230
 
231
		<?php // Rabatte  ?>
232
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>
233
			<?php foreach ($arCalculation['discount'] as $d) { ?>
234
				<tr class="wpsg_row_discount wpsg_row_small">
235
					<td colspan="" class="wpsg_cell_mwst_label">
7179 daniel 236
 
7197 daniel 237
						<?php echo __('Rabatt', 'wpsg'); ?>
238
 
7179 daniel 239
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
240
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
241
						<?php } else { ?>
242
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
243
						<?php } ?>
244
 
7197 daniel 245
						<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>
246
						<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>
247
 
248
					</td>
249
					<td class="wpsg_cell_preis">
250
 
7198 daniel 251
						<?php if (strpos($d['set'], '%') === false) { ?>
252
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
7197 daniel 253
						<?php } else { ?>
7198 daniel 254
							<?php echo wpsg_ff($d['set'], '%'); ?>
7197 daniel 255
						<?php } ?>
256
 
257
					</td>
258
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
259
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
260
					<?php } ?>
261
					<td></td>
262
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
263
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
264
					</td>
265
				</tr>
266
			<?php } ?>
267
		<?php } ?>
268
 
269
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
270
 
271
			<tr class="wpsg_row_gesamt">
272
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
273
					<?php echo __('Summe', 'wpsg'); ?>
274
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
7179 daniel 275
				</td>
7197 daniel 276
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
277
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
7179 daniel 278
				</td>
7197 daniel 279
			</tr>
280
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
281
				<tr class="wpsg_row_mwst wpsg_row_small">
282
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
283
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
284
					</td>
285
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
286
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
287
					</td>
288
				</tr>
289
			<?php } } ?>
290
			<tr class="wpsg_row_gesamt">
291
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
292
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
293
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
7179 daniel 294
				</td>
7197 daniel 295
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
296
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
297
				</td>
7179 daniel 298
			</tr>
299
 
7197 daniel 300
		<?php } else { ?>
7173 daniel 301
 
7197 daniel 302
			<tr class="wpsg_row_gesamt">
303
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
304
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
305
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
306
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
307
					<?php } else { ?>
308
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
7179 daniel 309
					<?php } ?>
7197 daniel 310
				</td>
311
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
312
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
313
				</td>
314
			</tr>
8139 daniel 315
 
316
            <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
317
                 <tr class="wpsg_row_mwst wpsg_row_small">
318
                    <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis" colspan="<?php echo $this->view['colspan'] + 1; ?>">
319
                        <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
320
                    </td>
321
                 </tr>
322
            <?php } else { ?>
323
 
324
                <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
325
                    <tr class="wpsg_row_mwst wpsg_row_small">
326
                        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
327
                            <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
328
                        </td>
329
                        <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
330
                            <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
331
                        </td>
332
                    </tr>
333
                <?php } } ?>
334
 
335
            <?php } ?>
7197 daniel 336
 
337
		<?php } ?>
7486 daniel 338
 
339
		<?php // Wertgutscheine  ?>
340
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
341
 
342
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
343
 
344
				<tr class="wpsg_row_discount wpsg_row_small">
345
					<td colspan="" class="wpsg_cell_mwst_label">
346
 
347
						<div>
348
							<?php echo __('Wertgutschein', 'wpsg'); ?>
349
 
350
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
351
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
352
							<?php } else { ?>
353
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
354
							<?php } ?>
355
 
356
							<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>
357
							<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>
358
						</div>
359
						<div>
360
							Code: <?php echo $c['code']; ?>
361
						</div>
362
 
363
					</td>
364
					<td class="wpsg_cell_preis">
365
 
366
						<?php if (strpos($c['set'], '%') === false) { ?>
367
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
368
						<?php } else { ?>
369
							<?php echo wpsg_ff($c['set'], '%'); ?>
370
						<?php } ?>
371
 
372
					</td>
373
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
374
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
375
					<?php } ?>
376
					<td>1</td>
377
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
378
 
379
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
380
 
381
							if (strpos($c['set'], '%') !== false) {
382
 
383
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
384
 
385
							}
386
 
387
						?></td>
388
				</tr>
389
 
390
			<?php } ?>
391
 
392
			<tr class="wpsg_row_gesamt">
393
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
394
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
395
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
396
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
397
					<?php } else { ?>
398
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
399
					<?php } ?>
400
				</td>
401
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
402
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
403
				</td>
404
			</tr>
405
 
406
		<?php } ?>
7197 daniel 407
 
408
	</tbody>
409
</table>
7216 daniel 410
 
7490 daniel 411
<?php // wpsg_debug($arCalculation);  ?>
7210 daniel 412