Subversion Repositories wpShopGermany4

Rev

Rev 8266 | 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 (($arCalculation['shipping'][0]['brutto'] === $arCalculation['shipping'][0]['netto'])?wpsg_ff(0, '%'):$arTaxShort[$arCalculation['shipping'][0]['tax_key']]); ?></td>
182
 
7197 daniel 183
				<?php } ?>
184
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
185
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
186
					<?php echo $this->get_option('wpsg_currency'); ?>
7347 daniel 187
 
188
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) {
189
 
190
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
191
 
192
					} ?>
193
 
7197 daniel 194
				</td>
195
			</tr>
196
		<?php } ?>
197
 
198
		<?php // Zahlungskosten  ?>
199
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
200
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
201
			<tr class="wpsg_row_payment">
202
				<td colspan="2" class="wpsg_cell_payment_label">
203
					<?php echo __('Zahlungsart', 'wpsg'); ?>
204
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
205
					<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>
206
				</td>
207
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
8266 karl 208
 
209
					<td><?php echo (($arCalculation['payment'][0]['brutto'] === $arCalculation['payment'][0]['netto'])?wpsg_ff(0, '%'):$arTaxShort[$arCalculation['payment'][0]['tax_key']]); ?></td>
210
 
7197 daniel 211
				<?php } ?>
212
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
213
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
214
					<?php echo $this->get_option('wpsg_currency'); ?>
7347 daniel 215
 
216
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
217
 
218
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
219
 
220
					} ?>
221
 
7197 daniel 222
				</td>
223
			</tr>
224
		<?php } ?>
225
 
226
		<?php // Rabatte  ?>
227
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>
228
			<?php foreach ($arCalculation['discount'] as $d) { ?>
229
				<tr class="wpsg_row_discount wpsg_row_small">
230
					<td colspan="" class="wpsg_cell_mwst_label">
7179 daniel 231
 
7197 daniel 232
						<?php echo __('Rabatt', 'wpsg'); ?>
233
 
7179 daniel 234
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
235
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
236
						<?php } else { ?>
237
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
238
						<?php } ?>
239
 
7197 daniel 240
						<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>
241
						<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>
242
 
243
					</td>
244
					<td class="wpsg_cell_preis">
245
 
7198 daniel 246
						<?php if (strpos($d['set'], '%') === false) { ?>
247
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
7197 daniel 248
						<?php } else { ?>
7198 daniel 249
							<?php echo wpsg_ff($d['set'], '%'); ?>
7197 daniel 250
						<?php } ?>
251
 
252
					</td>
253
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
254
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
255
					<?php } ?>
256
					<td></td>
257
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
258
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
259
					</td>
260
				</tr>
261
			<?php } ?>
262
		<?php } ?>
263
 
264
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
265
 
266
			<tr class="wpsg_row_gesamt">
267
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
268
					<?php echo __('Summe', 'wpsg'); ?>
269
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
7179 daniel 270
				</td>
7197 daniel 271
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
272
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
7179 daniel 273
				</td>
7197 daniel 274
			</tr>
275
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
276
				<tr class="wpsg_row_mwst wpsg_row_small">
277
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
278
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
279
					</td>
280
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
281
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
282
					</td>
283
				</tr>
284
			<?php } } ?>
285
			<tr class="wpsg_row_gesamt">
286
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
287
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
288
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
7179 daniel 289
				</td>
7197 daniel 290
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
291
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
292
				</td>
7179 daniel 293
			</tr>
294
 
7197 daniel 295
		<?php } else { ?>
7173 daniel 296
 
7197 daniel 297
			<tr class="wpsg_row_gesamt">
298
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
299
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
300
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
301
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
302
					<?php } else { ?>
303
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
7179 daniel 304
					<?php } ?>
7197 daniel 305
				</td>
306
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
307
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
308
				</td>
309
			</tr>
8139 daniel 310
 
311
            <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
312
                 <tr class="wpsg_row_mwst wpsg_row_small">
313
                    <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis" colspan="<?php echo $this->view['colspan'] + 1; ?>">
314
                        <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
315
                    </td>
316
                 </tr>
317
            <?php } else { ?>
318
 
319
                <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
320
                    <tr class="wpsg_row_mwst wpsg_row_small">
321
                        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
322
                            <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
323
                        </td>
324
                        <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
325
                            <?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
326
                        </td>
327
                    </tr>
328
                <?php } } ?>
329
 
330
            <?php } ?>
7197 daniel 331
 
332
		<?php } ?>
7486 daniel 333
 
334
		<?php // Wertgutscheine  ?>
335
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
336
 
337
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
338
 
339
				<tr class="wpsg_row_discount wpsg_row_small">
340
					<td colspan="" class="wpsg_cell_mwst_label">
341
 
342
						<div>
343
							<?php echo __('Wertgutschein', 'wpsg'); ?>
344
 
345
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
346
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
347
							<?php } else { ?>
348
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
349
							<?php } ?>
350
 
351
							<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>
352
							<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>
353
						</div>
354
						<div>
355
							Code: <?php echo $c['code']; ?>
356
						</div>
357
 
358
					</td>
359
					<td class="wpsg_cell_preis">
360
 
361
						<?php if (strpos($c['set'], '%') === false) { ?>
362
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
363
						<?php } else { ?>
364
							<?php echo wpsg_ff($c['set'], '%'); ?>
365
						<?php } ?>
366
 
367
					</td>
368
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
369
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
370
					<?php } ?>
371
					<td>1</td>
372
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
373
 
374
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
375
 
376
							if (strpos($c['set'], '%') !== false) {
377
 
378
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
379
 
380
							}
381
 
382
						?></td>
383
				</tr>
384
 
385
			<?php } ?>
386
 
387
			<tr class="wpsg_row_gesamt">
388
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
389
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
390
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
391
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
392
					<?php } else { ?>
393
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
394
					<?php } ?>
395
				</td>
396
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
397
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
398
				</td>
399
			</tr>
400
 
401
		<?php } ?>
7197 daniel 402
 
403
	</tbody>
404
</table>
7216 daniel 405
 
7490 daniel 406
<?php // wpsg_debug($arCalculation);  ?>
7210 daniel 407