report menus has been modified
This commit is contained in:
parent
c4fcc1eef7
commit
732f87323a
@ -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 */
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -1,3 +1,130 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
|
||||
|
||||
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
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
133
application/views/Report_Material_Master_ItemWise.php
Normal file
133
application/views/Report_Material_Master_ItemWise.php
Normal file
@ -0,0 +1,133 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mmi))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Material Master - Item Wise</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</th>
|
||||
<th>UOM</th>
|
||||
<th>Category</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($mmi)){
|
||||
foreach($mmi as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span><?php echo $rel->MaterialCode?></span></td>
|
||||
<td><span><?php echo $rel->MaterialName?></span></td>
|
||||
<td><span><?php echo $rel->UOM?></span></td>
|
||||
<td><span><?php echo $rel->Category?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-ItemWise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
133
application/views/Report_Material_Master_ReceiptValue.php
Normal file
133
application/views/Report_Material_Master_ReceiptValue.php
Normal file
@ -0,0 +1,133 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mmr))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Material Master - Receipt Value</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12.5px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Month</th>
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</th>
|
||||
<th>UOM</th>
|
||||
<th>Average Rate</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($mmr)){
|
||||
foreach($mmr as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span><?php echo $rel->Month?></span></td>
|
||||
<td><span><?php echo $rel->MaterialCode?></span></td>
|
||||
<td><span><?php echo $rel->MaterialName?></span></td>
|
||||
<td><span><?php echo $rel->UOM?></span></td>
|
||||
<td><span><?php echo $rel->Average_Rate?></span></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-Receipt Value Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
137
application/views/Report_Material_Master_SupplierWise.php
Normal file
137
application/views/Report_Material_Master_SupplierWise.php
Normal file
@ -0,0 +1,137 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Material Master - Supplier Wise</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" style="font-size:12.5px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Material Date</th>
|
||||
<th>Supplier ID </th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</th>
|
||||
<th>Material Type</th>
|
||||
<th>UOM</th>
|
||||
<th>HSNCODE</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($mms)){
|
||||
foreach($mms as $rel)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><span><?php $date = new DateTime($rel->Material_Date);echo $date->format('Y-m-d');?></span></td>
|
||||
<td><span><?php echo $rel->SupplierID?></span></td>
|
||||
<td><span><?php echo $rel->SupplierName?></span></td>
|
||||
<td><span><?php echo $rel->MaterialCode?></span></td>
|
||||
<td><span><?php echo $rel->MaterialName?></span></td>
|
||||
<td><span><?php echo $rel->MaterialType?></span></td>
|
||||
<td><span><?php echo $rel->UOM?></span></td>
|
||||
<td><span><?php echo $rel->HSNCODE?></span></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export MM-SupplierWise Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -6,8 +6,28 @@ if(!empty($rel_po))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
<div class="row">
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row"style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -37,11 +57,7 @@ if(!empty($rel_po))
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_relPO">Export ReleasedPO-Order value <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
@ -64,8 +80,8 @@ if(!empty($rel_po))
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td align="right"><span><?php $date = new DateTime($rel->CreatedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td align="right"><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->CreatedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ReleasedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php echo $rel->TotalOrderValue?></span></td>
|
||||
|
||||
@ -86,19 +102,33 @@ if(!empty($rel_po))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/knob/jquery.knob.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#req').DataTable
|
||||
({
|
||||
paging: true,
|
||||
info: true
|
||||
|
||||
});
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export ReleasedPO-Order value',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
$( function() {
|
||||
|
||||
@ -1,44 +1,64 @@
|
||||
|
||||
|
||||
<?php
|
||||
//print_r($budget);die();
|
||||
if(!empty($ccrpt))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
<div class="row">
|
||||
}
|
||||
.buttons-text {
|
||||
background-color: blue;
|
||||
color: white;
|
||||
}
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 3%;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cost Center</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="col-md-3">
|
||||
<div class="input-group input-daterange input">
|
||||
<div class="col-md-3" style="margin-left: -30px;">
|
||||
<div class="input-group input-daterange input">
|
||||
<div class="input-group-addon"><b>Budget Year:</b></div>
|
||||
<select id="mySelect" >
|
||||
<option value=""></option>
|
||||
<option value="" ></option>
|
||||
<option value="2017 - 2018">2017 - 2018</option>
|
||||
<option value="2018 - 2019">2018 - 2019</option>
|
||||
<option value="2019 - 2020">2019 - 2020</option>
|
||||
<option value="2016">2016</option>
|
||||
</select>
|
||||
|
||||
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
||||
</select>
|
||||
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_ccr">Export Cost Center Report <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="cc" >
|
||||
<thead>
|
||||
@ -64,11 +84,8 @@ if(!empty($ccrpt))
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td><span><?php echo $rel->BudgetType?></span></td>
|
||||
<td><span><?php echo $rel->BudgetYear?></span></td>
|
||||
<td><span><?php echo $rel->Util_Amount?></span></td>
|
||||
<td><span><?php echo $rel->Avlbl_Amt?></span></td>
|
||||
|
||||
|
||||
|
||||
<td align="right"><span><?php echo $rel->Util_Amount?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Avlbl_Amt?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -85,11 +102,56 @@ if(!empty($ccrpt))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Cost Center Report',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<!--<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#cc').DataTable
|
||||
@ -111,7 +173,19 @@ table = $('#cc').DataTable
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
----------
|
||||
$(document).ready(function() {
|
||||
$('#cc').DataTable( {
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
</script>-->
|
||||
|
||||
|
||||
|
||||
|
||||
@ -6,8 +6,28 @@ if(!empty($open_po))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
<div class="row">
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -37,11 +57,7 @@ if(!empty($open_po))
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_openorder">Export ReleasedPO-Order value <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
@ -64,8 +80,8 @@ if(!empty($open_po))
|
||||
<tr>
|
||||
<td><span><?php echo $rel->PONO?></span></td>
|
||||
<td><span><?php echo $rel->POType?></span></td>
|
||||
<td align="right"><span><?php $date = new DateTime($rel->CreatedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td align="right"><span><?php $date = new DateTime($rel->ApprovedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->CreatedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php $date = new DateTime($rel->ApprovedDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php echo $rel->TotalOrderValue?></span></td>
|
||||
|
||||
@ -86,19 +102,33 @@ if(!empty($open_po))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/knob/jquery.knob.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#req').DataTable
|
||||
({
|
||||
paging: true,
|
||||
info: true
|
||||
|
||||
});
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Open Orders-Pending',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
$( function() {
|
||||
|
||||
@ -6,9 +6,29 @@ if(!empty($Total))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
<div class="row">
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -17,41 +37,26 @@ if(!empty($Total))
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Total Orders</b></p></h3></center>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group input-daterange input">
|
||||
<div class="input-group-addon"><b>Date From:</b></div>
|
||||
<input type="text" id="min-date" class="form-control filter1" data-date-format="yyyy-mm-dd" placeholder="From:">
|
||||
<div class="input-group-addon"><b>to</b></div>
|
||||
<input type="text" id="max-date" class="form-control filter1" data-date-format="yyyy-mm-dd" placeholder="To:">
|
||||
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_total">Export Total Orders <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>podate</th>
|
||||
|
||||
<th>Department</th>
|
||||
|
||||
<th>PO Created</th>
|
||||
<th>PO Created</th>
|
||||
<th>Approved</th>
|
||||
<th>OnHold</th>
|
||||
<th>Releaser Onhold</th>
|
||||
<th>Approver Onhold</th>
|
||||
<th>Service completed</th>
|
||||
<th>Released</th>
|
||||
<th>IGR Created</th>
|
||||
<th>MRIR Approved</th>
|
||||
<th>MRIR Rejected</th>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -62,15 +67,17 @@ if(!empty($Total))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td align="right"><span><?php $date = new DateTime($rel->podate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
|
||||
<td><span><?php echo $rel->Dept_Name?></span></td>
|
||||
|
||||
<td align="right"><span><?php echo $rel->PO_Created?></span></td>
|
||||
<td align="right"><span><?php echo $rel->PO_Created?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Approved?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Releaser_Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Approver_Onhold?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Service_completed?></span></td>
|
||||
<td align="right"><span><?php echo $rel->Released?></span></td>
|
||||
<td align="right"><span><?php echo $rel->IGR_Created?></span></td>
|
||||
<td align="right"><span><?php echo $rel->MRIR_Approved?></span></td>
|
||||
<td align="right"><span><?php echo $rel->MRIR_Rejected?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
@ -90,85 +97,33 @@ if(!empty($Total))
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#req').DataTable
|
||||
({
|
||||
paging: true,
|
||||
info: true
|
||||
|
||||
});
|
||||
$( function() {
|
||||
var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
numberOfMonths: 1
|
||||
})
|
||||
.on( "change", function() {
|
||||
to.datepicker( "option", "minDate", getDate( this ) );
|
||||
}),
|
||||
to = $( "#max-date" ).datepicker({
|
||||
defaultDate: "+0d",
|
||||
changeMonth: true,
|
||||
numberOfMonths: 1
|
||||
})
|
||||
.on( "change", function() {
|
||||
from.datepicker( "option", "maxDate", getDate( this ) );
|
||||
});
|
||||
|
||||
function getDate( element ) {
|
||||
var date;
|
||||
try {
|
||||
date = $.datepicker.parseDate( dateFormat, element.value );
|
||||
} catch( error ) {
|
||||
date = null;
|
||||
}
|
||||
|
||||
return date;
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export Total Orders',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
//$('.input-daterange').each(function() {
|
||||
// $(this).datepicker('clearDates');
|
||||
//});
|
||||
|
||||
|
||||
// Extend dataTables search
|
||||
$.fn.dataTable.ext.search.push(
|
||||
function(settings, data, dataIndex) {
|
||||
var min = $('#min-date').val();
|
||||
var max = $('#max-date').val();
|
||||
var podate = data[0] || 0; // Our date column in the table
|
||||
|
||||
if (
|
||||
(min == "" || max == "") ||
|
||||
(moment(podate).isSameOrAfter(min) && moment(podate).isSameOrBefore(max))
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
// Re-draw the table when the a date range filter changes
|
||||
$('.filter1').change(function() {
|
||||
table.draw();
|
||||
});
|
||||
|
||||
$('#my-table_filter').hide();
|
||||
function Reset()
|
||||
{
|
||||
|
||||
$('#min-date').val('');
|
||||
$('#max-date').val('');
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
@ -662,218 +662,9 @@ collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:
|
||||
})
|
||||
|
||||
</script>
|
||||
<!-- Main row -->
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><p style="color:#3c8dbc"><b>Total Pending Requests</b></p></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>reqcontroller/export_pending">Export pending details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Request Date</th>
|
||||
<th>Requested By</th>
|
||||
<th>Department</th>
|
||||
<th>Request Number</th>
|
||||
<th>Request Type</th>
|
||||
<th>Cost Centre Name</th>
|
||||
<th>Aging</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($list)){
|
||||
foreach($list as $lis)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td align="right"><span><?php $date = new DateTime($lis->ReqDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td align="right"><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
<td><span><?php echo $lis->CostCenterName?></span></td>
|
||||
<td align="right"><span><?php echo $lis->Aging?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row" style="width:101%">
|
||||
<!-- Left col -->
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><p style="color:#3c8dbc"><b>PO Details</b></p></h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="input-group input-daterange input" >
|
||||
<div class="input-group-addon"><b>Total Order Value From:</b></div>
|
||||
<input type="number" id="min" class="form-control date-range-filter" placeholder="From:">
|
||||
<div class="input-group-addon"><b>to</b></div>
|
||||
<input type="number" id="max" class="form-control date-range-filter" placeholder="To:">
|
||||
<div class="input-group-addon"> <a onclick="Reset()"><b>Clear</b></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="input-group input-daterange input">
|
||||
<div class="input-group-addon"><b>Request Date From:</b></div>
|
||||
<input type="text" id="min-date" class="form-control filter1" data-date-format="yyyy-mm-dd" placeholder="From:">
|
||||
<div class="input-group-addon"><b>to</b></div>
|
||||
<input type="text" id="max-date" class="form-control filter1" data-date-format="yyyy-mm-dd" placeholder="To:">
|
||||
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover" id="qdetails" style="font-size:11px;" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PONO</th>
|
||||
<th>ReqNo</th>
|
||||
<th>ReqDate</th>
|
||||
<th>EmpName</th>
|
||||
<th>DeptName</th>
|
||||
<th>Total Order Val</th>
|
||||
<th>Requested Qty</th>
|
||||
<th>Ordered Qty</th>
|
||||
<th>Amended Qty</th>
|
||||
<th>Cost Code</th>
|
||||
<th>Cost Name</th>
|
||||
<th>Status</th>
|
||||
<th>Aged Days</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>PONO</th>
|
||||
<th>ReqNo</th>
|
||||
<th>ReqDate</th>
|
||||
<th>EmpName</th>
|
||||
<th>DeptName</th>
|
||||
<th>Total Order Val</th>
|
||||
<th>Requested Qty</th>
|
||||
<th>Ordered Qty</th>
|
||||
<th>Amended Qty</th>
|
||||
<th>Cost Code</th>
|
||||
<th>Cost Name</th>
|
||||
<th>Status</th>
|
||||
<th>Aged Days</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php if(!empty($qdetails)){foreach($qdetails as $qd)
|
||||
{
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td align="right"><span><?php echo $qd->PONO?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Req_No?></span></td>
|
||||
<td align="right"><span><?php $date = new DateTime($qd->Req_Date);echo $date->format('Y-m-d');?></span></td>
|
||||
<td><span><?php echo $qd->Emp_Name?></span></td>
|
||||
<td><span><?php echo $qd->Dept_Name?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Tot_Ord_Value?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Requested_Qty?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Ordered_Qty?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Amended_Qty?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Cost_Code?></span></td>
|
||||
<td><span><?php echo $qd->Cost_Name?></span></td>
|
||||
<td><span><?php echo $qd->Status_Desc?></span></td>
|
||||
<td align="right"><span><?php echo $qd->Aging?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><p style="color:#3c8dbc"><b>Department wise PO details</b></p></h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="dept" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Department Name</th>
|
||||
<th>PO Type</th>
|
||||
<th>PO NO</th>
|
||||
<th>PO Count</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>Cost Centre Code</th>
|
||||
<th>Cost Centre Name</th>
|
||||
<th>Available Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($dppo)){ foreach($dppo as $dp)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td><span><?php echo $dp->Dept_Name?></span></td>
|
||||
<td><span><?php echo $dp->PO_Type?></span></td>
|
||||
<td align="right" style="overflow: auto; width: 280px; text-align: left; valign: top; whitespace: nowrap;"><span><?php echo $dp->PONO?></span></td>
|
||||
<td align="right"><span><?php echo $dp->PONO_Cnt?></span></td>
|
||||
<td align="right"><span><?php echo $dp->Tot_Ord_Value?></span></td>
|
||||
<td align="right" style="overflow: auto; width: 280px; text-align: left; valign: top; whitespace: nowrap;"><span><?php echo $dp->Cost_Code?></span></td>
|
||||
<td><span><?php echo $dp->Cost_Name?></span></td>
|
||||
<td align="right"><span><?php echo $dp->Available_Amount?></span></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
@ -616,19 +616,19 @@ $(function() {
|
||||
</li>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>#">
|
||||
<a href="<?php echo base_url(); ?>Report_Material_Supplier">
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
<span>Material Master - Supplier Wise </span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>#">
|
||||
<a href="<?php echo base_url(); ?>Report_Material_Item">
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
<span>Material Master - Item wise </span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview">
|
||||
<a href="<?php echo base_url(); ?>#">
|
||||
<a href="<?php echo base_url(); ?>Report_Material_ReceiptValue">
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
<span>Material Master - Receipt value </span>
|
||||
</a>
|
||||
|
||||
@ -6,8 +6,28 @@ if(!empty($pending_list))
|
||||
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.3.1/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
<div class="row">
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="row"style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12">
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
@ -37,11 +57,7 @@ if(!empty($pending_list))
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_pending">Export pending details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div>
|
||||
<table class="table table-bordered table-hover" id="req" >
|
||||
@ -61,8 +77,8 @@ if(!empty($pending_list))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td align="right"><span><?php $date = new DateTime($lis->ReqDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td align="right"><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php $date = new DateTime($lis->ReqDate);echo $date->format('Y-m-d'); ?></span></td>
|
||||
<td><span><?php echo $lis->ReqNo?></span></td>
|
||||
<td><span><?php echo $lis->Requestedby?></span></td>
|
||||
<td><span><?php echo $lis->DepartmentName?></span></td>
|
||||
<td><span><?php echo $lis->ReqType?></span></td>
|
||||
@ -84,19 +100,33 @@ if(!empty($pending_list))
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/knob/jquery.knob.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
table = $('#req').DataTable
|
||||
({
|
||||
paging: true,
|
||||
info: true
|
||||
|
||||
});
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
text: 'Export pending details',
|
||||
buttons: [
|
||||
'excel'
|
||||
]
|
||||
}
|
||||
]
|
||||
} );
|
||||
} );
|
||||
//dateFormat: 'dd-mm-yy'
|
||||
|
||||
$( function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user