Subversion Repositories wpShopGermany4

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7173 daniel 1
<?php
2
 
3
    /**
4
     * Template für das Bearbeiten eines Rabattes im Backend
5
     */
6
 
7
    namespace wpsg;
8
 
9
    /** @var wpsg_calculation $oCalculation */
10
    $oCalculation = $this->view['oCalculation'];
11
 
12
    $arTax = $oCalculation->getTaxLabelArray();
13
 
14
    if ($this->getBackendTaxView() === WPSG_NETTO) $strBN = 'NETTO';
15
    else $strBN = 'BRUTTO';
16
 
17
    $arCalculation = $oCalculation->getCalculationArray();
18
 
19
?>
20
 
21
<form id="wpsg_be_discount_form">
22
 
23
    <?php echo wpsg_drawForm_Input('be_discount_amount', wpsg_translate(__('Rabattwert in #1# (#2#) oder % ', 'wpsg'), $this->get_option('wpsg_currency'), $strBN), @$arCalculation['discount'][0]['set']); ?>
24
    <?php echo wpsg_drawForm_Select('be_discount_tax', __('Steuersatz', 'wpsg'), $arTax, @$arCalculation['discount'][0]['tax_key']); ?>
25
 
26
</form>
27
 
28
<script>
29
 
30
    jQuery('#wpsg_be_discount_form').on('submit', function() { return false; } );
31
    jQuery('#be_discount_amount').focus();
32
 
33
</script>