From ee5fd8cd8cd04fadd4873de309d501aa44ebe5a0 Mon Sep 17 00:00:00 2001 From: sriramv Date: Wed, 5 Dec 2018 16:42:22 +0530 Subject: [PATCH] issues fiexd --- application/config/database.php | 7 + application/controllers/report.php | 61 ++++---- application/logs/log-2018-12-05.php | 145 ++++++++++++++++++ application/models/dahsboard_model.php | 19 ++- .../views/Report_supplierlink_summary.php | 41 +++-- 5 files changed, 227 insertions(+), 46 deletions(-) create mode 100644 application/logs/log-2018-12-05.php diff --git a/application/config/database.php b/application/config/database.php index 4d0866a2..5cfc2f08 100755 --- a/application/config/database.php +++ b/application/config/database.php @@ -52,6 +52,10 @@ $db['default']['hostname'] = 'resicoindustries.com'; $db['default']['username'] = 'resicoin_RIADev'; $db['default']['password'] = 'resico1234'; $db['default']['database'] = 'resicoin_RIADev'; + +//$db['default']['username'] = 'resicoin_PROD'; +//$db['default']['password'] = 'ria!1234'; +//$db['default']['database'] = 'resicoin_PROD'; $db['default']['dbdriver'] = 'mysqli'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; @@ -64,6 +68,9 @@ $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; + + + // DB_USERNAME=resicoin_invoice // DB_PASSWORD=resicoin_invoice // DB_DATABASE=resicoin_invoices diff --git a/application/controllers/report.php b/application/controllers/report.php index c23b2ad1..d586dc2d 100755 --- a/application/controllers/report.php +++ b/application/controllers/report.php @@ -668,41 +668,45 @@ class report extends BaseController public function ilink_purchasesummary() { - if ($this->input->post('btn_submit')) { + 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(); + $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); - $m=$this->input->post('month'); - $frm = $this->input->post('from_date'); - $t = $this->input->post('to_date'); - $sid=$this->input->get('sid'); - $mid = $this->input->get('mid'); - $d = $this->input->get('d'); + $sname =$this->input->post('sname'); + // //echo $sname; + + + $ab=$this->input->post('financialyear'); + $fa=substr($ab,0,-5); + $aa=substr($ab,5,5); + $m=$this->input->post('month'); + $frm = $this->input->post('from_date'); + $t = $this->input->post('to_date'); + $sid=$this->input->get('sid'); + $mid = $this->input->get('mid'); + $d = $this->input->get('d'); - $data['material']=$this->dahsboard_Model->material_name(); + $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); + $data['cust']=$this->dahsboard_Model->customer_name(); + $data['finyear']=$this->dahsboard_Model->ireport_finyear(); + $data['purchase']=$this->dahsboard_Model->ireport_purchasesupplierSummary($cname,$sname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d); - } else{ + } else{ $this->global['pageTitle'] = $this->CompanyName.' : Reports'; //$this->input->post('btn_submit'); $cat = $this->input->get('cat'); @@ -719,11 +723,14 @@ class report extends BaseController $d = $this->input->get('d'); $da = $this->input->get('da'); $po = $this->input->get('po'); + $sname = $this->input->get('sname'); + //echo $sname; + $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); + $data['purchase']=$this->dahsboard_Model->ireport_purchase_suppliersummarylink($cname,$sname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po); } $this->loadviews("Report_supplierlink_summary",$this->global,$data, NULL); diff --git a/application/logs/log-2018-12-05.php b/application/logs/log-2018-12-05.php new file mode 100644 index 00000000..182e2a08 --- /dev/null +++ b/application/logs/log-2018-12-05.php @@ -0,0 +1,145 @@ + + +ERROR - 2018-12-05 06:57:28 --> Severity: Warning --> mysqli_connect(): (HY000/1044): Access denied for user 'resicoin_RIADev'@'%' to database 'resicoin_PROD' C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 06:57:28 --> Unable to connect to the database +ERROR - 2018-12-05 06:57:40 --> Severity: Warning --> mysqli_connect(): (HY000/1044): Access denied for user 'resicoin_RIADev'@'%' to database 'resicoin_PROD' C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 06:57:40 --> Unable to connect to the database +ERROR - 2018-12-05 06:57:51 --> Severity: Warning --> mysqli_connect(): (HY000/1044): Access denied for user 'resicoin_RIADev'@'%' to database 'resicoin_PROD' C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 06:57:51 --> Unable to connect to the database +ERROR - 2018-12-05 06:58:41 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 06:58:41 --> Unable to connect to the database +ERROR - 2018-12-05 06:58:46 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 06:58:46 --> Unable to connect to the database +ERROR - 2018-12-05 07:03:16 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:03:16 --> Unable to connect to the database +ERROR - 2018-12-05 07:03:30 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:03:30 --> Unable to connect to the database +ERROR - 2018-12-05 07:03:34 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:03:34 --> Unable to connect to the database +ERROR - 2018-12-05 07:03:51 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:03:51 --> Unable to connect to the database +ERROR - 2018-12-05 07:04:11 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:04:11 --> Unable to connect to the database +ERROR - 2018-12-05 07:04:27 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:04:27 --> Unable to connect to the database +ERROR - 2018-12-05 07:05:25 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:05:25 --> Unable to connect to the database +ERROR - 2018-12-05 07:05:44 --> Severity: Warning --> mysqli_connect(): (HY000/1045): Access denied for user 'resicoin_PROD'@'103.16.202.153' (using password: YES) C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_driver.php 77 +ERROR - 2018-12-05 07:05:44 --> Unable to connect to the database +ERROR - 2018-12-05 07:19:58 --> Severity: Notice --> Undefined variable: user C:\xampp\htdocs\ria\application\views\dashboard.php 627 +ERROR - 2018-12-05 07:47:19 --> Severity: Notice --> Undefined variable: user C:\xampp\htdocs\ria\application\views\dashboard.php 627 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:06 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:07 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:29 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:00:30 --> Severity: Notice --> Undefined property: stdClass::$client_name C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 112 +ERROR - 2018-12-05 08:13:34 --> Severity: Notice --> Undefined variable: UANumber C:\xampp\htdocs\ria\application\views\editSupplier.php 242 +ERROR - 2018-12-05 08:13:35 --> Severity: Notice --> Undefined variable: Exiseregistration C:\xampp\htdocs\ria\application\views\editSupplier.php 248 +ERROR - 2018-12-05 08:13:35 --> Severity: Notice --> Undefined variable: CSTNO C:\xampp\htdocs\ria\application\views\editSupplier.php 255 +ERROR - 2018-12-05 08:13:35 --> Severity: Notice --> Undefined variable: CSTDate C:\xampp\htdocs\ria\application\views\editSupplier.php 258 +ERROR - 2018-12-05 08:13:35 --> Severity: Notice --> Undefined variable: CollectrateAddress C:\xampp\htdocs\ria\application\views\editSupplier.php 273 +ERROR - 2018-12-05 08:14:06 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\ria\system\database\drivers\mysqli\mysqli_result.php 38 +ERROR - 2018-12-05 08:14:18 --> Severity: Notice --> Undefined property: stdClass::$FirstName C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 122 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined variable: update C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 238 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4059 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined property: stdClass::$FilePath C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4060 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4059 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined property: stdClass::$FilePath C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4060 +ERROR - 2018-12-05 08:14:19 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4231 +ERROR - 2018-12-05 08:49:29 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 106 +ERROR - 2018-12-05 08:49:29 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 106 +ERROR - 2018-12-05 10:05:45 --> Severity: Notice --> Undefined variable: sname C:\xampp\htdocs\ria\application\controllers\report.php 703 +ERROR - 2018-12-05 10:33:51 --> Severity: Notice --> Undefined variable: user C:\xampp\htdocs\ria\application\views\dashboard.php 627 +ERROR - 2018-12-05 10:46:36 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 61 +ERROR - 2018-12-05 10:46:36 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 61 +ERROR - 2018-12-05 10:46:36 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 100 +ERROR - 2018-12-05 10:46:36 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 100 +ERROR - 2018-12-05 10:49:09 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 61 +ERROR - 2018-12-05 10:49:09 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 61 +ERROR - 2018-12-05 11:19:19 --> Severity: Notice --> Undefined variable: data C:\xampp\htdocs\ria\application\controllers\report.php 736 +ERROR - 2018-12-05 11:19:19 --> Severity: Notice --> Undefined variable: pageTitle C:\xampp\htdocs\ria\application\views\includes\header.php 4 +ERROR - 2018-12-05 11:19:19 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 120 +ERROR - 2018-12-05 11:19:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 120 +ERROR - 2018-12-05 11:19:19 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 143 +ERROR - 2018-12-05 11:19:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 143 +ERROR - 2018-12-05 11:19:19 --> Severity: Notice --> Undefined variable: material C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 189 +ERROR - 2018-12-05 11:19:19 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 189 diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php index f881c54c..d34fbd5e 100755 --- a/application/models/dahsboard_model.php +++ b/application/models/dahsboard_model.php @@ -1717,11 +1717,11 @@ $sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo"; } - function ireport_purchasesupplierSummary($cname,$prod,$fa,$aa,$m,$frm,$t,$cat){ + function ireport_purchasesupplierSummary($cname,$sname,$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, + $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,sd.SupplierID as sid,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', (id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity), (id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst, @@ -1773,11 +1773,15 @@ left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo left join T_PurchaseOrder_BillUpload pb on pb.IGRNO=im.IGRNO left join T_Inwardgateregister_fileupload infiles on infiles.IGRNO = im.IGRNO where pm.Status != 'ST030' "; - + //echo "sname".$sname ."----".$cname;die; if ($cname!= ''){ $sql.="and sd.SupplierName = '".$cname."'"; + }else{ + + $sql.="and sd.SupplierName = '".$sname."'"; + } @@ -1825,10 +1829,10 @@ $sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo"; return $query->result(); } - function ireport_purchase_suppliersummarylink($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po){ + function ireport_purchase_suppliersummarylink($cname,$sname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po){ - $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, + $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,sd.SupplierID as sid,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', (id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity), (id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst, @@ -1887,7 +1891,12 @@ if ($cname!= ''){ } + if ($sname!= ''){ + + $sql.="and sd.SupplierName = '".$sname."'"; + } + if ($fa and $aa != ''){ diff --git a/application/views/Report_supplierlink_summary.php b/application/views/Report_supplierlink_summary.php index 6b34bf93..d7ab6702 100644 --- a/application/views/Report_supplierlink_summary.php +++ b/application/views/Report_supplierlink_summary.php @@ -58,18 +58,19 @@ table.dataTable thead > tr > td.sorting {
-

Supplier Details

+

Supplier Details

+ +

supplier_name;?>

+ input->post('client_name')){ - $cl=$this->input->post('client_name'); - echo $cl; - echo ' '.' '; - } + } + + if(!empty($purchase)){ if($this->input->post('item_name')){ $it=$this->input->post('item_name'); echo implode(" - ",$it); - } + }} if($this->input->post('financialyear')){ $ab=$this->input->post('financialyear'); @@ -93,17 +94,29 @@ table.dataTable thead > tr > td.sorting {

- +
+
- + +
- + + + + + +