view['oCalculation']; if ($this->getBackendTaxView() === WPSG_NETTO) $strBN = 'NETTO'; else $strBN = 'BRUTTO'; $arCalculation = $oCalculation->getCalculationArray(); $voucher = [ 'code' => '', 'id' => 0, 'set' => 0, 'type' => 'voucher', ]; //wpsg_debug(array_merge($arCalculation['voucher'], $arCalculation['coupon'])); //wpsg_Debug($_REQUEST); // Voucher suchen foreach (array_merge($arCalculation['voucher'], $arCalculation['coupon']) as $v) { if ($v['order_voucher_id'] == $_REQUEST['order_voucher_id']) { $order_voucher_db = $this->db->fetchRow("SELECT * FROM `".WPSG_TBL_ORDER_VOUCHER."` WHERE `id` = '".wpsg_q($_REQUEST['order_voucher_id'])."' "); $voucher = $v; //if ($order_voucher_db['coupon'] === '1') $voucher['type'] = 'coupon'; } } $strVal = ((isset($voucher['set']))?$voucher['set']:0); if (strpos($strVal, '%') !== false) $strVal = wpsg_ff(abs(wpsg_tf($strVal)), '%'); else $strVal = wpsg_ff(abs(wpsg_tf($strVal)), $this->get_option('wpsg_currency')); ?>