if (!isset($validation)) { include SITE_CLASS_GEN . "class.validation.php"; $validation = new Validation(); } $vldmsg = $validation->CreateHtmlMsg($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']); unset($_SESSION['SESS_' . PRJ_CONST_PREFIX . '_VALIDATION']); } #### ENDS HERE ### $binvp = ''; if ($uorg_type == 'Buyer') { // echo $uorg_type; exit; if (!isset($orgUserObj)) { include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUser.php"; $orgUserObj = new OrganizationUser(); } $binvp = $invCreate = $orgUserObj->hasBuyerInvPermit($sess_id); $smarty->assign('invCreate', $invCreate); } if ($sess_usertype_short == 'OU' && $invCreate != 'Yes') { header("Location: " . SITE_URL_DUM . "invoicelist/all"); exit; } $invad = isset($_SESSION['invadd']) ? $_SESSION['invadd'] : ''; // unset($_SESSION['invadd']); $invoiceTypes = $gdbobj->getEnumSelect("" . PRJ_DB_PREFIX . "_invoice_detail_line", "eInvoiceType", "eInvoiceType[]", "eInvoiceType", "", "", "class='drop-down required' ", $smarty->get_template_vars('LBL_SELECT_INV_TYPE'), "---" . $smarty->get_template_vars('LBL_SELECT_INV_TYPE') . "----"); $orgdtls = $orgObj->select($curORGID); $orgname = $orgdtls[0]['vCompanyName']; $OrgCode = $orgdtls[0]['vOrganizationCode']; if (trim($invid) != '' && is_numeric($invid)) { $view = 'edit'; }