diff options
Diffstat (limited to 'views/order/backendEdit')
| -rw-r--r-- | views/order/backendEdit/editPayShipping.phtml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/views/order/backendEdit/editPayShipping.phtml b/views/order/backendEdit/editPayShipping.phtml index a38ac1c..a688f5f 100644 --- a/views/order/backendEdit/editPayShipping.phtml +++ b/views/order/backendEdit/editPayShipping.phtml @@ -4,6 +4,8 @@ * Template für das Bearbeiten der Versand- und Zahlungsart im Backend
*/
+ $arCalculation = $this->view['oCalculation']->getCalculationArray();
+
$arShippingSelect = [];
foreach ($this->arShipping as $shipping_id => $shipping_data) {
@@ -32,15 +34,15 @@ 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_shipping = wpsg_ff(($arCalculation['shipping'][0]['brutto_single']??0), $this->get_option('wpsg_currency'));
+ $price_payment = wpsg_ff(($arCalculation['payment'][0]['brutto_single']??0), $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_shipping = wpsg_ff(($arCalculation['shipping'][0]['netto_single']??0), $this->get_option('wpsg_currency'));
+ $price_payment = wpsg_ff(($arCalculation['payment'][0]['netto_single']??0), $this->get_option('wpsg_currency'));
$price_suffix = ' ('.__('Netto', 'wpsg').')';
|
