From a99ad8192db9f8b6be6d100f3b38b59d277badd2 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 19 Nov 2018 13:59:10 +0000 Subject: - Bestellverwaltung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7210 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/admin.css | 1 + views/mods/mod_productvars/order_view_row.phtml | 8 ++--- .../backendEdit/addProduct_product_selected.phtml | 38 +++++++++++++++++++--- views/order/product_table.phtml | 27 +++++++++++---- views/order/view.phtml | 8 +++++ views/order/view_customerdata.phtml | 10 +++--- views/order/view_orderdata.phtml | 30 +++++++++++++++-- 7 files changed, 101 insertions(+), 21 deletions(-) diff --git a/views/css/admin.css b/views/css/admin.css index 8610558..9ffc90d 100644 --- a/views/css/admin.css +++ b/views/css/admin.css @@ -265,6 +265,7 @@ table.wpsgitrecht_table { width:100%; } .wpsg_top_extend .commenticon.admincomment, .wpsg_order .col_nr .glyphicon.admincomment { color:red; } .wpsg_order .wpsg-order-tab { padding-top:15px; padding-bottom:15px; } +.wpsg_order_view #restored_notice { margin-bottom:15px; color:red; } #wpsg-bs.wpsg_order_view .editableform textarea { height:150px;} .wpsg_order_view .wpsg_cell_gesamtpreis { text-align:right; } diff --git a/views/mods/mod_productvars/order_view_row.phtml b/views/mods/mod_productvars/order_view_row.phtml index 565b4f0..1ff9b1b 100644 --- a/views/mods/mod_productvars/order_view_row.phtml +++ b/views/mods/mod_productvars/order_view_row.phtml @@ -10,11 +10,11 @@ view['wpsg_mod_productvars']['data'] as $k => $pv) { ?> - +
- + + diff --git a/views/order/backendEdit/addProduct_product_selected.phtml b/views/order/backendEdit/addProduct_product_selected.phtml index ba13724..93824bd 100644 --- a/views/order/backendEdit/addProduct_product_selected.phtml +++ b/views/order/backendEdit/addProduct_product_selected.phtml @@ -39,10 +39,18 @@
- getBackendTaxView() === WPSG_BRUTTO)?'(BRUTTO)':'(NETTO'), (($oOrderProduct !== false)?$oOrderProduct->getPrice($this->getBackendTaxView()):$oProduct->getPrice($this->getBackendTaxView()))); ?> + getBackendTaxView() === WPSG_BRUTTO)?'(BRUTTO)':'(NETTO'), wpsg_ff((($oOrderProduct !== false)?$oOrderProduct->getPrice($this->getBackendTaxView()):$oProduct->getPrice($this->getBackendTaxView())), $this->get_option('wpsg_currency'))); ?> getCount():'1')); ?> - - callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$oProduct->id])) { $arVariants = $this->callMod('wpsg_mod_productvariants', 'getVariants', [$oProduct->id, true, true, true]); ?> + euleistungsortregel:'1')) ?> + + callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$oProduct->id])) { + + $arVariants = $this->callMod('wpsg_mod_productvariants', 'getVariants', [$oProduct->id, true, true, true]); + + if ($oOrderProduct !== false) $arVariantenInfoArray = $this->callMod('wpsg_mod_productvariants', 'getVariantenInfoArray', [$oOrderProduct->getProductKey()]); + else $arVariantenInfoArray = []; + + ?> @@ -55,11 +63,33 @@ ?> - + 'varichange']); ?> + + diff --git a/views/order/product_table.phtml b/views/order/product_table.phtml index 7ba1ea5..335d55b 100644 --- a/views/order/product_table.phtml +++ b/views/order/product_table.phtml @@ -3,7 +3,7 @@ /** * Template für die Produkttabelle im Backend der Bestellverwaltung */ - + $arCalculation = $this->view['oCalculation']->getCalculationArray(true); $arTax = $this->view['oCalculation']->getTaxLabelArray(); $arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true); @@ -15,16 +15,24 @@ if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto'; else $display = 'brutto'; - + ?> + __('Kleinunternehmerregelung'), + \wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'), + \wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung') + ], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();']); ?> + +
@@ -43,13 +51,21 @@ - + + + 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> @@ -275,5 +291,4 @@
+ + + + <?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?> + + getProductName($p['product_id'])); ?> - +
get_option('wpsg_currency'); ?>
- - \ No newline at end of file + \ No newline at end of file diff --git a/views/order/view.phtml b/views/order/view.phtml index df563f5..5908c22 100644 --- a/views/order/view.phtml +++ b/views/order/view.phtml @@ -103,6 +103,14 @@
+ view['oCalculation']->restored) { ?> + +
+ Die Berechnung dieser Bestellung wurde rekonstruiert, da zum Bestellzeitpunkt nicht alle Shop Einstellungen erfasst wurden. Bitte überprüfen sie die Berechnung und vergleichen diese ggf. mit dem Bestellprotokoll. +
+ + + view['arSubAction'] as $k => $v) { $i ++; ?>
diff --git a/views/order/view_customerdata.phtml b/views/order/view_customerdata.phtml index 0b89194..30cfad4 100644 --- a/views/order/view_customerdata.phtml +++ b/views/order/view_customerdata.phtml @@ -137,11 +137,11 @@ view['data']['tel'], array('text' => true)); ?> - view['pflicht']['ustidnr'] != '2') { ?> - view['data']['ustidnr']) > 0) { ?> - view['data']['ustidnr'], array('text' => true)); ?> - - + + + view['data']['ustidnr'], array('text' => true)); ?> +
+ callMods('wpsg_order_view_customerdata', array(&$this->view['data']['id'])); ?> diff --git a/views/order/view_orderdata.phtml b/views/order/view_orderdata.phtml index 84c6dc2..69df736 100644 --- a/views/order/view_orderdata.phtml +++ b/views/order/view_orderdata.phtml @@ -17,6 +17,32 @@