summaryrefslogtreecommitdiff
path: root/views/order/backendEdit/addDiscount.phtml
blob: 75f049e44d3fbe2a54616ef9a5e43c6e5ea8da97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
    
    /**
     * Template für das Bearbeiten eines Rabattes im Backend
     * @version 4.6.1
     */
  
    namespace wpsg;
    
    /** @var wpsg_calculation $oCalculation */
    $oCalculation = $this->view['oCalculation'];
    
    if ($this->getBackendTaxView() === WPSG_NETTO) $strBN = 'NETTO';
    else $strBN = 'BRUTTO';
    
    $arCalculation = $oCalculation->getCalculationArray();
    
?>

<form id="wpsg_be_discount_form">

    <?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']); ?>
    
</form>

<script>
    
    jQuery('#wpsg_be_discount_form').on('submit', function() { return false; } );
    jQuery('#be_discount_amount').focus();
    
</script>