From e96b183e33afb4038b2e39868f32ebf94a59ba83 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 31 Jul 2019 18:54:21 +0000 Subject: - Gutschein/Coupon - Task #681 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7490 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mailtemplates/html/customer.phtml | 2 +- views/mailtemplates/html/order.phtml | 32 +++++++++++++++---------- views/mailtemplates/kundenmail.phtml | 2 +- views/mailtemplates/order.phtml | 41 +++++++++++++++++++++++---------- 4 files changed, 51 insertions(+), 26 deletions(-) (limited to 'views/mailtemplates') diff --git a/views/mailtemplates/html/customer.phtml b/views/mailtemplates/html/customer.phtml index 60d1b2b..9832fba 100644 --- a/views/mailtemplates/html/customer.phtml +++ b/views/mailtemplates/html/customer.phtml @@ -131,7 +131,7 @@ : - view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?> + view['basket']['arCalculation']['topay_brutto'], $this->get_option('wpsg_currency')); ?> get_option('wpsg_kleinunternehmer') != '1') { ?> diff --git a/views/mailtemplates/html/order.phtml b/views/mailtemplates/html/order.phtml index 0b5bfbd..efc3e19 100644 --- a/views/mailtemplates/html/order.phtml +++ b/views/mailtemplates/html/order.phtml @@ -1,4 +1,9 @@ -
+getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; + else $display_brutto_netto = 'netto'; + +?>
@@ -69,18 +74,20 @@ - view['basket']['gs'])) { ?> - - - - - view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - + view['basket']['arCalculation']['voucher'])) { $bLine = true; ?> + view['basket']['arCalculation']['voucher'] as $gs) { ?> + + + + + view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + - - - - + @@ -188,6 +195,7 @@ + callMods('mail_order_end', [$this->view['basket']['arCalculation'], true]); ?>
.view['basket']['gs']['code']); ?>view['basket']['gs']['value'], (($this->view['basket']['gs']['calc'] == 'w')?$this->get_option('wpsg_currency'):'%')); ?>
get_option('wpsg_currency'))); ?>1get_option('wpsg_currency')); ?>
1view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?>
 
  view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
diff --git a/views/mailtemplates/kundenmail.phtml b/views/mailtemplates/kundenmail.phtml index f219fae..dababfc 100644 --- a/views/mailtemplates/kundenmail.phtml +++ b/views/mailtemplates/kundenmail.phtml @@ -63,7 +63,7 @@ view['basket']['checkout']['knr']; ?> view['basket']['checkout']['onr']; ?> view['basket']['checkout']['datum']); ?> -view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?> +view['basket']['arCalculation']['topay_brutto'], $this->get_option('wpsg_currency')); ?> get_option('wpsg_kleinunternehmer')) { ?> get_option('wpsg_kleinunternehmer_text'); ?> diff --git a/views/mailtemplates/order.phtml b/views/mailtemplates/order.phtml index a174502..68ace58 100644 --- a/views/mailtemplates/order.phtml +++ b/views/mailtemplates/order.phtml @@ -1,4 +1,9 @@ -view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?> +getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; + else $display_brutto_netto = 'netto'; + +?>view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?> @@ -29,16 +34,27 @@ -view['basket']['gs'])) { ?> - -view['basket']['gs']['code']), $prod_col); ?> -view['basket']['gs']['value'], (($this->view['basket']['gs']['calc'] == 'w')?$this->get_option('wpsg_currency'):'%')).' ', 15); ?> -view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> - - - -view['basket']['sum']['gs'], $this->get_option('wpsg_currency')), 15); ?> - +view['basket']['arCalculation']['voucher'])) { + + foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { + + echo wpsg_pad_right(' ', 5); + echo wpsg_pad_right(wpsg_translate(__('Gutschein (#1#)', 'wpsg'), $gs['code']), $prod_col); + echo wpsg_pad_left(wpsg_ff($gs['set'], ((strpos($gs['set'], '%') !== false)?'%':$this->get_option('wpsg_currency'))).' ', 15); + + if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { + + echo wpsg_pad_left(__('anteilig', 'wpsg').' ', 10); + + } + + echo wpsg_pad_left('1', 6); + echo wpsg_pad_left(wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency')), 15); + echo "\r\n"; + + } + +} ?> view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?> view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')), 31); ?> @@ -102,6 +118,7 @@ --------------- -view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?> +view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?> +callMods('mail_order_end', [$this->view['basket']['arCalculation'], false]); ?> callMods('mail_aftercalculation', array(&$this->view['basket']['checkout']['o_id'])); ?> \ No newline at end of file -- cgit v1.2.3