From e486bed6ea2a13e97cfc78a03f30c0999d92eb26 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Sat, 20 Jul 2019 15:17:02 +0000 Subject: - Backup Wertgutscheine git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7486 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/order/backendEdit/addVoucher.phtml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'views/order/backendEdit') diff --git a/views/order/backendEdit/addVoucher.phtml b/views/order/backendEdit/addVoucher.phtml index 7b90086..88d8e2b 100644 --- a/views/order/backendEdit/addVoucher.phtml +++ b/views/order/backendEdit/addVoucher.phtml @@ -15,25 +15,45 @@ else $strBN = 'BRUTTO'; $arCalculation = $oCalculation->getCalculationArray(); + $voucher = [ + 'code' => '', + 'id' => 0, + 'set' => 0, + 'type' => 'voucher' + ]; - $strVal = ((isset($arCalculation['voucher'][0]['set']))?$arCalculation['voucher'][0]['set']:0); + // Voucher suchen + foreach (array_merge($arCalculation['voucher'], $arCalculation['coupon']) as $v) { + + if ($v['order_voucher_id'] == $_REQUEST['order_voucher_id']) { + + $voucher = $v; + + } + + } + + $strVal = ((isset($voucher['set']))?$voucher['set']:0); if (strpos($strVal, '%') !== false) $strVal = wpsg_ff(wpsg_tf($strVal), '%'); else $strVal = wpsg_ff(wpsg_tf($strVal), $this->get_option('wpsg_currency')); - + ?>
+ +

- - + + get_option('wpsg_currency'), $strBN), $strVal); ?> +
-- cgit v1.2.3