header file changes
This commit is contained in:
parent
d2ce6373f6
commit
48d748a9a8
@ -243,8 +243,7 @@ class CostCenter extends BaseController
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if($this->DEPCode == FINANCE )
|
|
||||||
{
|
|
||||||
$this->form_validation->set_rules('CostCode','CostCode','trim|required');
|
$this->form_validation->set_rules('CostCode','CostCode','trim|required');
|
||||||
$this->form_validation->set_rules('CostName','CostName','trim|required');
|
$this->form_validation->set_rules('CostName','CostName','trim|required');
|
||||||
|
|
||||||
@ -331,16 +330,8 @@ class CostCenter extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//$this->loadViews("access");
|
|
||||||
$this->load->view('access');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -447,12 +438,12 @@ class CostCenter extends BaseController
|
|||||||
*/
|
*/
|
||||||
function deletecost()
|
function deletecost()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
echo(json_encode(array('status'=>'access')));
|
// echo(json_encode(array('status'=>'access')));
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$CostCenterID = $this->input->Costst('CostCentreID');
|
$CostCenterID = $this->input->Costst('CostCentreID');
|
||||||
$cost = array('CreateDate'=>date('Y-m-d H:i:sa'));
|
$cost = array('CreateDate'=>date('Y-m-d H:i:sa'));
|
||||||
|
|
||||||
@ -460,7 +451,7 @@ class CostCenter extends BaseController
|
|||||||
|
|
||||||
if ($result > 0) { echo(json_encode(array('status'=>TRUE))); }
|
if ($result > 0) { echo(json_encode(array('status'=>TRUE))); }
|
||||||
else { echo(json_encode(array('status'=>FALSE))); }
|
else { echo(json_encode(array('status'=>FALSE))); }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
function export_cost(){
|
function export_cost(){
|
||||||
|
|||||||
@ -221,12 +221,12 @@ class companycontroller extends BaseController
|
|||||||
{
|
{
|
||||||
//die();
|
//die();
|
||||||
// $data['payment'] = $this->companydetailsmodel->getpayment();
|
// $data['payment'] = $this->companydetailsmodel->getpayment();
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
|
|
||||||
|
|
||||||
$PictureName = $this->input->post('Image');
|
$PictureName = $this->input->post('Image');
|
||||||
@ -317,7 +317,7 @@ class companycontroller extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
// redirect('companyview');
|
// redirect('companyview');
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -39,12 +39,12 @@ class department extends BaseController
|
|||||||
*/
|
*/
|
||||||
function departmentListing()
|
function departmentListing()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$this->load->model('department_model');
|
$this->load->model('department_model');
|
||||||
|
|
||||||
//$searchText = $this->input->post('searchText');
|
//$searchText = $this->input->post('searchText');
|
||||||
@ -57,7 +57,7 @@ class department extends BaseController
|
|||||||
$this->global['pageTitle'] = 'Siddharth Industries : Department Listing';
|
$this->global['pageTitle'] = 'Siddharth Industries : Department Listing';
|
||||||
|
|
||||||
$this->loadViews("departmentListing", $this->global, $data, NULL);
|
$this->loadViews("departmentListing", $this->global, $data, NULL);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This function is used to load the add new supplier */
|
* This function is used to load the add new supplier */
|
||||||
|
|||||||
@ -388,19 +388,19 @@ echo "<script>alert('Record Not Saved!');</script>";redirect('employeeListing','
|
|||||||
$data['Department'] = $this->employeedetails_model->getDepartment();
|
$data['Department'] = $this->employeedetails_model->getDepartment();
|
||||||
$this->global['pageTitle'] = 'Siddharth : Add New Employee';
|
$this->global['pageTitle'] = 'Siddharth : Add New Employee';
|
||||||
|
|
||||||
if($this->role == ROLE_ADMIN || $this->DEPCode == HR)
|
// if($this->role == ROLE_ADMIN || $this->DEPCode == HR)
|
||||||
{
|
// {
|
||||||
|
|
||||||
|
|
||||||
$this->loadViews("addemployee", $this->global, $data, NULL);
|
$this->loadViews("addemployee", $this->global, $data, NULL);
|
||||||
|
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
// $this->loadViews("access", $this->global, $data, NULL);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -241,12 +241,12 @@ class rawmaterialdetails extends BaseController
|
|||||||
*/
|
*/
|
||||||
function editRawmaterial()
|
function editRawmaterial()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$RawmaterialID = $this->input->post('MaterialCode');
|
$RawmaterialID = $this->input->post('MaterialCode');
|
||||||
$this->form_validation->set_rules('MaterialName','Material Name','trim|required|');
|
$this->form_validation->set_rules('MaterialName','Material Name','trim|required|');
|
||||||
$this->form_validation->set_rules('MaterialType','MaterialType','trim');
|
$this->form_validation->set_rules('MaterialType','MaterialType','trim');
|
||||||
@ -334,7 +334,7 @@ class rawmaterialdetails extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** this function can be use for excel report **/
|
/** this function can be use for excel report **/
|
||||||
|
|||||||
@ -44,18 +44,11 @@ class report extends BaseController
|
|||||||
|
|
||||||
//print_r($data);
|
//print_r($data);
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("report_pendingreqst",$this->global,$data, NULL);
|
$this->loadviews("report_pendingreqst",$this->global,$data, NULL);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public function releasedPO()
|
public function releasedPO()
|
||||||
{
|
{
|
||||||
@ -81,14 +74,9 @@ class report extends BaseController
|
|||||||
|
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_POreleased",$this->global,$data, NULL);
|
$this->loadviews("Report_POreleased",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function openorderPO()
|
public function openorderPO()
|
||||||
@ -116,15 +104,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_openorder",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_openorder",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function TotalOrd()
|
public function TotalOrd()
|
||||||
@ -141,15 +123,9 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_totalorders",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_totalorders",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function ccr()
|
public function ccr()
|
||||||
@ -169,16 +145,10 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
//print_r($data);
|
//print_r($data);
|
||||||
|
|
||||||
@ -192,16 +162,10 @@ class report extends BaseController
|
|||||||
|
|
||||||
$data['mms']=$this->dahsboard_Model->report_MMSupplier();
|
$data['mms']=$this->dahsboard_Model->report_MMSupplier();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_Material_Master_SupplierWise",$this->global,$data, NULL);
|
$this->loadviews("Report_Material_Master_SupplierWise",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -215,16 +179,8 @@ class report extends BaseController
|
|||||||
$data['mmi']=$this->dahsboard_Model->report_MMItem();
|
$data['mmi']=$this->dahsboard_Model->report_MMItem();
|
||||||
|
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_Material_Master_ItemWise",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public function MM_ReceiptValue()
|
public function MM_ReceiptValue()
|
||||||
{
|
{
|
||||||
@ -241,15 +197,9 @@ class report extends BaseController
|
|||||||
$data['mmr']=$this->dahsboard_Model->report_MMReceiptValue($fa,$aa,$m);
|
$data['mmr']=$this->dahsboard_Model->report_MMReceiptValue($fa,$aa,$m);
|
||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_Material_Master_ReceiptValue",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_Material_Master_ReceiptValue",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -275,15 +225,9 @@ class report extends BaseController
|
|||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -330,16 +274,10 @@ class report extends BaseController
|
|||||||
$data['purchase']=$this->dahsboard_Model->report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
$data['purchase']=$this->dahsboard_Model->report_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
$this->loadviews("Report_purchase",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -361,16 +299,10 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -387,15 +319,9 @@ class report extends BaseController
|
|||||||
$data['mont']=$mon;
|
$data['mont']=$mon;
|
||||||
$data['month']=$this->dahsboard_Model->report_month_wise($month);
|
$data['month']=$this->dahsboard_Model->report_month_wise($month);
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_month_wise",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_month_wise",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -412,15 +338,9 @@ class report extends BaseController
|
|||||||
$data['year']=$month;
|
$data['year']=$month;
|
||||||
$data['ytotal']=$this->dahsboard_Model->report_year_wise_total($a,$b);
|
$data['ytotal']=$this->dahsboard_Model->report_year_wise_total($a,$b);
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_year_wise_total",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_year_wise_total",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -446,16 +366,10 @@ class report extends BaseController
|
|||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_supplier",$this->global,$data, NULL);
|
$this->loadviews("Report_supplier",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function consolidate()
|
public function consolidate()
|
||||||
@ -476,16 +390,10 @@ class report extends BaseController
|
|||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_consolidate",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -510,14 +418,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->consolidate_month($m,$sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->consolidate_month($m,$sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_m",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_m",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function consolidate_year()
|
public function consolidate_year()
|
||||||
@ -539,14 +442,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->consolidate_year($sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->consolidate_year($sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_y",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_y",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function cumulative()
|
public function cumulative()
|
||||||
@ -558,15 +456,9 @@ class report extends BaseController
|
|||||||
|
|
||||||
$data['cum']=$this->dahsboard_Model->report_cumulative();
|
$data['cum']=$this->dahsboard_Model->report_cumulative();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_cumulative",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_cumulative",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -636,15 +528,9 @@ class report extends BaseController
|
|||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -715,16 +601,10 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_year_wise_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_year_wise_inward",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function imonth_wise()
|
public function imonth_wise()
|
||||||
@ -779,17 +659,11 @@ class report extends BaseController
|
|||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -812,14 +686,8 @@ class report extends BaseController
|
|||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function i_consolidate_month()
|
public function i_consolidate_month()
|
||||||
@ -842,14 +710,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_month_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_month_inward",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function i_consolidate_year()
|
public function i_consolidate_year()
|
||||||
@ -871,14 +734,13 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_year_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_year_inward",$this->global,$data, NULL);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
// $this->loadViews("access", $this->global, $data, NULL);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
public function icumulative()
|
public function icumulative()
|
||||||
@ -890,15 +752,9 @@ class report extends BaseController
|
|||||||
|
|
||||||
$data['cum']=$this->dahsboard_Model->ireport_cumulative();
|
$data['cum']=$this->dahsboard_Model->ireport_cumulative();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_cumulative_inward",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_cumulative_inward",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -954,15 +810,9 @@ class report extends BaseController
|
|||||||
|
|
||||||
$data['cum']=$this->dahsboard_Model->rawi_report_cumulative();
|
$data['cum']=$this->dahsboard_Model->rawi_report_cumulative();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_cumulative_raw",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("Report_cumulative_raw",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1021,14 +871,9 @@ class report extends BaseController
|
|||||||
$data['material']=$this->dahsboard_Model->category();
|
$data['material']=$this->dahsboard_Model->category();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function rawi_consolidate_month()
|
public function rawi_consolidate_month()
|
||||||
@ -1049,14 +894,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_month($m,$cat,$sup,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_month($m,$cat,$sup,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_month",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_month",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function rawi_consolidate_year()
|
public function rawi_consolidate_year()
|
||||||
@ -1076,14 +916,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_year($cat,$sup,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_year($cat,$sup,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_consolidate_year",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_year",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function pending_purchase()
|
public function pending_purchase()
|
||||||
@ -1111,14 +946,9 @@ class report extends BaseController
|
|||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
||||||
|
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("Report_pending_purchase",$this->global,$data, NULL);
|
$this->loadviews("Report_pending_purchase",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function per()
|
public function per()
|
||||||
@ -1139,14 +969,9 @@ class report extends BaseController
|
|||||||
$data['per']=$this->dahsboard_Model->per($fa,$aa,$m);
|
$data['per']=$this->dahsboard_Model->per($fa,$aa,$m);
|
||||||
|
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("report_emp",$this->global,$data, NULL);
|
$this->loadviews("report_emp",$this->global,$data, NULL);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function cashbook()
|
public function cashbook()
|
||||||
@ -1179,15 +1004,8 @@ class report extends BaseController
|
|||||||
// $data['todayincome']=$this->dahsboard_Model->today_data_income();
|
// $data['todayincome']=$this->dahsboard_Model->today_data_income();
|
||||||
// $data['todayexpense']=$this->dahsboard_Model->today_data_expense();
|
// $data['todayexpense']=$this->dahsboard_Model->today_data_expense();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("reportcashbook",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1202,15 +1020,9 @@ class report extends BaseController
|
|||||||
// $data['monthlyincreport']=$this->dahsboard_Model->monthincomereport();
|
// $data['monthlyincreport']=$this->dahsboard_Model->monthincomereport();
|
||||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("cashbookmonthlyexpenses",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1230,15 +1042,9 @@ class report extends BaseController
|
|||||||
//print_r($data['finyear']);
|
//print_r($data['finyear']);
|
||||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||||
|
|
||||||
if($this->DEPCode == MANAGEMENT)
|
|
||||||
{
|
|
||||||
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
$this->loadviews("cashbookyearlyexpenses",$this->global,$data, NULL);
|
||||||
{
|
|
||||||
$this->loadViews("access", $this->global, $data, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public function cashbookdepartment()
|
public function cashbookdepartment()
|
||||||
|
|||||||
@ -990,19 +990,19 @@ function attendanceyear($empID ='')
|
|||||||
*/
|
*/
|
||||||
function userListing()
|
function userListing()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
|
|
||||||
$data['userRecords'] = $this->user_model->userListing();
|
$data['userRecords'] = $this->user_model->userListing();
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : User Listing';
|
$this->global['pageTitle'] = 'Siddharth : User Listing';
|
||||||
|
|
||||||
$this->loadViews("users", $this->global, $data, NULL);
|
$this->loadViews("users", $this->global, $data, NULL);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1011,12 +1011,12 @@ function attendanceyear($empID ='')
|
|||||||
*/
|
*/
|
||||||
function addNew()
|
function addNew()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$data['EmpList'] = $this->user_model->getAllEmployees();
|
$data['EmpList'] = $this->user_model->getAllEmployees();
|
||||||
|
|
||||||
$data['roles'] = $this->user_model->getUserRoles();
|
$data['roles'] = $this->user_model->getUserRoles();
|
||||||
@ -1026,7 +1026,7 @@ function attendanceyear($empID ='')
|
|||||||
$this->global['pageTitle'] = 'Siddharth : Add New User';
|
$this->global['pageTitle'] = 'Siddharth : Add New User';
|
||||||
|
|
||||||
$this->loadViews("addNew", $this->global, $data, NULL);
|
$this->loadViews("addNew", $this->global, $data, NULL);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1197,12 +1197,12 @@ function Adduserdepartment()
|
|||||||
*/
|
*/
|
||||||
function editOld($UserId = '')
|
function editOld($UserId = '')
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE )
|
// if($this->isAdmin() == TRUE )
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
if($UserId == '')
|
if($UserId == '')
|
||||||
{
|
{
|
||||||
// redirect('userListing');
|
// redirect('userListing');
|
||||||
@ -1227,7 +1227,7 @@ function Adduserdepartment()
|
|||||||
$this->global['pageTitle'] = 'Siddharth : Edit User';
|
$this->global['pageTitle'] = 'Siddharth : Edit User';
|
||||||
|
|
||||||
$this->loadViews("editOld", $this->global, $data, NULL);
|
$this->loadViews("editOld", $this->global, $data, NULL);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1236,12 +1236,12 @@ function Adduserdepartment()
|
|||||||
*/
|
*/
|
||||||
function editUser()
|
function editUser()
|
||||||
{
|
{
|
||||||
if($this->isAdmin() == TRUE)
|
// if($this->isAdmin() == TRUE)
|
||||||
{
|
// {
|
||||||
$this->loadThis();
|
// $this->loadThis();
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
$userId = $this->input->post('EmpList');
|
$userId = $this->input->post('EmpList');
|
||||||
$this->form_validation->set_rules('EmpList','EmpList','trim|callback_Employee_validateS');
|
$this->form_validation->set_rules('EmpList','EmpList','trim|callback_Employee_validateS');
|
||||||
$this->form_validation->set_rules('role','role','trim|callback_Role_validate');
|
$this->form_validation->set_rules('role','role','trim|callback_Role_validate');
|
||||||
@ -1283,7 +1283,7 @@ function Adduserdepartment()
|
|||||||
|
|
||||||
redirect('userListing');
|
redirect('userListing');
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -162,7 +162,25 @@ $(function() {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- <?php print_r($DepAccesslist);?> -->
|
|
||||||
|
<!--
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>userListing">
|
||||||
|
<i class="fa fa-users"></i>
|
||||||
|
<span>Users</span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
<?php if($DEPCode == ADMIN){?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>userListing">
|
||||||
|
<i class="fa fa-users"></i>
|
||||||
|
<span>Users</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Requisition<span class="caret"></span></span>
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Requisition<span class="caret"></span></span>
|
||||||
@ -189,12 +207,24 @@ $(function() {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- <?php print_r($DepAccesslist);?> -->
|
<?php if(empty($DepAccesslist)){?>
|
||||||
|
<?php if($DEPCode == PURCHASE){?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>CreatePO">
|
||||||
|
<i class="fa fa-empire"></i>
|
||||||
|
<span>Purchase Order From Requisition</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
<?}
|
||||||
|
else{?>
|
||||||
<?php foreach($DepAccesslist as $dep){?>
|
<?php foreach($DepAccesslist as $dep){?>
|
||||||
|
|
||||||
<?php $assd=$dep->AssDep;
|
<?php $assd=$dep->AssDep;
|
||||||
|
|
||||||
if($assd == PURCHASE || $DEPCode == PURCHASE){?>
|
if($assd == PURCHASE){?>
|
||||||
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
@ -203,8 +233,9 @@ $(function() {
|
|||||||
<span>Purchase Order From Requisition</span>
|
<span>Purchase Order From Requisition</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?} break;}?>
|
<?}}?>
|
||||||
|
|
||||||
|
<?}?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@ -228,37 +259,150 @@ $(function() {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- <li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>userListing">
|
<?php if(empty($DepAccesslist)){?>
|
||||||
<i class="fa fa-users"></i>
|
<?php if($DEPCode == STORE || $DEPCode == FINANCE){?>
|
||||||
<span>Users</span>
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/HourlyListing">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - HourlyListing</span>
|
||||||
</a>
|
</a>
|
||||||
</li> -->
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/dailyListing">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - DailyListing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/getStockDetails">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - StockDetails</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php if($DEPCode == STORE){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>storerequisitionlisting">
|
||||||
|
<i class="fa fa-eye"></i>
|
||||||
|
<span>Store Requisition Listing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?}
|
||||||
|
else{?>
|
||||||
|
<?php foreach($DepAccesslist as $dep){?>
|
||||||
|
|
||||||
|
<?php $assd=$dep->AssDep;
|
||||||
|
|
||||||
|
if($assd == STORE){?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/HourlyListing">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - HourlyListing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/dailyListing">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - DailyListing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>batchcard/getStockDetails">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Batchcard - StockDetails</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>storerequisitionlisting">
|
||||||
|
<i class="fa fa-eye"></i>
|
||||||
|
<span>Store Requisition Listing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?}}?>
|
||||||
|
|
||||||
|
<?}?>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(empty($DepAccesslist)){?>
|
||||||
|
<?php if($DEPCode == FINANCE || $DEPCode == SALES || $DEPCode == HR || $DEPCode == SYSTEM_ADMIN){;?>
|
||||||
|
|
||||||
<?php $check=0; ?>
|
<li class="treeview">
|
||||||
<?php foreach($DepAccesslist as $dep){
|
<span id="menu" data-toggle="dropdown"><i class="fa fa-database" aria-hidden="true"></i> Master Details<span class="caret"></span></span>
|
||||||
$assd= $dep->AssDep;
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||||
|
<?php if($DEPCode == FINANCE){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>costListing" >
|
||||||
|
<i class="fa fa-cart-plus"></i>
|
||||||
|
<span class="nav-label">Cost Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
if($assd == FINANCE || $assd == HR || $assd == SALES || $assd == SYSTEM_ADMIN || $DEPCode == FINANCE || $DEPCode == HR || $DEPCode ==SALES){ $check= $check+1;?>
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>assetListing" >
|
||||||
|
<i class="fa fa-cogs"></i>
|
||||||
|
<span class="nav-label">Asset Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if($DEPCode == HR){?>
|
||||||
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>employeeListing" >
|
||||||
|
<i class="fa fa-user-circle"></i>
|
||||||
|
<span class="nav-label">Employee Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if($DEPCode == SALES){?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>supplierListing" >
|
||||||
|
<i class="fa fa-user-secret"></i>
|
||||||
|
<span class="nav-label">Supplier Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
else {?>
|
||||||
|
<?php $check=0;?>
|
||||||
|
<?php foreach($DepAccesslist as $dep){ $assd= $dep->AssDep;
|
||||||
|
|
||||||
|
if($assd == FINANCE || $assd == HR || $assd == SALES || $assd == SYSTEM_ADMIN || $DEPCode == FINANCE || $DEPCode == HR || $DEPCode ==SALES){ $check= $check+1;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-database" aria-hidden="true"></i> Master Details<span class="caret"></span></span>
|
<span id="menu" data-toggle="dropdown"><i class="fa fa-database" aria-hidden="true"></i> Master Details<span class="caret"></span></span>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||||
|
<?php foreach($DepAccesslist as $dep){ $check2=0;
|
||||||
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
$assd= $dep->AssDep;?>
|
||||||
|
<?php if($assd == SALES || $assd == SYSTEM_ADMIN ||$DEPCode ==SALES){ $check2=1; ?>
|
||||||
<?php if($assd == SALES || $assd == SYSTEM_ADMIN ||$DEPCode ==SALES){ ?>
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>supplierListing" >
|
<a href="<?php echo base_url(); ?>supplierListing" >
|
||||||
@ -269,8 +413,13 @@ $(function() {
|
|||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if($check2 == 1){break;} }?>
|
||||||
|
|
||||||
<?php if($assd == FINANCE || $DEPCode == FINANCE){ ?>
|
|
||||||
|
|
||||||
|
<?php foreach($DepAccesslist as $dep){ $check1=0;
|
||||||
|
$assd= $dep->AssDep;?>
|
||||||
|
<?php if($assd == FINANCE || $DEPCode == FINANCE){ $check2=1; ?>
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>costListing" >
|
<a href="<?php echo base_url(); ?>costListing" >
|
||||||
@ -288,8 +437,13 @@ $(function() {
|
|||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if($check2 == 1){break;} }?>
|
||||||
|
|
||||||
<?php if($assd == HR || $assd == SYSTEM_ADMIN || $DEPCode == HR){ ?>
|
|
||||||
|
|
||||||
|
<?php foreach($DepAccesslist as $dep){ $check1=0;
|
||||||
|
$assd= $dep->AssDep;?>
|
||||||
|
<?php if($assd == HR || $assd == SYSTEM_ADMIN || $DEPCode == HR){ $check2=1; ?>
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>companyview" >
|
<a href="<?php echo base_url(); ?>companyview" >
|
||||||
@ -305,12 +459,7 @@ $(function() {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php }?>
|
<?php if($assd == SYSTEM_ADMIN){?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($assd == SYSTEM_ADMIN){ ?>
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>configlisting" >
|
<a href="<?php echo base_url(); ?>configlisting" >
|
||||||
<i class="fa fa-file-text"></i>
|
<i class="fa fa-file-text"></i>
|
||||||
@ -342,57 +491,279 @@ $(function() {
|
|||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
<?php if($check2 == 1){break;} }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<? if($check ==1){break;} }
|
<?php }?>
|
||||||
|
<?php if ($check == 1){break;}}?>
|
||||||
}?>
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(empty($DepAccesslist)){?>
|
||||||
|
<?php if($DEPCode == PURCHASE || $DEPCode == FINANCE || $DEPCode == MANAGEMENT){?>
|
||||||
|
|
||||||
<?php $check=0; $check1=0; $check2=0;?>
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;
|
|
||||||
|
|
||||||
if($assd == QUALITY || $assd == STORE || $assd == ADMIN || $DEPCode == QUALITY || $DEPCode == STORE || $DEPCode == ADMIN){ $check= $check+1;?>
|
|
||||||
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Inspection<span class="caret"></span></span>
|
<?if($DEPCode == FINANCE){?>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($assd == ADMIN || $DEPCode == ADMIN){ $check1 =1;?>
|
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>Addigr">
|
<a href="<?php echo base_url(); ?>POApproval">
|
||||||
<i class="fa fa-upload"></i>
|
<i class="fa fa-users"></i>
|
||||||
<span>Inward Gate Register Entry</span>
|
<span>Approve Purchase Order</span>
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>ViewigrDetails">
|
|
||||||
<i class="fa fa-upload"></i>
|
|
||||||
<span>View Inward Gate Register</span>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
<?php if($assd == STORE || $assd == QUALITY || $DEPCode == STORE || $DEPCode ==QUALITY){?>
|
<?php if($DEPCode == MANAGEMENT){?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>PORelease">
|
||||||
|
<i class="fa fa-history"></i>
|
||||||
|
<span>Release Purchase Order</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php if($DEPCode == PURCHASE){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>EmergencyPO">
|
||||||
|
<i class="fa fa-ambulance"></i>
|
||||||
|
<span>Emergency Purchase Order </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>purchaseorderListing">
|
||||||
|
<i class="fa fa-list"></i>
|
||||||
|
<span>Purchase Order List </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>amendmentpurchaseorder">
|
||||||
|
<i class="fa fa-ambulance"></i>
|
||||||
|
<span>Amendment Purchase Order </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
if($DEPCode == PURCHASE)
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>AdvanceRequest">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>Advance Request</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<? }
|
||||||
|
|
||||||
|
else{ $check =0;?>
|
||||||
|
<?php foreach($DepAccesslist as $dep){
|
||||||
|
$assd= $dep->AssDep;
|
||||||
|
if($assd == PURCHASE || $assd == FINANCE || $assd == MANAGEMENT || $DEPCode == PURCHASE || $DEPCode == FINANCE || $DEPCode == MANAGEMENT){ $check = $check+1;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||||
|
<?php foreach($DepAccesslist as $dep){$assd= $dep->AssDep; $check1=1;?>
|
||||||
|
|
||||||
|
<?php if($assd == FINANCE || $DEPCode == FINANCE){ $check1=2;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>POApproval">
|
||||||
|
<i class="fa fa-users"></i>
|
||||||
|
<span>Approve Purchase Order</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } if($check1 ==2){break;}?>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
<?php foreach($DepAccesslist as $dep){$assd= $dep->AssDep; $check1=1;?>
|
||||||
|
|
||||||
|
<?php if($assd == MANAGEMENT || $DEPCode == MANAGEMENT){ $check1=2;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>PORelease">
|
||||||
|
<i class="fa fa-history"></i>
|
||||||
|
<span>Release Purchase Order</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } if($check1 ==2){break;}?>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php foreach($DepAccesslist as $dep){$assd= $dep->AssDep; $check1=1;?>
|
||||||
|
|
||||||
|
<?php if($assd == PURCHASE || $DEPCode == PURCHASE){ $check1=2;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>EmergencyPO">
|
||||||
|
<i class="fa fa-ambulance"></i>
|
||||||
|
<span>Emergency Purchase Order </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>purchaseorderListing">
|
||||||
|
<i class="fa fa-list"></i>
|
||||||
|
<span>Purchase Order List </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>amendmentpurchaseorder">
|
||||||
|
<i class="fa fa-ambulance"></i>
|
||||||
|
<span>Amendment Purchase Order </span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } if($check1 ==2){break;}?>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<?php foreach($DepAccesslist as $dep){$assd= $dep->AssDep; $check1=1;?>
|
||||||
|
|
||||||
|
<?php if($assd == PURCHASE || $DEPCode == PURCHASE){ $check1=2;?>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>AdvanceRequest">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>Advance Request</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php } if($check1 ==2){break;}?>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
<?php if($check == 1){break;} }?>
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(empty($DepAccesslist)){?>
|
||||||
|
<?php if($DEPCode == FINANCE){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Billing <span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewMRIRBilling">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>MRIR Billing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ServicePOBilling">
|
||||||
|
<i class="fa fa-keyboard-o"></i>
|
||||||
|
<span>Service PO Billing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-money"></i> Cash Book <span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>cashbook/CashbookList">
|
||||||
|
<i class="fa fa-vcard"></i> <span>Account Master</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewIncomeExpense">
|
||||||
|
<i class="fa fa-credit-card"></i><span>Receipt and Payment</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
else{?>
|
||||||
|
<?php $check =0 ;?>
|
||||||
|
<?php foreach($DepAccesslist as $dep){
|
||||||
|
$assd= $dep->AssDep;
|
||||||
|
|
||||||
|
if($assd == FINANCE || $DEPCode == FINANCE){ $check = $check+1;?>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Billing <span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewMRIRBilling">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>MRIR Billing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ServicePOBilling">
|
||||||
|
<i class="fa fa-keyboard-o"></i>
|
||||||
|
<span>Service PO Billing</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-money"></i> Cash Book <span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>cashbook/CashbookList">
|
||||||
|
<i class="fa fa-vcard"></i> <span>Account Master</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewIncomeExpense">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Receipt and Payment</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
<?php if($check ==1){break;}}}?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(empty($DepAccesslist)){
|
||||||
|
|
||||||
|
if($DEPCode == STORE || $DEPCode == QUALITY || $DEPCode == ADMIN){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Inspection<span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||||
|
<?php if($DEPCode == STORE || $DEPCode == QUALITY){?>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>Viewigr">
|
<a href="<?php echo base_url(); ?>Viewigr">
|
||||||
<i class="fa fa-eye"></i>
|
<i class="fa fa-eye"></i>
|
||||||
@ -428,20 +799,25 @@ $(function() {
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>Addigr">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Inward Gate Register Entry</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewigrDetails">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>View Inward Gate Register</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
|
||||||
<?} if($check1==1){break;}?>
|
|
||||||
|
|
||||||
<?}?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<? if($check ==1){break;} }}?>
|
<?php if($DEPCode == STORE){?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
|
||||||
<?php if($assd == STORE || $DEPCode == STORE){?>
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>Stock">
|
<a href="<?php echo base_url(); ?>Stock">
|
||||||
<i class="fa fa-dashboard"></i> <span>Stock Details</span>
|
<i class="fa fa-dashboard"></i> <span>Stock Details</span>
|
||||||
@ -449,151 +825,212 @@ $(function() {
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
else{?>
|
||||||
|
<?php $check=0;?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $check =0;?>
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
<?php foreach($DepAccesslist as $dep){
|
||||||
$assd= $dep->AssDep;
|
$assd= $dep->AssDep;
|
||||||
|
|
||||||
if($assd == PURCHASE || $assd == FINANCE || $assd == MANAGEMENT || $DEPCode == PURCHASE || $DEPCode == FINANCE || $DEPCode == MANAGEMENT) { $check= $check+1;?>
|
//echo $assd;
|
||||||
|
|
||||||
|
if($assd == STORE || $DEPCode == QUALITY || $assd == QUALITY || DEPCode == STORE){ $check = $check+1;?>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-check-square-o"></i> Inspection<span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<span id="menu" data-toggle="dropdown"><i class="fa fa-first-order"></i> Purchase order<span class="caret"></span></span>
|
<a href="<?php echo base_url(); ?>Viewigr">
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
<i class="fa fa-eye"></i>
|
||||||
|
<span>View Inward Gate Register</span>
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
|
||||||
|
|
||||||
<?php if($assd == FINANCE || $DEPCode == FINANCE){?>
|
|
||||||
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>POApproval">
|
|
||||||
<i class="fa fa-users"></i>
|
|
||||||
<span>Approve Purchase Order</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($assd == MANAGEMENT || $DEPCode == MANAGEMENT){?>
|
|
||||||
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>PORelease">
|
|
||||||
<i class="fa fa-history"></i>
|
|
||||||
<span>Release Purchase Order</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($assd == PURCHASE || $DEPCode == PURCHASE){?>
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>EmergencyPO">
|
|
||||||
<i class="fa fa-ambulance"></i>
|
|
||||||
<span>Emergency Purchase Order </span>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>purchaseorderListing">
|
<a href="<?php echo base_url(); ?>ViewMRIR">
|
||||||
<i class="fa fa-list"></i>
|
<i class="fa fa-upload"></i>
|
||||||
<span>Purchase Order List </span>
|
<span>View Material Inspection Report</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>quality">
|
||||||
|
<i class="fa fa-list-alt"></i>
|
||||||
|
<span>Product Test Specification Master</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>qualityreportlist">
|
||||||
|
<i class="fa fa-table"></i>
|
||||||
|
<span>Product Test Report</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>amendmentpurchaseorder">
|
<a href="<?php echo base_url(); ?>qualityreportlistinward">
|
||||||
<i class="fa fa-ambulance"></i>
|
<i class="fa fa-hand-o-down"></i>
|
||||||
<span>Amendment Purchase Order </span>
|
<span>Inward Material Test Report</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php }?>
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>Addigr">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Inward Gate Register Entry</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewigrDetails">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>View Inward Gate Register</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php if($check ==1){break;} }}?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
|
||||||
<?php if($assd == PURCHASE || $DEPCode == PURCHASE){?>
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>AdvanceRequest">
|
|
||||||
<i class="fa fa-dashboard"></i> <span>Advance Request</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
<?php if($check ==1){break;}}}?>
|
||||||
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
<?php if(empty($DepAccesslist)){?>
|
||||||
<?php if($assd == FINANCE || $DEPCode == FINANCE){?>
|
<?php if($DEPCode == HR){?>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Billing <span class="caret"></span></span>
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> PaySlip <span class="caret"></span></span>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>ViewMRIRBilling">
|
<a href="<?php echo base_url(); ?>monthlypay">
|
||||||
<i class="fa fa-dashboard"></i> <span>MRIR Billing</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>ServicePOBilling">
|
|
||||||
<i class="fa fa-keyboard-o"></i>
|
<i class="fa fa-keyboard-o"></i>
|
||||||
<span>Service PO Billing</span>
|
<span>Monthly Pay Information</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<!-- <li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ExcelUpload2">
|
||||||
|
<i class="fa fa-upload"></i>
|
||||||
|
<span>Monthly Pay Upload</span>
|
||||||
|
</a>
|
||||||
|
</li> -->
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>ViewPay">
|
||||||
|
<i class="fa fa-money"></i>
|
||||||
|
<span>PaySlip Generator</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>PaysilpListing" >
|
||||||
|
<i class="fa fa-credit-card-alt"></i> <span>Edit Payslip</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>emppayListings" >
|
||||||
|
<i class="fa fa-credit-card"></i> <span>Employee Salary Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>BankReport" >
|
||||||
|
<i class="fa fa-table"></i> <span>Bank Report</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>publicholidays" >
|
||||||
|
<i class="fa fa-calendar"></i> <span>Public Holidays</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>loanreports" >
|
||||||
|
<i class="fa fa-list-alt"></i> <span>Loan Reports</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>bonusreports" >
|
||||||
|
<i class="fa fa-list-alt"></i> <span>Incentives and Bonus Reports</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
else{?>
|
||||||
|
<?php $check =0;?>
|
||||||
|
<?php foreach($DepAccesslist as $dep){
|
||||||
|
$assd= $dep->AssDep;
|
||||||
|
if($assd == HR || $DEPCode == HR){ $check = $check+1;?>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-money"></i> Cash Book <span class="caret"></span></span>
|
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> PaySlip <span class="caret"></span></span>
|
||||||
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu3">
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>cashbook/CashbookList">
|
<a href="<?php echo base_url(); ?>monthlypay">
|
||||||
<i class="fa fa-vcard"></i> <span>Account Master</span>
|
<i class="fa fa-keyboard-o"></i>
|
||||||
|
<span>Monthly Pay Information</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>ViewIncomeExpense">
|
<a href="<?php echo base_url(); ?>ViewPay">
|
||||||
<i class="fa fa-credit-card"></i>
|
<i class="fa fa-money"></i>
|
||||||
<span>Receipt and Payment</span>
|
<span>PaySlip Generator</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>PaysilpListing" >
|
||||||
|
<i class="fa fa-credit-card-alt"></i> <span>Edit Payslip</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>emppayListings" >
|
||||||
|
<i class="fa fa-credit-card"></i> <span>Employee Salary Details</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>BankReport" >
|
||||||
|
<i class="fa fa-table"></i> <span>Bank Report</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>publicholidays" >
|
||||||
|
<i class="fa fa-calendar"></i> <span>Public Holidays</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>loanreports" >
|
||||||
|
<i class="fa fa-list-alt"></i> <span>Loan Reports</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>bonusreports" >
|
||||||
|
<i class="fa fa-list-alt"></i> <span>Incentives and Bonus Reports</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
<? if($check ==1){break;} }?>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php if(empty($DepAccesslist)){?>
|
||||||
|
<?php if($DEPCode == MANAGEMENT){?>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>reports">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>ReportList</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<?php }?>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
else{?>
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
<?php foreach($DepAccesslist as $dep){
|
||||||
$assd= $dep->AssDep;?>
|
$assd= $dep->AssDep;?>
|
||||||
<?php if($assd == MANAGEMENT || $DEPCode == MANAGEMENT){?>
|
<?php if($assd == MANAGEMENT || $DEPCode == MANAGEMENT){?>
|
||||||
@ -607,35 +1044,9 @@ $(function() {
|
|||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php foreach($DepAccesslist as $dep){
|
|
||||||
$assd= $dep->AssDep;?>
|
|
||||||
<?php if($assd == SYSTEM_ADMIN){?>
|
|
||||||
<li class="treeview">
|
|
||||||
<span id="menu" data-toggle="dropdown" ><i class="fa fa-thumb-tack"></i> Attendance<span class="caret"></span></span> <ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
|
||||||
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>attendance">
|
|
||||||
<i class="fa fa-refresh fa-spin "></i>
|
|
||||||
<span>Monthly Attendance</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="treeview">
|
|
||||||
<a href="<?php echo base_url(); ?>permissionlist">
|
|
||||||
<i class="fa fa-user-circle "></i>
|
|
||||||
<span>Permission Slip</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
||||||
<?php }?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -305,12 +305,13 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc
|
|||||||
{
|
{
|
||||||
echo $rec->LineAmend ;
|
echo $rec->LineAmend ;
|
||||||
}
|
}
|
||||||
} }?>
|
} ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center;"><strong>Total</strong></td>
|
<td style="text-align: center;"><strong>Total</strong></td>
|
||||||
<td style="text-align: center;" rowspan="2"><b>Current Total Order :<?php echo $AmendmentPDF[0]->partenttotalorder ?></b></td>
|
<td style="text-align: center;" rowspan="2"><b>Current Total Order :<?php echo $AmendmentPDF[0]->partenttotalorder ?></b></td>
|
||||||
<td style="text-align: center;" rowspan="2"><b>Revised Total Order :<?php echo $AmendmentPDF[0]->TotalOrderValue ?></b></td>
|
<td style="text-align: center;" rowspan="2"><b>Revised Total Order :<?php echo $AmendmentPDF[0]->TotalOrderValue ?></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user