diff options
Diffstat (limited to 'views/order/backendEdit/addDiscount.phtml')
| -rw-r--r-- | views/order/backendEdit/addDiscount.phtml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/views/order/backendEdit/addDiscount.phtml b/views/order/backendEdit/addDiscount.phtml new file mode 100644 index 0000000..68873e7 --- /dev/null +++ b/views/order/backendEdit/addDiscount.phtml @@ -0,0 +1,33 @@ +<?php
+
+ /**
+ * Template für das Bearbeiten eines Rabattes im Backend
+ */
+
+ namespace wpsg;
+
+ /** @var wpsg_calculation $oCalculation */
+ $oCalculation = $this->view['oCalculation'];
+
+ $arTax = $oCalculation->getTaxLabelArray();
+
+ 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']); ?>
+ <?php echo wpsg_drawForm_Select('be_discount_tax', __('Steuersatz', 'wpsg'), $arTax, @$arCalculation['discount'][0]['tax_key']); ?>
+
+</form>
+
+<script>
+
+ jQuery('#wpsg_be_discount_form').on('submit', function() { return false; } );
+ jQuery('#be_discount_amount').focus();
+
+</script>
|
