Subversion Repositories wpShopGermany4

Rev

Rev 7173 | Rev 7197 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7173 Rev 7179
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">
40
        <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
27
        <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
41
        <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
28
        <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
42
        <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
29
        <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
43
            <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
30
            <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
44
        <?php } ?>
31
        <?php } ?>
45
        <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
32
        <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
46
        <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
33
        <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
47
    </tr>
34
    </tr>
48
    <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
35
    <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
49
    <?php $i = 0; foreach ($arCalculation['products'] as $p) { $i ++; $product_price = $p['price']; ?>        
36
    <?php $i = 0; foreach ($arCalculation['products'] as $p) { $i ++; $product_price = $p['price']; ?>        
50
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
37
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
51
            <td class="wpsg_cell_name">
38
            <td class="wpsg_cell_name">
52
                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
39
                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
53
                    <?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
40
                    <?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
54
                </a>
41
                </a>
55
                <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>
42
                <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>
56
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
43
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
57
            </td>
44
            </td>
58
            <td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
45
            <td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
59
            <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
46
            <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
60
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
47
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
61
            <?php } ?>
48
            <?php } ?>
62
            <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
49
            <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
63
            <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
50
            <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
64
        </tr>
51
        </tr>
65
        <?php /* if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
52
        <?php /* if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
66
            <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
53
            <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
67
                <td class="wpsg_cell_name">
54
                <td class="wpsg_cell_name">
68
                    <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
55
                    <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
69
                </td>
56
                </td>
70
                <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
57
                <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
71
                    <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
58
                    <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
72
                        <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
59
                        <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
73
                    <?php } ?>
60
                    <?php } ?>
74
                </td>
61
                </td>
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
                
116
                <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
115
                <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
117
           
116
           
118
            <?php } else { ?>
117
            <?php } else { ?>
119
                
118
                
120
                <?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
119
                <?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
121
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
120
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
122
                <?php } else { ?>
121
                <?php } else { ?>
123
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
122
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
124
                <?php } ?>
123
                <?php } ?>
125
                
124
                
126
            <?php } ?>
125
            <?php } ?>
127
            
126
            
128
        </td>
127
        </td>
129
        <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
128
        <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
130
            
129
            
131
            <?php echo wpsg_ff($arCalculation['sum']['product']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
130
            <?php echo wpsg_ff($arCalculation['sum']['product']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
132
            
131
            
133
        </td>
132
        </td>
134
    </tr>
133
    </tr>
135
    
134
    
136
    <?php /* Versandkosten */ ?>
135
    <?php /* Versandkosten */ ?>
137
    <?php $price_shipping = $arCalculation['shipping']['price']; ?>
136
    <?php $price_shipping = $arCalculation['shipping']['price']; ?>
138
    <?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
137
    <?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
139
        <tr class="wpsg_row_shipping">
138
        <tr class="wpsg_row_shipping">
140
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
139
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
141
                <?php echo __('Versandkosten', 'wpsg'); ?> 
140
                <?php echo __('Versandkosten', 'wpsg'); ?> 
142
                <?php echo __('  ('.$this->arShipping[$arCalculation['shipping']['key']]['name'].')', 'wpsg'); ?>
141
                <?php echo __('  ('.$this->arShipping[$arCalculation['shipping']['key']]['name'].')', 'wpsg'); ?>
143
                <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>
142
                <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>
144
            </td>
143
            </td>
145
            <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
144
            <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
146
                <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
145
                <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
147
                <?php echo $this->get_option('wpsg_currency'); ?>
146
                <?php echo $this->get_option('wpsg_currency'); ?>
148
            </td>
147
            </td>
149
        </tr>
148
        </tr>
150
    <?php } ?>
149
    <?php } ?>
151
 
150
 
152
    <?php /* Zahlungskosten */ ?>
151
    <?php /* Zahlungskosten */ ?>
153
    <?php $price_payment = $arCalculation['payment']['price']; ?>
152
    <?php $price_payment = $arCalculation['payment']['price']; ?>
154
    <?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
153
    <?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
155
        <tr class="wpsg_row_payment">
154
        <tr class="wpsg_row_payment">
156
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
155
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
157
                <?php echo __('Zahlungsart', 'wpsg'); ?>
156
                <?php echo __('Zahlungsart', 'wpsg'); ?>
158
                <?php echo __('  ('.$this->arPayment[$arCalculation['payment']['key']]['name'].')', 'wpsg'); ?>
157
                <?php echo __('  ('.$this->arPayment[$arCalculation['payment']['key']]['name'].')', 'wpsg'); ?>
159
                <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>
158
                <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>
160
            </td>
159
            </td>
161
            <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
160
            <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
162
                <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
161
                <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
163
                <?php echo $this->get_option('wpsg_currency'); ?>
162
                <?php echo $this->get_option('wpsg_currency'); ?>
164
            </td>
163
            </td>
165
        </tr>
164
        </tr>
166
    <?php } ?>
165
    <?php } ?>
167
    
166
    
168
    <?php if ($this->getBackendTaxView() === WPSG_NETTO && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
167
    <?php if ($this->getBackendTaxView() === WPSG_NETTO && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
169
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0) { ?>
168
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0) { ?>
170
            <tr class="wpsg_row_mwst">
169
            <tr class="wpsg_row_mwst">
171
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
170
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
172
                    <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
171
                    <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
173
                </td>
172
                </td>
174
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
173
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
175
                    <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
174
                    <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
176
                </td>
175
                </td>
177
            </tr>
176
            </tr>
178
        <?php } } ?>
177
        <?php } } ?>
179
    <?php } ?>
178
    <?php } ?>
180
    
179
    
181
    <?php /* Rabatte */ ?>
180
    <?php /* Rabatte */ ?>
182
    <?php if ($arCalculation['sum']['prediscount_netto'] !== $arCalculation['sum']['netto']) { ?>
181
    <?php if ($arCalculation['sum']['prediscount_netto'] !== $arCalculation['sum']['netto']) { ?>
183
        <tr class="wpsg_row_discount">
182
        <tr class="wpsg_row_discount">
184
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
183
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
185
                <?php echo __('Gesamtpreis', 'wpsg'); ?>
184
                <?php echo __('Gesamtpreis', 'wpsg'); ?>
186
                <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
185
                <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
187
                    <?php echo __('(abzgl. Rabatt, inkl. MwSt.)', 'wpsg'); ?>
186
                    <?php echo __('(abzgl. Rabatt, inkl. MwSt.)', 'wpsg'); ?>
188
                <?php } else { ?>
187
                <?php } else { ?>
189
                    <?php echo __('(abzgl. Rabatt, zzgl. MwSt.)', 'wpsg'); ?>
188
                    <?php echo __('(abzgl. Rabatt, zzgl. MwSt.)', 'wpsg'); ?>
190
                <?php } ?>
189
                <?php } ?>
191
            </td>
190
            </td>
192
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
191
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
193
                <?php echo wpsg_ff($arCalculation['sum']['prediscount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>     
192
                <?php echo wpsg_ff($arCalculation['sum']['prediscount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>     
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') { ?>
210
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
213
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
211
            <?php } ?>
214
            <?php } ?>
212
            <td></td>
215
            <td></td>
213
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
216
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
214
                <?php echo wpsg_ff($arCalculation['sum']['discount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
217
                <?php echo wpsg_ff($arCalculation['sum']['discount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
215
            </td>
218
            </td>
216
        </tr>
219
        </tr>
217
        <?php } ?>
220
        <?php } ?>
218
    <?php } ?>
221
    <?php } ?>
219
    
222
    
220
    <tr class="wpsg_row_gesamt">
223
    <tr class="wpsg_row_gesamt">
221
        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
224
        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
222
            <strong><?php echo __('Gesamtpreis', 'wpsg'); ?></strong> 
225
            <strong><?php echo __('Gesamtpreis', 'wpsg'); ?></strong> 
223
            <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
226
            <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
224
                <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
227
                <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
225
            <?php } else { ?>
228
            <?php } else { ?>
226
                <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
229
                <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
227
            <?php } ?>
230
            <?php } ?>
228
        </td>
231
        </td>
229
        <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
232
        <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
230
            <strong><?php echo wpsg_ff($arCalculation['sum']['display']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
233
            <strong><?php echo wpsg_ff($arCalculation['sum']['display']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
231
        </td>
234
        </td>
232
    </tr>
235
    </tr>
233
    
236
    
234
    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->getBackendTaxView() != WPSG_NETTO) { ?>
237
    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->getBackendTaxView() != WPSG_NETTO) { ?>
235
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0 && $tax['key'] != '0') { ?>
238
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0 && $tax['key'] != '0') { ?>
236
            <tr class="wpsg_row_mwst wpsg_row_small">
239
            <tr class="wpsg_row_mwst wpsg_row_small">
237
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
240
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
238
                    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
241
                    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
239
                        <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
242
                        <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
240
                    <?php } else { ?>
243
                    <?php } else { ?>
241
                        <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
244
                        <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
242
                    <?php } ?>
245
                    <?php } ?>
243
                </td>
246
                </td>
244
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
247
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
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