Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
|
2 |
|
3 |
/*
|
- |
|
4 |
$oC = new \wpsg\wpsg_calculation();
|
- |
|
5 |
$oC->setCountry(\wpsg_country::getInstance(1));
|
- |
|
6 |
|
- |
|
7 |
$oC->addProduct('1', 0, '100', '1','c');
|
- |
|
8 |
//$oC->addProduct('1', 1, '100', '1','b');
|
- |
|
9 |
$oC->setShipping('1', '0', '0');
|
- |
|
10 |
$oC->setPayment('1', '0', 'c_1');
|
- |
|
11 |
|
- |
|
12 |
$oC->addDiscount('10%','c_1');
|
- |
|
13 |
|
- |
|
14 |
$ar = $oC->getCalculationArray();
|
- |
|
15 |
wpsg_debug($ar);*/
|
- |
|
16 |
|
- |
|
17 |
/**
|
3 |
/**
|
18 |
* Template für die Produkttabelle im Backend der Bestellverwaltung
|
4 |
* Template für die Produkttabelle im Backend der Bestellverwaltung
|
19 |
*/
|
5 |
*/
|
20 |
|
6 |
|
21 |
$arCalculation = $this->view['oCalculation']->getCalculationArray($this->getBackendTaxView());
|
7 |
$arCalculation = $this->view['oCalculation']->getCalculationArray($this->getBackendTaxView());
|
22 |
$arTax = $this->view['oCalculation']->getTaxLabelArray();
|
8 |
$arTax = $this->view['oCalculation']->getTaxLabelArray();
|
23 |
$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
|
9 |
$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
|
24 |
|
10 |
|
25 |
$this->view['colspan'] = 3;
|
11 |
$this->view['colspan'] = 3;
|
26 |
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'] ++;
|
27 |
|
13 |
|
28 |
$this->view['arCalculation'] = $arCalculation;
|
14 |
$this->view['arCalculation'] = $arCalculation;
|
29 |
|
15 |
|
30 |
?>
|
16 |
?>
|
31 |
|
17 |
|
32 |
<style>
|
18 |
<style>
|
33 |
|
19 |
|
34 |
.wpsg_row_small td { font-size:0.8em; }
|
20 |
.wpsg_row_small td { font-size:0.8em; }
|
- |
|
21 |
#wpsg-bs .wpsg_row_small .wpsg-glyphlink-td > span { margin-top:0px; }
|
35 |
|
22 |
|
36 |
</style>
|
23 |
</style>
|
37 |
|
24 |
|
38 |
<table class="wpsg_produkte table">
|
25 |
<table class="wpsg_produkte table">
|
39 |
<tr class="wpsg_kopf">
|
26 |
<tr class="wpsg_kopf">
|
Line 75... |
Line 62... |
75 |
</tr>
|
62 |
</tr>
|
76 |
<?php } */ ?>
|
63 |
<?php } */ ?>
|
77 |
<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
|
64 |
<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
|
78 |
<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
|
65 |
<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
|
79 |
<?php } ?>
|
66 |
<?php } ?>
|
- |
|
67 |
|
80 |
<?php /* $gs_id = 0;
|
68 |
<?php /* Gutscheine */ ?>
|
81 |
if ((isset($this->view['basket']['gs'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>
|
69 |
<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
|
- |
|
70 |
|
82 |
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_gutschein">
|
71 |
<?php foreach ($arCalculation['voucher'] as $v) { ?>
|
83 |
<?php
|
- |
|
- |
|
72 |
|
84 |
$gs_id = 0;
|
73 |
<tr class="wpsg_row_discount wpsg_row_small">
|
85 |
if (array_key_exists('gs_id', $_REQUEST))
|
74 |
<td colspan="" class="wpsg_cell_mwst_label">
|
- |
|
75 |
|
86 |
{
|
76 |
<div>
|
87 |
$gs_id = wpsg_getInt($_REQUEST['gs_id']);
|
77 |
<?php echo __('Gutschein', 'wpsg'); ?>
|
- |
|
78 |
|
88 |
}
|
79 |
<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
|
89 |
else
|
80 |
<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
|
90 |
{
|
81 |
<?php } else { ?>
|
91 |
$gs_id = wpsg_getInt($this->view['data']['gs_id']);
|
82 |
<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
|
92 |
}
|
83 |
<?php } ?>
|
93 |
$o_id = $_REQUEST['edit_id'];
|
- |
|
94 |
$link1 = '<span id="gsname_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$this->view['basket']['gs']['code'].'</span>';
|
- |
|
95 |
$val = '-'.wpsg_ff($this->view['basket']['sum']['gs']);
|
- |
|
96 |
$link2 = '<span id="gsvalue_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$val.'</span>';
|
- |
|
97 |
|
84 |
|
98 |
?>
|
- |
|
99 |
<td class="wpsg_cell_name"><?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$link1.')':'' ?>
|
85 |
<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher();"><span class="glyphicon glyphicon-pencil"></span></a>
|
100 |
<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return wpsg_removeVoucher(<?php echo $gs_id; ?>, <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
|
86 |
<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher();"><span class="glyphicon glyphicon-trash"></span></a>
|
- |
|
87 |
</div>
|
- |
|
88 |
<div>
|
- |
|
89 |
Code: <?php echo $v['code']; ?>
|
- |
|
90 |
</div>
|
- |
|
91 |
|
101 |
</td>
|
92 |
</td>
|
- |
|
93 |
<td class="wpsg_cell_preis">
|
102 |
<td class="wpsg_cell_preis"><?php echo $link2.' '.$this->get_option('wpsg_currency'); ?></td>
|
94 |
<?php echo wpsg_ff($v['set'], $this->get_option('wpsg_currency'), true); ?>
|
- |
|
95 |
</td>
|
103 |
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
96 |
<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
104 |
<td class="wpsg_cell_mwst"><?php echo __('anteilig', 'wpsg'); ?></td>
|
97 |
<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
|
105 |
<?php } ?>
|
98 |
<?php } ?>
|
- |
|
99 |
<td>1</td>
|
106 |
<td class="wpsg_cell_menge">1</td>
|
100 |
<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
|
107 |
<td class="wpsg_cell_gesamtpreis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
|
101 |
<?php echo wpsg_ff($arCalculation['sum']['voucher_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
|
- |
|
102 |
</td>
|
108 |
</tr>
|
103 |
</tr>
|
- |
|
104 |
|
109 |
<?php } ?>
|
105 |
<?php } ?>
|
- |
|
106 |
<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
|
- |
|
107 |
|
110 |
*/ ?>
|
108 |
<?php } ?>
|
- |
|
109 |
|
111 |
<tr class="wpsg_row_summe">
|
110 |
<tr class="wpsg_row_summe">
|
112 |
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
|
111 |
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
|
113 |
|
112 |
|
114 |
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
|
113 |
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
|
115 |
|
114 |
|
Line 194... |
Line 193... |
194 |
</td>
|
193 |
</td>
|
195 |
</tr>
|
194 |
</tr>
|
196 |
<?php foreach ($arCalculation['discount'] as $d) { ?>
|
195 |
<?php foreach ($arCalculation['discount'] as $d) { ?>
|
197 |
<tr class="wpsg_row_discount wpsg_row_small">
|
196 |
<tr class="wpsg_row_discount wpsg_row_small">
|
198 |
<td colspan="" class="wpsg_cell_mwst_label">
|
197 |
<td colspan="" class="wpsg_cell_mwst_label">
|
199 |
<?php echo __('Rabatt', 'wpsg'); ?>
|
198 |
<?php echo __('Rabatt', 'wpsg'); ?>
|
200 |
<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
|
199 |
<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
|
201 |
<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
|
200 |
<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
|
202 |
<?php } else { ?>
|
201 |
<?php } else { ?>
|
203 |
<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
|
202 |
<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
|
204 |
<?php } ?>
|
203 |
<?php } ?>
|
- |
|
204 |
|
- |
|
205 |
<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>
|
- |
|
206 |
<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>
|
- |
|
207 |
|
205 |
</td>
|
208 |
</td>
|
206 |
<td class="wpsg_cell_preis">
|
209 |
<td class="wpsg_cell_preis">
|
207 |
<?php echo wpsg_ff($d['set'], $this->get_option('wpsg_currency'), true); ?>
|
210 |
<?php echo wpsg_ff($d['set'], $this->get_option('wpsg_currency'), true); ?>
|
208 |
</td>
|
211 |
</td>
|
209 |
<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
212 |
<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
Line 245... |
Line 248... |
245 |
<?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
|
248 |
<?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
|
246 |
</td>
|
249 |
</td>
|
247 |
</tr>
|
250 |
</tr>
|
248 |
<?php } } ?>
|
251 |
<?php } } ?>
|
249 |
<?php } ?>
|
252 |
<?php } ?>
|
250 |
</table>
|
- |
|
251 |
|
- |
|
252 |
<?php wpsg_debug($arCalculation); ?>
|
- |
|
253 |
|
253 |
</table>
|
- |
|
254 |
|
254 |
|
255 |
|