} else { if (!empty($_REQUEST['record'])) { $xtpl->assign("RETURN_ID", $_REQUEST['record']); } } //when create without save, click save. if (empty($_REQUEST['return_id'])) { $xtpl->assign("RETURN_ACTION", 'index'); } if (!empty($xtpl_data['STATUS']) && $xtpl_data['STATUS'] > 0) { $xtpl_data['STATUS_CHECKED'] = 'checked'; } $xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js() . get_product_js()); //$xtpl->assign("JAVASCRIPT_PRODUCT", get_product_js()); $xtpl->assign("THEME", $theme); $xtpl_data = $focus->get_xtemplate_data(); global $current_user; if (!$focus->num_pref && !$focus->quotenum) { $ppref = 'QTE'; $pnumber = $focus->generate_number(); $xtpl->assign('num_pref', $ppref); $xtpl->assign('num_suf', $pnumber); } else { $xtpl->assign('num_pref', $focus->num_pref); $xtpl->assign('num_suf', $focus->num_suf); } require_once 'modules/Currencies/ListCurrency.php'; $currency = new ListCurrency(); if (isset($focus->currency_id) && !empty($focus->currency_id)) { $selectCurrency = $currency->getSelectOptions($focus->currency_id); $xtpl->assign("CURRENCY", $selectCurrency);