diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2018-09-28 07:05:48 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2018-09-28 07:05:48 +0000 |
| commit | b6dd44ae23fe378b9d857ab38a9f1318d0d6274f (patch) | |
| tree | 112bd1d5ed740f01bf9341d5c0ed7db995eb4049 /views/order/backendEdit/addDiscount.phtml | |
| parent | 1b94e9e9c54019ee68f12accaac82a6971b555a6 (diff) | |
- Produktbearbeitung Backend
- Neue Calculation für das Backend
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7173 0d5edaf7-2b12-4e95-93f4-047927463d4b
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>
|
