droplist multiple matrial select'
This commit is contained in:
parent
5c64a2db36
commit
d0a920f7d2
@ -667,12 +667,21 @@ class report extends BaseController
|
||||
|
||||
public function ilink_purchasesummary()
|
||||
{
|
||||
|
||||
if ($this->input->post('btn_submit')) {
|
||||
|
||||
$this->global['pageTitle'] = $this->CompanyName.' : Reports';
|
||||
//$this->input->post('btn_submit');
|
||||
$cname = $this->input->post('client_name');
|
||||
//print_r($this->input->post('item_name[0]'));
|
||||
$prod = $this->input->post('item_name');
|
||||
//$prod_temp = implode(",",$prod);
|
||||
//echo $prod_temp;d
|
||||
//foreach
|
||||
// print_r($this->input->post('item_name'));
|
||||
// echo "skds";
|
||||
// die();
|
||||
|
||||
$ab=$this->input->post('financialyear');
|
||||
$fa=substr($ab,0,-5);
|
||||
$aa=substr($ab,5,5);
|
||||
@ -682,8 +691,12 @@ class report extends BaseController
|
||||
$sid=$this->input->get('sid');
|
||||
$mid = $this->input->get('mid');
|
||||
$d = $this->input->get('d');
|
||||
//print_r($prod);
|
||||
|
||||
|
||||
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
|
||||
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->ireport_purchasesupplierSummary($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
||||
@ -707,6 +720,7 @@ class report extends BaseController
|
||||
$da = $this->input->get('da');
|
||||
$po = $this->input->get('po');
|
||||
$data['material']=$this->dahsboard_Model->material_name();
|
||||
// print_r($data['material']);
|
||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase_suppliersummarylink($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po);
|
||||
|
||||
@ -164,3 +164,71 @@ ERROR - 2018-12-04 06:40:22 --> Severity: Notice --> Undefined index: Edu_Quali
|
||||
ERROR - 2018-12-04 06:40:22 --> Severity: Notice --> Undefined index: Edu_Qualification C:\xampp\htdocs\ria\application\views\editEmployee.php 486
|
||||
ERROR - 2018-12-04 06:40:22 --> Severity: Notice --> Undefined index: Edu_Qualification C:\xampp\htdocs\ria\application\views\editEmployee.php 486
|
||||
ERROR - 2018-12-04 06:40:22 --> Severity: Notice --> Undefined variable: uano C:\xampp\htdocs\ria\application\views\editEmployee.php 609
|
||||
ERROR - 2018-12-04 07:33:58 --> Severity: Warning --> mysqli_query(): MySQL server has gone away C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 180
|
||||
ERROR - 2018-12-04 07:33:58 --> Severity: Warning --> mysqli_query(): MySQL server has gone away C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 180
|
||||
ERROR - 2018-12-04 07:33:59 --> Severity: Warning --> mysqli_query(): Error reading result set's header C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 180
|
||||
ERROR - 2018-12-04 07:33:59 --> Query error: MySQL server has gone away
|
||||
ERROR - 2018-12-04 07:33:59 --> Severity: Warning --> mysqli_query(): Error reading result set's header C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 180
|
||||
ERROR - 2018-12-04 07:33:59 --> Query error: MySQL server has gone away
|
||||
ERROR - 2018-12-04 07:35:35 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:38:16 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:40:23 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:41:34 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:42:42 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:43:44 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:47:51 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:48:17 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:49:18 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:49:34 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 07:57:05 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:00:55 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:01:18 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:29:19 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:30:39 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:30:54 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:31:27 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:33:13 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 08:33:54 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:00:21 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:01:38 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:08:35 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:09:53 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:11:05 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:19:39 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:20:11 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 10:21:44 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 12:17:34 --> Severity: Notice --> Use of undefined constant console - assumed 'console' C:\xampp\htdocs\ria\application\controllers\report.php 676
|
||||
ERROR - 2018-12-04 12:17:34 --> Severity: Warning --> log() expects parameter 1 to be float, string given C:\xampp\htdocs\ria\application\controllers\report.php 676
|
||||
ERROR - 2018-12-04 12:29:34 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\controllers\report.php 689
|
||||
ERROR - 2018-12-04 12:30:12 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\controllers\report.php 689
|
||||
ERROR - 2018-12-04 13:14:09 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
|
||||
C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2018-12-04 13:14:09 --> Unable to connect to the database
|
||||
ERROR - 2018-12-04 13:14:43 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
|
||||
C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2018-12-04 13:14:44 --> Unable to connect to the database
|
||||
ERROR - 2018-12-04 13:14:57 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
|
||||
C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2018-12-04 13:14:57 --> Unable to connect to the database
|
||||
ERROR - 2018-12-04 13:17:47 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
|
||||
C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2018-12-04 13:17:47 --> Unable to connect to the database
|
||||
ERROR - 2018-12-04 13:29:30 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1809
|
||||
ERROR - 2018-12-04 13:29:31 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 70
|
||||
ERROR - 2018-12-04 14:24:31 --> Severity: Warning --> call_user_func_array() expects parameter 1 to be a valid callback, class 'report' does not have a method 'index' C:\xampp\htdocs\ria\system\core\CodeIgniter.php 360
|
||||
ERROR - 2018-12-04 14:29:28 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1809
|
||||
ERROR - 2018-12-04 14:29:28 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 70
|
||||
ERROR - 2018-12-04 14:30:35 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1809
|
||||
ERROR - 2018-12-04 14:47:50 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1810
|
||||
ERROR - 2018-12-04 14:47:50 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Array' group by pono,material_name,category,supplier_name,id.IGRItemNo' at line 52
|
||||
ERROR - 2018-12-04 14:52:12 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''30 mesh x 32 G SS304 wire mesh screenfor 60,6212 - Silica Sand AFS 39-43- For S' at line 52
|
||||
ERROR - 2018-12-04 14:53:23 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1810
|
||||
ERROR - 2018-12-04 14:53:23 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Array' group by pono,material_name,category,supplier_name,id.IGRItemNo' at line 52
|
||||
ERROR - 2018-12-04 14:55:06 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mesh x 32 G SS304 wire mesh screenfor 60,6212 - Silica Sand AFS 39-43- For Sievi' at line 52
|
||||
ERROR - 2018-12-04 14:55:31 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mesh x 32 G SS304 wire mesh screenfor 60,6212 - Silica Sand AFS 39-43- For Sievi' at line 52
|
||||
ERROR - 2018-12-04 14:56:00 --> Severity: Warning --> implode(): Invalid arguments passed C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1810
|
||||
ERROR - 2018-12-04 14:56:01 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') group by pono,material_name,category,supplier_name,id.IGRItemNo' at line 52
|
||||
ERROR - 2018-12-04 14:56:17 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mesh x 32 G SS304 wire mesh screenfor 60,6212 - Silica Sand AFS 39-43- For Sievi' at line 52
|
||||
ERROR - 2018-12-04 14:56:35 --> Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''(30 mesh x 32 G SS304 wire mesh screenfor 60,6212 - Silica Sand AFS 39-43- For ' at line 52
|
||||
ERROR - 2018-12-04 15:03:41 --> Severity: Notice --> Array to string conversion C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1810
|
||||
ERROR - 2018-12-04 15:03:42 --> Severity: Warning --> implode(): Invalid arguments passed C:\xampp\htdocs\ria\application\models\dahsboard_model.php 1810
|
||||
|
||||
@ -1718,7 +1718,8 @@ $sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
|
||||
|
||||
|
||||
function ireport_purchasesupplierSummary($cname,$prod,$fa,$aa,$m,$frm,$t,$cat){
|
||||
|
||||
// print_r($prod);
|
||||
//echo "model";die();
|
||||
|
||||
$sql="select im.IGRNO as igrn,pm.POType as potype,im.PONO as pono,date_format(im.CreatedDate,'%d-%m-%Y') as created_date,TIME_FORMAT(im.CreatedDate,'%l:%i %p') as created_time,mm.MaterialName as material_name,mm.Category as category,sd.SupplierName as supplier_name,mm.UOM as UOM, id.QuantityAsPerInvoice as quantity,pl.Rate as rate,round(id.QuantityAsPerInvoice * pl.Rate,2) as value,if(POType = 'IMPORT' or POType = 'CAPITAL',pm.ExchangeRate,0) as exchange_rate,date_format(im.MaterialRcvdDate,'%d-%m-%Y') as materialrcvddate,
|
||||
round(ifnull(if(POType = 'REVENUE',
|
||||
@ -1806,7 +1807,7 @@ if ($cname!= ''){
|
||||
}
|
||||
if ($prod!= ''){
|
||||
|
||||
$sql.=" and mm.MaterialName = '".$prod."' ";
|
||||
$sql.=" and mm.MaterialName in ( '" . implode( "', '", $prod ) . "' )";
|
||||
|
||||
}
|
||||
if ($cat!= ''){
|
||||
@ -1820,6 +1821,7 @@ if ($cname!= ''){
|
||||
$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
|
||||
//echo $sql;
|
||||
$query = $this->db->query($sql);
|
||||
//print_r($this->db->last_query());
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://rawgit.com/nobleclem/jQuery-MultiSelect/master/jquery.multiselect.css" />
|
||||
<!-- <link rel="stylesheet" type="text/css" href="https://rawgit.com/nobleclem/jQuery-MultiSelect/master/jquery.multiselect.css" /> -->
|
||||
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -67,8 +67,8 @@ table.dataTable thead > tr > td.sorting {
|
||||
}
|
||||
if($this->input->post('item_name')){
|
||||
$it=$this->input->post('item_name');
|
||||
echo $it;
|
||||
echo ' '.' ';
|
||||
echo implode(" - ",$it);
|
||||
|
||||
}
|
||||
|
||||
if($this->input->post('financialyear')){
|
||||
@ -117,29 +117,7 @@ table.dataTable thead > tr > td.sorting {
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo'Material'; ?>
|
||||
</label>
|
||||
<!--<div class="input-group"> -->
|
||||
<div class="facilities">
|
||||
<select class="form-control" id="item_name" name="item_name">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($material as $it):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<label for="to_date">
|
||||
<?php echo 'Year'; ?>
|
||||
@ -184,6 +162,30 @@ table.dataTable thead > tr > td.sorting {
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="client_name">
|
||||
<?php echo'Material'; ?>
|
||||
</label>
|
||||
<!--<div class="input-group"> -->
|
||||
<div class="facilities">
|
||||
<select class="form-control" id="item_name" multiple=true name="item_name[]">
|
||||
<option value="">Select Material</option>
|
||||
<?php
|
||||
|
||||
|
||||
foreach($material as $it):
|
||||
|
||||
{?>
|
||||
|
||||
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
|
||||
|
||||
|
||||
<?php } endforeach; ?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label for="from_date">
|
||||
<?php echo 'From Date'; ?>
|
||||
@ -555,6 +557,15 @@ $('.splpofile').click(function() {
|
||||
});
|
||||
|
||||
});// onclick function innormal igrfiles
|
||||
|
||||
|
||||
//onclick function material
|
||||
$('#item_name').change(function(event)
|
||||
{
|
||||
//alert($("#item_name").val());
|
||||
console.log($("#item_name").val());
|
||||
|
||||
});
|
||||
|
||||
/******************** Datatable codes starts here **************************/
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
@ -684,7 +695,7 @@ $('.splpofile').click(function() {
|
||||
// remove all option
|
||||
$('.facilities').find('select option[value=""]').remove();
|
||||
// add multiple select checkbox feature.
|
||||
$('.facilities').find('select').multiselect();
|
||||
//$('.facilities').find('select').multipleselect();
|
||||
})
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user