From b6dd44ae23fe378b9d857ab38a9f1318d0d6274f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 28 Sep 2018 07:05:48 +0000 Subject: - Produktbearbeitung Backend - Neue Calculation für das Backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7173 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/order/backendEdit/editPayShipping.phtml | 108 ++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 views/order/backendEdit/editPayShipping.phtml (limited to 'views/order/backendEdit/editPayShipping.phtml') diff --git a/views/order/backendEdit/editPayShipping.phtml b/views/order/backendEdit/editPayShipping.phtml new file mode 100644 index 0000000..a38ac1c --- /dev/null +++ b/views/order/backendEdit/editPayShipping.phtml @@ -0,0 +1,108 @@ +arShipping as $shipping_id => $shipping_data) { + + $arShippingSelect[$shipping_id] = $shipping_data['name']; + + if (wpsg_isSizedDouble($shipping_data['price'])) { + + $arShippingSelect[$shipping_id] .= ' ('.wpsg_ff($shipping_data['price'],$this->get_option('wpsg_currency')).')'; + + } + + } + + $arPaymentSelect = []; + foreach ($this->arPayment as $payment_id => $payment_data) { + + $arPaymentSelect[$payment_id] = $payment_data['name']; + + if (wpsg_isSizedDouble($payment_data['preis'])) { + + $arPaymentSelect[$payment_id] .= ' ('.wpsg_ff($payment_data['preis'],$this->get_option('wpsg_currency')).')'; + + } + + } + + if ($this->getBackendTaxview() === WPSG_BRUTTO) { + + $price_shipping = wpsg_ff($this->view['data']['price_shipping_brutto'], $this->get_option('wpsg_currency')); + $price_payment = wpsg_ff($this->view['data']['price_payment_brutto'], $this->get_option('wpsg_currency')); + + $price_suffix = ' ('.__('Brutto', 'wpsg').')'; + + } else { + + $price_shipping = wpsg_ff($this->view['data']['price_shipping_brutto'], $this->get_option('wpsg_currency')); + $price_payment = wpsg_ff($this->view['data']['price_payment_brutto'], $this->get_option('wpsg_currency')); + + $price_suffix = ' ('.__('Netto', 'wpsg').')'; + + } + +?> + +
+ + view['data']['type_shipping']); ?> + + +
+ + view['data']['type_payment']); ?> + + +
+ + -- cgit v1.2.3