PO Screen desing
This commit is contained in:
parent
91d22743ca
commit
413ba29a9a
@ -107,65 +107,58 @@ class purchaseorder_model extends CI_Model
|
|||||||
{
|
{
|
||||||
|
|
||||||
$this->db->select('MaterialCode, MaterialName');
|
$this->db->select('MaterialCode, MaterialName');
|
||||||
$this->db->from('T_RawMaterialDetailsN');
|
$this->db->from('T_MaterialMaster');
|
||||||
|
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
|
||||||
return $query->result();
|
return $query->result();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to get the Unit of Measure information
|
* This function is used to get the Cost center information
|
||||||
* @return array $result : This is result of the query
|
* @return array $result : This is result of the query
|
||||||
*/
|
*/
|
||||||
function getUOM()
|
function getCostCenter()
|
||||||
{
|
{
|
||||||
$ConfigID = 'C001';
|
|
||||||
$this->db->select('ConfigValue');
|
$this->db->select('CostName, Description');
|
||||||
$this->db->from('T_ConfigDetails');
|
$this->db->from('T_CostCentre');
|
||||||
$this->db->where('Config_id ',$ConfigID );
|
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
|
||||||
return $query->result();
|
return $query->result();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function is used to get the Config value from configuration table
|
||||||
|
* @return array $result : This is result of the query
|
||||||
|
*/
|
||||||
|
function getConfigValue($ConfigID ,$ConfigValue = '')
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->db->select('ConfigValue');
|
||||||
|
$this->db->from('T_ConfigDetails');
|
||||||
|
$this->db->where('Config_id ',$ConfigID );
|
||||||
|
if($ConfigValue != '')
|
||||||
|
{
|
||||||
|
$this->db->where('ConfigValue != ',$ConfigValue );
|
||||||
|
}
|
||||||
|
$query = $this->db->get();
|
||||||
|
|
||||||
|
return $query->result();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to get the Purchase order Type
|
* This function is used to get the Purchase order Type
|
||||||
* @return array $result : This is result of the query
|
* @return array $result : This is result of the query
|
||||||
*/
|
*/
|
||||||
function getPOType()
|
function getAllEmployees()
|
||||||
{
|
{
|
||||||
$ConfigID = 'C004';
|
$this->db->select('EmpID,FirstName,LastName');
|
||||||
$this->db->select('ConfigValue');
|
$this->db->from('T_Employee_Details');
|
||||||
$this->db->from('T_ConfigDetails');
|
|
||||||
$this->db->where('Config_id ',$ConfigID );
|
|
||||||
$query = $this->db->get();
|
|
||||||
|
|
||||||
return $query->result();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is used to get the Purchase order Type
|
|
||||||
* @return array $result : This is result of the query
|
|
||||||
*/
|
|
||||||
function getPurchasingCategory()
|
|
||||||
{
|
|
||||||
$ConfigID = 'C007';
|
|
||||||
$this->db->select('ConfigValue');
|
|
||||||
$this->db->from('T_ConfigDetails');
|
|
||||||
$this->db->where('Config_id ',$ConfigID );
|
|
||||||
$query = $this->db->get();
|
|
||||||
|
|
||||||
return $query->result();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is used to get the Purchase order Type
|
|
||||||
* @return array $result : This is result of the query
|
|
||||||
*/
|
|
||||||
function getEmployeeList()
|
|
||||||
{
|
|
||||||
$this->db->select('EmpID,FirstName,LastName,Role,DepartmentName');
|
|
||||||
$this->db->from('T_EmployeeDetails');
|
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user