diff --git a/application/config/routes.php b/application/config/routes.php
index 0440d2f1..bf45d0b9 100755
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -207,5 +207,8 @@ $route['releasedpo'] = "report/releasedPO";
$route['openOrder'] = "report/openorderPO";
$route['TotalOrder'] = "report/TotalOrd";
$route['Report_costcenter'] = "report/ccr";
+$route['Report_Material_Supplier'] = "report/MM_Supplier";
+$route['Report_Material_Item'] = "report/MM_Item";
+$route['Report_Material_ReceiptValue'] = "report/MM_ReceiptValue";
/* End of file routes.php */
/* Location: ./application/config/routes.php */
diff --git a/application/controllers/report.php b/application/controllers/report.php
index 58dd9e09..6207f64a 100755
--- a/application/controllers/report.php
+++ b/application/controllers/report.php
@@ -82,469 +82,54 @@ class report extends BaseController
$data['ccrpt']=$this->dahsboard_Model->report_ccr();
-
+
$this->loadviews("Report_costcenter",$this->global,$data, NULL);
}
+ public function MM_Supplier()
+ {
+
+ $this->global['pageTitle'] = 'Siddharth : Reports';
+
+
+
+ $data['mms']=$this->dahsboard_Model->report_MMSupplier();
+
+
+ $this->loadviews("Report_Material_Master_SupplierWise",$this->global,$data, NULL);
+
+ }
+ public function MM_Item()
+ {
+
+ $this->global['pageTitle'] = 'Siddharth : Reports';
+
+
+
+ $data['mmi']=$this->dahsboard_Model->report_MMItem();
+
+
+ $this->loadviews("Report_Material_Master_ItemWise",$this->global,$data, NULL);
+
+ }
+ public function MM_ReceiptValue()
+ {
+
+ $this->global['pageTitle'] = 'Siddharth : Reports';
+
+
+
+ $data['mmr']=$this->dahsboard_Model->report_MMReceiptValue();
+
+
+ $this->loadviews("Report_Material_Master_ReceiptValue",$this->global,$data, NULL);
+
+ }
- function export_pending(){
-
-
- $this->load->library('excel');
- $this->excel->setActiveSheetIndex(0)->mergeCells('G3:M3');
- //$this->excel->setActiveSheetIndex(0)->getStyle('G3')->getAlignment()->applyFromArray(
- array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,);
- //);
-
- $this->excel->getActiveSheet()->setTitle('Pending Details');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->setCellValue('G3', 'SIDDHARTH INDUSTRIES Pending Details');
- $this->excel->getActiveSheet()->setCellValue('F5', 'S.No');
- $this->excel->getActiveSheet()->setCellValue('G5', 'Request Date');
- $this->excel->getActiveSheet()->setCellValue('H5', 'Request Number');
- $this->excel->getActiveSheet()->setCellValue('I5', 'Requestedby');
- $this->excel->getActiveSheet()->setCellValue('J5', 'DepartmentName');
- $this->excel->getActiveSheet()->setCellValue('K5', 'Request Type');
- $this->excel->getActiveSheet()->setCellValue('L5', 'Aging');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setSize(14);
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setBold(true);
-
-
-
-
-
- $exportData = $this->dahsboard_Model->export_reqlist();
-
- if ($exportData) {
- $i = 6;
- $s = 1;
- foreach ($exportData as $data) {
-//print_r($data);die();
- $this->excel->getActiveSheet()->setCellValue('F'. $i,$s);
-
- $this->excel->getActiveSheet()->setCellValue('G'. $i,$data->ReqDate);
- $this->excel->getActiveSheet()->setCellValue('H'. $i,$data->ReqNo);
- $this->excel->getActiveSheet()->setCellValue('I'. $i,$data->Requestedby);
- $this->excel->getActiveSheet()->setCellValue('J'. $i,$data->DepartmentName);
- $this->excel->getActiveSheet()->setCellValue('K'. $i,$data->ReqType);
- $this->excel->getActiveSheet()->setCellValue('L'. $i,$data->Aging);
-
-
-
-
-
- $i++;
- $s++;
- }
-
- }
-
- $filename = 'Pending_details' .' '. '.xls'; //save our workbook as this file name
- header('Content-Type: application/vnd.ms-excel'); //mime type
- header('Content-Disposition: attachment;filename="' . $filename . '"'); //tell browser what's the file name
- header('Cache-Control: max-age=0'); //no cache
- $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel5');
- if (ob_get_contents()) ob_end_clean();
- ob_start();
- $objWriter->save('php://output');
-
-
- }
- function export_relPO(){
-
-
- $this->load->library('excel');
- $this->excel->setActiveSheetIndex(0)->mergeCells('G3:M3');
- //$this->excel->setActiveSheetIndex(0)->getStyle('G3')->getAlignment()->applyFromArray(
- array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,);
- //);
-
- $this->excel->getActiveSheet()->setTitle('Released PO Details');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->setCellValue('G3', 'SIDDHARTH INDUSTRIES Released PO Details');
- $this->excel->getActiveSheet()->setCellValue('F5', 'S.No');
- $this->excel->getActiveSheet()->setCellValue('G5', 'PONO');
- $this->excel->getActiveSheet()->setCellValue('H5', 'POType');
- $this->excel->getActiveSheet()->setCellValue('I5', 'CreatedDate');
- $this->excel->getActiveSheet()->setCellValue('J5', 'ReleasedDate');
- $this->excel->getActiveSheet()->setCellValue('K5', 'Requested Department');
- $this->excel->getActiveSheet()->setCellValue('L5', 'TotalOrderValue');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setSize(14);
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setBold(true);
-
-
-
-
-
- $exportData = $this->dahsboard_Model->export_relpo();
-
- if ($exportData) {
- $i = 6;
- $s = 1;
- foreach ($exportData as $data) {
-//print_r($data);die();
- $this->excel->getActiveSheet()->setCellValue('F'. $i,$s);
-
- $this->excel->getActiveSheet()->setCellValue('G'. $i,$data->PONO);
- $this->excel->getActiveSheet()->setCellValue('H'. $i,$data->POType);
- $this->excel->getActiveSheet()->setCellValue('I'. $i,$data->CreatedDate);
- $this->excel->getActiveSheet()->setCellValue('J'. $i,$data->ReleasedDate);
- $this->excel->getActiveSheet()->setCellValue('K'. $i,$data->Dept_Name);
- $this->excel->getActiveSheet()->setCellValue('L'. $i,$data->TotalOrderValue);
-
-
-
-
-
- $i++;
- $s++;
- }
-
- }
-
- $filename = 'ReleasedPO_details' .' '. '.xls'; //save our workbook as this file name
- header('Content-Type: application/vnd.ms-excel'); //mime type
- header('Content-Disposition: attachment;filename="' . $filename . '"'); //tell browser what's the file name
- header('Cache-Control: max-age=0'); //no cache
- $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel5');
- if (ob_get_contents()) ob_end_clean();
- ob_start();
- $objWriter->save('php://output');
-
-
- }
- function export_openorder(){
-
-
- $this->load->library('excel');
- $this->excel->setActiveSheetIndex(0)->mergeCells('G3:M3');
- //$this->excel->setActiveSheetIndex(0)->getStyle('G3')->getAlignment()->applyFromArray(
- array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,);
- //);
-
- $this->excel->getActiveSheet()->setTitle('Pending PO Details');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->setCellValue('G3', 'SIDDHARTH INDUSTRIES OpenOrder Pending Details');
- $this->excel->getActiveSheet()->setCellValue('F5', 'S.No');
- $this->excel->getActiveSheet()->setCellValue('G5', 'PONO');
- $this->excel->getActiveSheet()->setCellValue('H5', 'POType');
- $this->excel->getActiveSheet()->setCellValue('I5', 'CreatedDate');
- $this->excel->getActiveSheet()->setCellValue('J5', 'ApprovedDate');
- $this->excel->getActiveSheet()->setCellValue('K5', 'Requested Department');
- $this->excel->getActiveSheet()->setCellValue('L5', 'TotalOrderValue');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setSize(14);
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setBold(true);
-
-
-
-
-
- $exportData = $this->dahsboard_Model->export_openorder();
-
- if ($exportData) {
- $i = 6;
- $s = 1;
- foreach ($exportData as $data) {
-//print_r($data);die();
- $this->excel->getActiveSheet()->setCellValue('F'. $i,$s);
-
- $this->excel->getActiveSheet()->setCellValue('G'. $i,$data->PONO);
- $this->excel->getActiveSheet()->setCellValue('H'. $i,$data->POType);
- $this->excel->getActiveSheet()->setCellValue('I'. $i,$data->CreatedDate);
- $this->excel->getActiveSheet()->setCellValue('J'. $i,$data->ApprovedDate);
- $this->excel->getActiveSheet()->setCellValue('K'. $i,$data->Dept_Name);
- $this->excel->getActiveSheet()->setCellValue('L'. $i,$data->TotalOrderValue);
-
-
-
-
-
- $i++;
- $s++;
- }
-
- }
-
- $filename = 'OpenOrder_details' .' '. '.xls'; //save our workbook as this file name
- header('Content-Type: application/vnd.ms-excel'); //mime type
- header('Content-Disposition: attachment;filename="' . $filename . '"'); //tell browser what's the file name
- header('Cache-Control: max-age=0'); //no cache
- $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel5');
- if (ob_get_contents()) ob_end_clean();
- ob_start();
- $objWriter->save('php://output');
-
-
- }
- function export_total(){
-
-
- $this->load->library('excel');
- $this->excel->setActiveSheetIndex(0)->mergeCells('G3:M3');
- //$this->excel->setActiveSheetIndex(0)->getStyle('G3')->getAlignment()->applyFromArray(
- array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,);
- //);
-
- $this->excel->getActiveSheet()->setTitle('Total Order Details');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->setCellValue('G3', 'SIDDHARTH INDUSTRIES Total Order Details');
- $this->excel->getActiveSheet()->setCellValue('F5', 'S.No');
- $this->excel->getActiveSheet()->setCellValue('G5', 'Department');
- $this->excel->getActiveSheet()->setCellValue('H5', 'PO Created');
- $this->excel->getActiveSheet()->setCellValue('I5', 'Approved');
- $this->excel->getActiveSheet()->setCellValue('J5', 'OnHold');
- $this->excel->getActiveSheet()->setCellValue('K5', 'Released');
- $this->excel->getActiveSheet()->setCellValue('L5', 'IGR Created');
- $this->excel->getActiveSheet()->setCellValue('M5', 'MRIR Approved');
-
-
-
-
-
-
-
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setSize(14);
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('M5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('M5')->getFont()->setBold(true);
-
-
-
-
-
-
- $exportData = $this->dahsboard_Model->export_total();
-
- if ($exportData) {
- $i = 6;
- $s = 1;
- foreach ($exportData as $data) {
-//print_r($data);die();
- $this->excel->getActiveSheet()->setCellValue('F'. $i,$s);
-
- $this->excel->getActiveSheet()->setCellValue('G'. $i,$data->Dept_Name);
- $this->excel->getActiveSheet()->setCellValue('H'. $i,$data->PO_Created);
- $this->excel->getActiveSheet()->setCellValue('I'. $i,$data->Approved);
- $this->excel->getActiveSheet()->setCellValue('J'. $i,$data->Onhold);
- $this->excel->getActiveSheet()->setCellValue('K'. $i,$data->Released);
- $this->excel->getActiveSheet()->setCellValue('L'. $i,$data->IGR_Created);
- $this->excel->getActiveSheet()->setCellValue('M'. $i,$data->MRIR_Approved);
-
-
-
-
-
-
- $i++;
- $s++;
- }
-
- }
-
- $filename = 'TotalOrder_details' .' '. '.xls'; //save our workbook as this file name
- header('Content-Type: application/vnd.ms-excel'); //mime type
- header('Content-Disposition: attachment;filename="' . $filename . '"'); //tell browser what's the file name
- header('Cache-Control: max-age=0'); //no cache
- $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel5');
- if (ob_get_contents()) ob_end_clean();
- ob_start();
- $objWriter->save('php://output');
-
-
- }
- function export_ccr(){
-
-
- $this->load->library('excel');
- $this->excel->setActiveSheetIndex(0)->mergeCells('G3:M3');
- //$this->excel->setActiveSheetIndex(0)->getStyle('G3')->getAlignment()->applyFromArray(
- array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,);
- //);
-
- $this->excel->getActiveSheet()->setTitle('Cost Center Details');
-
-
-
-
-
-
- $this->excel->getActiveSheet()->setCellValue('G3', 'SIDDHARTH INDUSTRIES Cost Center Details');
- $this->excel->getActiveSheet()->setCellValue('F5', 'S.No');
- $this->excel->getActiveSheet()->setCellValue('G5', 'Cost Center Code');
- $this->excel->getActiveSheet()->setCellValue('H5', 'Cost Center Name');
- $this->excel->getActiveSheet()->setCellValue('I5', 'Department');
- $this->excel->getActiveSheet()->setCellValue('J5', 'Budet Type');
- $this->excel->getActiveSheet()->setCellValue('K5', 'Budget Year');
- $this->excel->getActiveSheet()->setCellValue('L5', 'Utilized Amount');
- $this->excel->getActiveSheet()->setCellValue('M5', 'Balance Amount');
-
-
-
-
-
-
-
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setSize(14);
- $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('F5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('G5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('H5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('I5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('J5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('K5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('L5')->getFont()->setBold(true);
- $this->excel->getActiveSheet()->getStyle('M5')->getFont()->setSize(12);
- $this->excel->getActiveSheet()->getStyle('M5')->getFont()->setBold(true);
-
-
-
-
-
-
- $exportData = $this->dahsboard_Model->export_ccr();
-
- if ($exportData) {
- $i = 6;
- $s = 1;
- foreach ($exportData as $data) {
-//print_r($data);die();
- $this->excel->getActiveSheet()->setCellValue('F'. $i,$s);
-
- $this->excel->getActiveSheet()->setCellValue('G'. $i,$data->Cost_Center_Code);
- $this->excel->getActiveSheet()->setCellValue('H'. $i,$data->Cost_Center_Name);
- $this->excel->getActiveSheet()->setCellValue('I'. $i,$data->Dept_Name);
- $this->excel->getActiveSheet()->setCellValue('J'. $i,$data->BudgetType);
- $this->excel->getActiveSheet()->setCellValue('K'. $i,$data->BudgetYear);
- $this->excel->getActiveSheet()->setCellValue('L'. $i,$data->Util_Amount);
- $this->excel->getActiveSheet()->setCellValue('M'. $i,$data->Avlbl_Amt);
-
-
-
-
-
-
- $i++;
- $s++;
- }
-
- }
-
- $filename = 'Cost_Center_details' .' '. '.xls'; //save our workbook as this file name
- header('Content-Type: application/vnd.ms-excel'); //mime type
- header('Content-Disposition: attachment;filename="' . $filename . '"'); //tell browser what's the file name
- header('Cache-Control: max-age=0'); //no cache
- $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel5');
- if (ob_get_contents()) ob_end_clean();
- ob_start();
- $objWriter->save('php://output');
-
-
- }
-
+
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 23bba4fb..1a4ed29c 100755
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -71,8 +71,7 @@ class user extends BaseController
$data['revenueprogress']=$this->dahsboard_Model->revenueprogress();
$data['importprogress']=$this->dahsboard_Model->importprogress();
$data['capitalprogress']=$this->dahsboard_Model->capitalprogress();
- $data['qdetails']=$this->dahsboard_Model->podetails();
- $data['dppo']=$this->dahsboard_Model->dept_po_details();
+
$this->loadViews("dashboard", $this->global, $data , NULL);
diff --git a/application/logs/log-2017-08-16.php b/application/logs/log-2017-08-16.php
index 6c603e14..647e3ddd 100644
--- a/application/logs/log-2017-08-16.php
+++ b/application/logs/log-2017-08-16.php
@@ -1,3 +1,130 @@
ERROR - 2017-08-16 06:56:40 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/16aug/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
+ERROR - 2017-08-16 07:55:52 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:52 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:52 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:52 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 07:55:53 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:00:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:10 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
+ERROR - 2017-08-16 08:03:11 --> Severity: Notice --> Undefined property: stdClass::$CostCenterName C:\xampp\htdocs\siddharth_application\application\views\dashboard.php 706
diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php
index 517f16cd..4f39ad39 100755
--- a/application/models/dahsboard_model.php
+++ b/application/models/dahsboard_model.php
@@ -247,7 +247,7 @@ function reqdetail(){
function req_list(){
- $sql="select mas.ReqDate,mas.ReqNo,emp.FirstName as Requestedby,dep.DepartmentName,mas.ReqType,DATEDIFF(CURDATE(),mas.ReqDate) AS Aging,cos.* from T_Requestion_Master as mas
+ $sql="select mas.ReqDate,mas.ReqNo,emp.FirstName as Requestedby,dep.DepartmentName,mas.ReqType,DATEDIFF(CURDATE(),mas.ReqDate) AS Aging from T_Requestion_Master as mas
join T_CostCenter_Master cos on cos.CostCenterCode = mas.CostCenterCode
join T_Employee_Details emp on emp.EmpID = mas.Requestedby
join T_DepartmentDetails dep on dep.DEPCode=emp.Departmentcode
@@ -260,21 +260,7 @@ where mas.Status = 'ST002'
}
- function export_reqlist(){
-
-
- $sql="select mas.ReqDate,mas.ReqNo,emp.FirstName as Requestedby,dep.DepartmentName,mas.ReqType,DATEDIFF(CURDATE(),mas.ReqDate) AS Aging from T_Requestion_Master as mas
-join T_CostCenter_Master cos on cos.CostCenterCode = mas.CostCenterCode
-join T_Employee_Details emp on emp.EmpID = mas.Requestedby
-join T_DepartmentDetails dep on dep.DEPCode=emp.Departmentcode
-where mas.Status = 'ST002'
-";
- $query = $this->db->query($sql);
- return $query->result();
-
-
-
- }
+
function report_relpo(){
@@ -295,26 +281,7 @@ group by Dept_Name";
}
- function export_relpo(){
-
-
- $sql="select Mast.PONO,Mast.POType,Mast.CreatedDate,Mast.ReleasedOn as ReleasedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
-JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
-JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
-JOIN T_CostCenter_Master as Cost on
-Cost.CostCenterCode=Req.CostCenterCode
-JOIN T_CostCenter_Budget as Cost_Center_Bdgt on Cost.CostCenterCode=Cost_Center_Bdgt.CostCenterCode
-where Mast.Status='ST026'
-group by Dept_Name";
- $query = $this->db->query($sql);
- return $query->result();
-
-
-
- }
+
function report_openpending(){
@@ -335,19 +302,24 @@ group by Dept_Name";
}
- function export_openorder(){
+
+ function report_total(){
- $sql="select Mast.PONO,Mast.POType,Mast.CreatedDate,Mast.ApprovedOn as ApprovedDate,Dept_Details.DepartmentName As Dept_Name,Mast.TotalOrderValue
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
+ $sql="select Dept_Details.DepartmentName As Dept_Name,
+ SUM(CASE WHEN Mast.Status = 'ST015' THEN 1 ELSE 0 END) AS PO_Created,
+ SUM(CASE WHEN Mast.Status = 'ST025' THEN 1 ELSE 0 END) AS Approved,
+ SUM(CASE WHEN Mast.Status = 'ST051' THEN 1 ELSE 0 END) AS Approver_Onhold,
+ SUM(CASE WHEN Mast.Status = 'ST052' THEN 1 ELSE 0 END) AS Releaser_Onhold,
+ SUM(CASE WHEN Mast.Status = 'ST053' THEN 1 ELSE 0 END) AS Service_completed,
+ SUM(CASE WHEN Mast.Status = 'ST026' THEN 1 ELSE 0 END) AS Released,
+ SUM(CASE WHEN Mast.Status = 'ST027' THEN 1 ELSE 0 END) AS IGR_Created,
+ SUM(CASE WHEN Mast.Status = 'ST044' THEN 1 ELSE 0 END) AS MRIR_Approved,
+ SUM(CASE WHEN Mast.Status = 'ST045' THEN 1 ELSE 0 END) AS MRIR_Rejected
+from T_PO_Detail Mast
+JOIN T_Requestion_Master as Req on Req.ReqNo=Mast.ReqNo
JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
-JOIN T_CostCenter_Master as Cost on
-Cost.CostCenterCode=Req.CostCenterCode
-JOIN T_CostCenter_Budget as Cost_Center_Bdgt on Cost.CostCenterCode=Cost_Center_Bdgt.CostCenterCode
-where Mast.Status='ST025' or Mast.Status='ST005'
group by Dept_Name";
$query = $this->db->query($sql);
return $query->result();
@@ -355,50 +327,7 @@ group by Dept_Name";
}
- function report_total(){
-
-
- $sql="select Mast.PODate as podate,Dept_Details.DepartmentName As Dept_Name,
- SUM(CASE WHEN Mast.Status = 'ST015' THEN 1 ELSE 0 END) AS PO_Created,
- SUM(CASE WHEN Mast.Status = 'ST025' THEN 1 ELSE 0 END) AS Approved,
- SUM(CASE WHEN Mast.Status = 'ST020' THEN 1 ELSE 0 END) AS Onhold,
- SUM(CASE WHEN Mast.Status = 'ST026' THEN 1 ELSE 0 END) AS Released,
- SUM(CASE WHEN Mast.Status = 'ST027' THEN 1 ELSE 0 END) AS IGR_Created,
- SUM(CASE WHEN Mast.Status = 'ST044' THEN 1 ELSE 0 END) AS MRIR_Approved
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
-JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
-JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
-group by Dept_Name,Mast.PODate";
- $query = $this->db->query($sql);
- return $query->result();
-
-
-
- }
- function export_total(){
-
-
- $sql="select Dept_Details.DepartmentName As Dept_Name,
- SUM(CASE WHEN Mast.Status = 'ST015' THEN 1 ELSE 0 END) AS PO_Created,
- SUM(CASE WHEN Mast.Status = 'ST025' THEN 1 ELSE 0 END) AS Approved,
- SUM(CASE WHEN Mast.Status = 'ST020' THEN 1 ELSE 0 END) AS Onhold,
- SUM(CASE WHEN Mast.Status = 'ST026' THEN 1 ELSE 0 END) AS Released,
- SUM(CASE WHEN Mast.Status = 'ST027' THEN 1 ELSE 0 END) AS IGR_Created,
- SUM(CASE WHEN Mast.Status = 'ST044' THEN 1 ELSE 0 END) AS MRIR_Approved
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
-JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
-JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
-group by Dept_Name;";
- $query = $this->db->query($sql);
- return $query->result();
-
-
-
- }
+
function report_ccr(){
@@ -452,53 +381,44 @@ order by Cost_Mast.CostCenterCode";
}
- function export_ccr(){
+
+
+ function report_MMSupplier(){
- $sql="SELECT Cost_Mast.CostCenterCode as Cost_Center_Code, CostCenterName as Cost_Center_Name,Dept_Details.DepartmentName as Dept_Name,Cost_Center_Budget.BudgetType,Cost_Center_Budget.BudgetYear,
-case Cost_Center_Budget.BudgetType
-when 'IMPORT'
-then (sum((PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate))
-when 'CAPITAL'
-then
- case po.CapitalRange
- when '0'
- then (sum((PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate))
- else (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate))
- end
-when 'SERVICE'
-then (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate))
-when 'REVENUE'
-then (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate) - (T_Rev_Tax.AfterDiscount))
-end
-as Util_Amount,
-case Cost_Center_Budget.BudgetType
-when 'IMPORT'
-then (Cost_Center_Budget.BudgetAmount - (sum((PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate)))
-when 'CAPITAL'
-then
- case po.CapitalRange
- when '0'
- then (Cost_Center_Budget.BudgetAmount - (sum((PO_Line_Item.Quantity * PO_Line_Item.Rate) * po.ExchangeRate)))
- else (Cost_Center_Budget.BudgetAmount - (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate)))
- end
-when 'SERVICE'
-then (Cost_Center_Budget.BudgetAmount - (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate)))
-when 'REVENUE'
-then (Cost_Center_Budget.BudgetAmount - (sum(PO_Line_Item.Quantity * PO_Line_Item.Rate) - (T_Rev_Tax.AfterDiscount)))
-end
-as Avlbl_Amt
-from T_CostCenter_Master Cost_Mast
-JOIN T_CostCenter_Departments CostCentDept on CostCentDept.CostCenterCode=Cost_Mast.CostCenterCode
-JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode= CostCentDept.DEPCode
-JOIN T_PurchaseOrder_LineItem PO_Line_Item on PO_Line_Item.CostCenterCode=Cost_Mast.CostCenterCode
-JOIN T_PurchaseOrder_Master po on po.PONO=PO_Line_Item.PONO
-JOIN T_Revenue_Tax T_Rev_Tax on PO_Line_Item.LineItemNo=T_Rev_Tax.LineItemNo
-JOIN T_CostCenter_Budget Cost_Center_Budget on Cost_Center_Budget.CostCenterCode=Cost_Mast.CostCenterCode
-WHERE DATE(po.CreatedDate) BETWEEN '2017-04-01' AND '2018-03-31'
-group by
-Cost_Mast.CostCenterCode,Cost_Center_Budget.BudgetType
-order by Cost_Mast.CostCenterCode";
+ $sql="select po.CreatedDate as Material_Date,po.SupplierID,sup.SupplierName,pl.MaterialCode,mm.MaterialName,mm.MaterialType,mm.UOM,mm.HSNCODE
+from T_PurchaseOrder_Master po
+join T_PurchaseOrder_LineItem pl on pl.PONO=po.PONO
+join T_MaterialMaster mm on mm.MaterialCode=pl.MaterialCode
+join T_SupplierDetailsN sup on sup.SupplierID=po.SupplierID
+group by po.SupplierID,pl.MaterialCode";
+ $query = $this->db->query($sql);
+ return $query->result();
+
+
+
+ }
+
+ function report_MMItem(){
+
+
+ $sql="SELECT MaterialCode,MaterialName,UOM,Category FROM T_MaterialMaster group by MaterialCode";
+ $query = $this->db->query($sql);
+ return $query->result();
+
+
+
+ }
+
+ function report_MMReceiptValue(){
+
+
+ $sql="select
+DATE_FORMAT(IF(matv.CreatedDate = '0000-00-00', NOW(), matv.CreatedDate), '%b-%Y') AS Month,
+matv.MaterialCode,mat.MaterialName,mat.UOM,AVG(matv.Rate) as Average_Rate
+from T_MaterialItem_PO matv
+join T_MaterialMaster mat on matv.MaterialCode=mat.MaterialCode
+group by monthname(matv.CreatedDate),matv.MaterialCode";
$query = $this->db->query($sql);
return $query->result();
@@ -507,76 +427,8 @@ order by Cost_Mast.CostCenterCode";
}
- function podetails(){
-
-
-
- $sql="select Mast.PONO AS PONO,
-Req.ReqNo AS Req_No,Req.ReqDate as Req_Date,
-concat(concat(upper(substring(Emp_Det.FirstName,1,1)),lower(substring(Emp_Det.FirstName,2))),
-' ',concat(upper(substring(Emp_Det.LastName,1,1)),lower(substring(Emp_Det.LastName,2)))) as Emp_Name,Dep_Det.DepartmentName AS Dept_Name,
-Mast.TotalOrderValue as Tot_Ord_Value,
-ReqDet.Quantity as Requested_Qty,
-Det.Quantity as Ordered_Qty,
-(case when sign((Det.Quantity - ReqDet.Quantity))=0 then 0
- when sign((Det.Quantity - ReqDet.Quantity))=-1 then 0
- when sign((Det.Quantity - ReqDet.Quantity))=1 then Det.Quantity - ReqDet.Quantity
-end) as Amended_Qty,
-Req.CostCenterCode as Cost_Code,
-Cost.CostCenterName as Cost_Name,
-
-Stats.StatusName Status_Desc,
-DATEDIFF(CURDATE(),Req.ReqDate) AS Aging
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
-JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
-JOIN T_DepartmentDetails as Dep_Det on Dep_Det.DEPCode=Emp_Det.Departmentcode
-JOIN T_CostCenter_Master as Cost on
-Cost.CostCenterCode=Req.CostCenterCode
-JOIN T_Status Stats on Stats.StatusCode=Mast.Status
-JOIN T_Requestion_Details ReqDet on ReqDet.ReqNo=Req.ReqNo
-and ReqDet.MaterialCode=Det.MaterialCode;";
-
- $query = $this->db->query($sql);
-
- return $query->result();
- }
- //q2 details
- function dept_po_details(){
-
-
-
- $sql="select Dept_Details.DepartmentName As Dept_Name,
-Cost_Center_Bdgt.BudgetType as PO_Type,
-group_concat(Mast.PONO) as PONO,
-count(Mast.PONO) as PONO_Cnt,
-sum(Mast.TotalOrderValue) as Tot_Ord_Value,
-group_concat(Req.CostCenterCode) as Cost_Code,
-Cost.CostCenterName as Cost_Name,
-(case when sign(sum(Cost_Center_Bdgt.BudgetAmount) -
- sum(Mast.TotalOrderValue)) = -1 then 0
- when sign(sum(Cost_Center_Bdgt.BudgetAmount) -
- sum(Mast.TotalOrderValue)) = 1 then
- (sum(Cost_Center_Bdgt.BudgetAmount) -
- sum(Mast.TotalOrderValue)) end)
-as Available_Amount
-from T_PurchaseOrder_Master Mast
-JOIN T_PurchaseOrder_LineItem Det on Det.PONO=Mast.PONO
-JOIN T_Requestion_Master as Req on Req.ReqNo=Det.ReqNo
-JOIN T_Employee_Details as Emp_Det on Emp_Det.EmpID=Req.RequestedBy
-JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode=Emp_Det.Departmentcode
-JOIN T_CostCenter_Master as Cost on
-Cost.CostCenterCode=Req.CostCenterCode
-JOIN T_CostCenter_Budget Cost_Center_Bdgt on Cost.CostCenterCode=Cost_Center_Bdgt.CostCenterCode
-where Mast.status !=?
-group by Dept_Name,PO_Type,Cost_Name;";
-
- $query = $this->db->query($sql,array(PO_AMENDED));
-
- return $query->result();
- }
+
}
?>
\ No newline at end of file
diff --git a/application/views/Report_Material_Master_ItemWise.php b/application/views/Report_Material_Master_ItemWise.php
new file mode 100644
index 00000000..4a111968
--- /dev/null
+++ b/application/views/Report_Material_Master_ItemWise.php
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Material Code |
+ Material Name |
+ UOM |
+ Category |
+
+
+
+
+
+
+
+
+ | MaterialCode?> |
+ MaterialName?> |
+ UOM?> |
+ Category?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/Report_Material_Master_ReceiptValue.php b/application/views/Report_Material_Master_ReceiptValue.php
new file mode 100644
index 00000000..ef3ee191
--- /dev/null
+++ b/application/views/Report_Material_Master_ReceiptValue.php
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Month |
+ Material Code |
+ Material Name |
+ UOM |
+ Average Rate |
+
+
+
+
+
+
+
+
+
+ | Month?> |
+ MaterialCode?> |
+ MaterialName?> |
+ UOM?> |
+ Average_Rate?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/Report_Material_Master_SupplierWise.php b/application/views/Report_Material_Master_SupplierWise.php
new file mode 100644
index 00000000..e8d8ce9c
--- /dev/null
+++ b/application/views/Report_Material_Master_SupplierWise.php
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Material Date |
+ Supplier ID |
+ Supplier Name |
+ Material Code |
+ Material Name |
+ Material Type |
+ UOM |
+ HSNCODE |
+
+
+
+
+
+
+ | Material_Date);echo $date->format('Y-m-d');?> |
+ SupplierID?> |
+ SupplierName?> |
+ MaterialCode?> |
+ MaterialName?> |
+ MaterialType?> |
+ UOM?> |
+ HSNCODE?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/Report_POreleased.php b/application/views/Report_POreleased.php
index db3690f1..e90ca1e3 100755
--- a/application/views/Report_POreleased.php
+++ b/application/views/Report_POreleased.php
@@ -6,8 +6,28 @@ if(!empty($rel_po))
}
?>
+
+
+
@@ -37,11 +57,7 @@ if(!empty($rel_po))
-
+
@@ -64,8 +80,8 @@ if(!empty($rel_po))
| PONO?> |
POType?> |
- CreatedDate);echo $date->format('Y-m-d'); ?> |
- ReleasedDate);echo $date->format('Y-m-d'); ?> |
+ CreatedDate);echo $date->format('Y-m-d'); ?> |
+ ReleasedDate);echo $date->format('Y-m-d'); ?> |
Dept_Name?> |
TotalOrderValue?> |
@@ -86,19 +102,33 @@ if(!empty($rel_po))
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/Report_openorder.php b/application/views/Report_openorder.php
index 9007918a..77a537b3 100755
--- a/application/views/Report_openorder.php
+++ b/application/views/Report_openorder.php
@@ -6,8 +6,28 @@ if(!empty($open_po))
}
?>
+
+
+
@@ -37,11 +57,7 @@ if(!empty($open_po))
-
+
@@ -64,8 +80,8 @@ if(!empty($open_po))
| PONO?> |
POType?> |
- CreatedDate);echo $date->format('Y-m-d'); ?> |
- ApprovedDate);echo $date->format('Y-m-d'); ?> |
+ CreatedDate);echo $date->format('Y-m-d'); ?> |
+ ApprovedDate);echo $date->format('Y-m-d'); ?> |
Dept_Name?> |
TotalOrderValue?> |
@@ -86,19 +102,33 @@ if(!empty($open_po))
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Request Date |
- Requested By |
- Department |
- Request Number |
- Request Type |
- Cost Centre Name |
- Aging |
-
-
-
-
-
- | ReqDate);echo $date->format('Y-m-d'); ?> |
- Requestedby?> |
- DepartmentName?> |
- ReqNo?> |
- ReqType?> |
- CostCenterName?> |
- Aging?> |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | PONO |
- ReqNo |
- ReqDate |
- EmpName |
- DeptName |
- Total Order Val |
- Requested Qty |
- Ordered Qty |
- Amended Qty |
- Cost Code |
- Cost Name |
- Status |
- Aged Days |
-
-
-
-
- | PONO |
- ReqNo |
- ReqDate |
- EmpName |
- DeptName |
- Total Order Val |
- Requested Qty |
- Ordered Qty |
- Amended Qty |
- Cost Code |
- Cost Name |
- Status |
- Aged Days |
-
-
-
-
-
-
- | PONO?> |
- Req_No?> |
- Req_Date);echo $date->format('Y-m-d');?> |
- Emp_Name?> |
- Dept_Name?> |
- Tot_Ord_Value?> |
- Requested_Qty?> |
- Ordered_Qty?> |
- Amended_Qty?> |
- Cost_Code?> |
- Cost_Name?> |
- Status_Desc?> |
- Aging?> |
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Department Name |
- PO Type |
- PO NO |
- PO Count |
- Total Order Value |
- Cost Centre Code |
- Cost Centre Name |
- Available Amount |
-
-
-
-
-
-
- | Dept_Name?> |
- PO_Type?> |
- PONO?> |
- PONO_Cnt?> |
- Tot_Ord_Value?> |
- Cost_Code?> |
- Cost_Name?> |
- Available_Amount?> |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/application/views/includes/header.php b/application/views/includes/header.php
index 52b5c8c5..d650365a 100755
--- a/application/views/includes/header.php
+++ b/application/views/includes/header.php
@@ -616,19 +616,19 @@ $(function() {
-
+
Material Master - Supplier Wise
-
+
Material Master - Item wise
-
+
Material Master - Receipt value
diff --git a/application/views/report_pendingreqst.php b/application/views/report_pendingreqst.php
index 240ae391..4fa53d7c 100755
--- a/application/views/report_pendingreqst.php
+++ b/application/views/report_pendingreqst.php
@@ -6,8 +6,28 @@ if(!empty($pending_list))
}
?>
+
+
+
@@ -37,11 +57,7 @@ if(!empty($pending_list))
-
+
@@ -61,8 +77,8 @@ if(!empty($pending_list))
{
?>
- | ReqDate);echo $date->format('Y-m-d'); ?> |
- ReqNo?> |
+ ReqDate);echo $date->format('Y-m-d'); ?> |
+ ReqNo?> |
Requestedby?> |
DepartmentName?> |
ReqType?> |
@@ -84,19 +100,33 @@ if(!empty($pending_list))
-
+
+
+
+
+