diff --git a/application/config/routes.php b/application/config/routes.php
index 61b98200..f282a99a 100755
--- a/application/config/routes.php
+++ b/application/config/routes.php
@@ -311,6 +311,7 @@ $route['cashbookyearlyexpenses']="report/yearexpenses";
$route['Report_purchase_inward'] = "report/ipurchase";
$route['Report_year_wise_inward'] = "report/iyear_wise";
$route['Report_supplier_inward'] = "report/ipurchase_supplier";
+$route['Report_supplier_summary'] ="report/suppliersummary";
$route['Report_consolidate_inward'] = "report/iconsolidate";
$route['Report_cumulative_inward'] = "report/icumulative";
$route['Report_cumulative_raw'] = "report/rawi_cumulative";
diff --git a/application/controllers/report.php b/application/controllers/report.php
index 4593536f..75ccee16 100755
--- a/application/controllers/report.php
+++ b/application/controllers/report.php
@@ -665,6 +665,82 @@ 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');
+ $prod = $this->input->post('item_name');
+ $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');
+ //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);
+
+
+ } else{
+ $this->global['pageTitle'] = $this->CompanyName.' : Reports';
+ //$this->input->post('btn_submit');
+ $cat = $this->input->get('cat');
+ $cname = $this->input->get('cname');
+ $prod = $this->input->get('prod');
+ $ab=$this->input->get('ab');
+ $fa=substr($ab,0,-5);
+ $aa=substr($ab,5,5);
+ $m=$this->input->get('m');
+ $frm = $this->input->get('frm');
+ $t = $this->input->get('t');
+ $sid=$this->input->get('sid');
+ $mid = $this->input->get('mid');
+ $d = $this->input->get('d');
+ $da = $this->input->get('da');
+ $po = $this->input->get('po');
+ $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_purchase_suppliersummarylink($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po);
+ }
+
+ $this->loadviews("Report_supplierlink_summary",$this->global,$data, NULL);
+
+ }
+ public function suppliersummary()
+ {
+
+ $this->global['pageTitle'] = $this->CompanyName.' : Reports';
+ if ($this->input->post('btn_submit')) {
+ $cname = $this->input->post('client_name');
+ $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');
+ //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['spurchse']=$this->dahsboard_Model->ireport_suppliersummary($fa,$aa,$m,$frm,$t);
+ }
+ //$data['material']=$this->dahsboard_Model->material_name();
+ $data['cust']=$this->dahsboard_Model->customer_name();
+ $data['finyear']=$this->dahsboard_Model->ireport_finyear();
+
+ $this->loadviews("Report_supplier_summary",$this->global,$data, NULL);
+
+
+ }
public function imonth_wise()
{
diff --git a/application/logs/log-2018-11-28.php b/application/logs/log-2018-11-28.php
new file mode 100644
index 00000000..8f9cca8a
--- /dev/null
+++ b/application/logs/log-2018-11-28.php
@@ -0,0 +1,59 @@
+
+
+ERROR - 2018-11-28 06:08:07 --> 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-11-28 06:08:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
+ERROR - 2018-11-28 06:08:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
+ERROR - 2018-11-28 06:08:21 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
+ERROR - 2018-11-28 06:08:22 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-28 06:08:22 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:27 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:28 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-28 06:08:29 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
diff --git a/application/logs/log-2018-11-29.php b/application/logs/log-2018-11-29.php
new file mode 100644
index 00000000..57eb1034
--- /dev/null
+++ b/application/logs/log-2018-11-29.php
@@ -0,0 +1,172 @@
+
+
+ERROR - 2018-11-29 05:51:55 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:51:55 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:51:55 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 05:51:55 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 05:52:21 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:52:21 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:52:21 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 05:52:21 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 05:59:16 --> Severity: Notice --> Undefined variable: data C:\xampp\htdocs\ria\application\controllers\report.php 683
+ERROR - 2018-11-29 05:59:17 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:59:17 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 05:59:17 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 05:59:17 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:02:31 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:02:31 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:02:31 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:02:31 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:02:50 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:02:50 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:02:51 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:02:51 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:03:25 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:03:25 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:03:25 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:03:25 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:05:54 --> Severity: Notice --> Undefined variable: cust C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:05:54 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 88
+ERROR - 2018-11-29 06:05:54 --> Severity: Notice --> Undefined variable: finyear C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:05:54 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\ria\application\views\suppliersummeryreport.php 110
+ERROR - 2018-11-29 06:39:56 --> 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-11-29 06:40:27 --> Severity: Notice --> Undefined property: stdClass::$FirstName C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 122
+ERROR - 2018-11-29 06:40:27 --> Severity: Notice --> Undefined variable: update C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 238
+ERROR - 2018-11-29 06:40:27 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4059
+ERROR - 2018-11-29 06:40:27 --> Severity: Notice --> Undefined property: stdClass::$FilePath C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4060
+ERROR - 2018-11-29 06:40:27 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4231
+ERROR - 2018-11-29 06:40:33 --> Severity: Notice --> Undefined property: stdClass::$FirstName C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 122
+ERROR - 2018-11-29 06:40:33 --> Severity: Notice --> Undefined variable: update C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 238
+ERROR - 2018-11-29 06:40:33 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4059
+ERROR - 2018-11-29 06:40:33 --> Severity: Notice --> Undefined property: stdClass::$FilePath C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4060
+ERROR - 2018-11-29 06:40:34 --> Severity: Notice --> Undefined property: stdClass::$BillNo C:\xampp\htdocs\ria\application\views\editRevenuepurchaseorder.php 4231
+ERROR - 2018-11-29 10:53:37 --> 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-11-29 10:53:37 --> Unable to connect to the database
+ERROR - 2018-11-29 10:53:41 --> 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-11-29 10:53:41 --> Unable to connect to the database
+ERROR - 2018-11-29 10:53:42 --> 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-11-29 10:53:42 --> Unable to connect to the database
+ERROR - 2018-11-29 10:53:42 --> 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-11-29 10:53:42 --> Unable to connect to the database
+ERROR - 2018-11-29 10:53:42 --> 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-11-29 10:53:42 --> Unable to connect to the database
+ERROR - 2018-11-29 10:53: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-11-29 10:53:43 --> Unable to connect to the database
+ERROR - 2018-11-29 11:37:52 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
+ERROR - 2018-11-29 11:37:53 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
+ERROR - 2018-11-29 11:37:53 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
+ERROR - 2018-11-29 11:37:54 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:37:55 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:37:56 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:01 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:02 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:38:03 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
+ERROR - 2018-11-29 11:39:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; grad has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\grad.php 3
+ERROR - 2018-11-29 11:39:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; mpdfform has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\mpdfform.php 3
+ERROR - 2018-11-29 11:39:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; cssmgr has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\cssmgr.php 3
+ERROR - 2018-11-29 11:39:20 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; otl has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\otl.php 12
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined offset: 0 C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Trying to get property of non-object C:\xampp\htdocs\ria\application\views\includes\pdfheader.php 168
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$DiscountType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 343
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$PackagingType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 344
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:39:20 --> Severity: Notice --> Undefined property: stdClass::$FreightType C:\xampp\htdocs\ria\application\views\revenuepopdf.php 387
+ERROR - 2018-11-29 11:39:23 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:23 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:23 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:23 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:23 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:24 --> Severity: Notice --> Undefined index: dom C:\xampp\htdocs\ria\application\third_party\mpdf\mpdf.php 26073
+ERROR - 2018-11-29 11:39:25 --> Severity: 8192 --> Methods with the same name as their class will not be constructors in a future version of PHP; TTFontFile has a deprecated constructor C:\xampp\htdocs\ria\application\third_party\mpdf\classes\ttfontsuni.php 51
diff --git a/application/logs/log-2018-11-30.php b/application/logs/log-2018-11-30.php
new file mode 100644
index 00000000..4b28ee2e
--- /dev/null
+++ b/application/logs/log-2018-11-30.php
@@ -0,0 +1,35 @@
+
+
+ERROR - 2018-11-30 06:33:56 --> 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 'elect im.IGRNO as igrn,pm.POType as potype,im.PONO as pono,date_format(im.Create' at line 1
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invno C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 315
+ERROR - 2018-11-30 07:20:25 --> Severity: Notice --> Undefined property: stdClass::$invdate C:\xampp\htdocs\ria\application\views\Report_supplierlink_summary.php 316
+ERROR - 2018-11-30 07:23:49 --> 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 '`
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.Exch' at line 3
+ERROR - 2018-11-30 07:26:51 --> 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 '`
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.Exch' at line 3
+ERROR - 2018-11-30 07:41:14 --> 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 '`
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.Exch' at line 3
+ERROR - 2018-11-30 07:41:40 --> 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 '`
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.Exch' at line 3
+ERROR - 2018-11-30 07:45: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 '`
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.Exch' at line 3
+ERROR - 2018-11-30 07:51:21 --> 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 'ELECT sd.SupplierID as sid,sd.SupplierName as supplier_name,count(im.PONO) as co' at line 1
+ERROR - 2018-11-30 08:08: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 'ELECT sd.SupplierID as sid,sd.SupplierName as supplier_name,count(im.PONO) as co' at line 1
+ERROR - 2018-11-30 08:11:04 --> 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 'elect pono,igrn,potype,date_format(created_date,'%d-%m-%Y') as created_date,date' at line 1
diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php
index 8505fb0b..1f2bfdfc 100755
--- a/application/models/dahsboard_model.php
+++ b/application/models/dahsboard_model.php
@@ -1709,14 +1709,264 @@ if ($cname!= ''){
$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
// echo $m;
// echo $sid;
+//echo $sql;
+ $query = $this->db->query($sql);
+ return $query->result();
+
+
+ }
+
+
+ function ireport_purchasesupplierSummary($cname,$prod,$fa,$aa,$m,$frm,$t,$cat){
+
+
+ $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',
+(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2) as cgst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2) as igst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
+(id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2) as discount,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
+(id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2) as freight,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2) as Package,
+
+round((
+if(POType = 'IMPORT',(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
+if(POType = 'CAPITAL' && CapitalRange = 0,(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
+ifnull((id.QuantityAsPerInvoice * pl.Rate),0)))
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2)
+- round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2)),2) as total,im.DeliveryChellanOrInvoiceNo as invno,im.DeliveryChellanDate as invdate,
+ im.file as ifile,pb.FilePath as file,infiles.FilePath as Infiles
+from T_IGR_Master im
+left join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
+join T_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
+join T_PurchaseOrder_Master pm on pm.PONO = pl.PONO
+left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
+left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
+left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
+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' ";
+
+if ($cname!= ''){
+
+ $sql.="and sd.SupplierName = '".$cname."'";
+
+ }
+
+
+
+ if ($fa and $aa != ''){
+
+ //$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
+ $sql.=" and (im.MaterialRcvdDate >= '".$fa."-04-01' and im.MaterialRcvdDate <= '".$aa."-03-31')";
+
+ }
+ if ($m!= ''){
+
+ //$sql.="and monthname(im.CreatedDate) = '".$m."'";
+ $sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
+
+ }
+
+ if ($frm and $t != ''){
+ $fromd= date("Y-m-d",strtotime($frm));
+ $tod=date("Y-m-d",strtotime($t));
+
+ // $sql.="and date(im.CreatedDate) >= '".$fromd."'
+ // and date(im.CreatedDate) <= '".$tod."'";
+ $sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
+ and date(im.MaterialRcvdDate) <= '".$tod."'";
+
+ }
+ if ($prod!= ''){
+
+ $sql.=" and mm.MaterialName = '".$prod."' ";
+
+ }
+ if ($cat!= ''){
+
+ $sql.=" and mm.Category = '".$cat."' ";
+
+ }
+
+
+
+$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
//echo $sql;
$query = $this->db->query($sql);
return $query->result();
}
+
+ function ireport_purchase_suppliersummarylink($cname,$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,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2) as cgst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
+(id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2) as igst,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
+(id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2) as discount,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
+(id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2) as freight,
+round(ifnull(if(POType = 'REVENUE',
+(id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2) as Package,
+
+round((
+if(POType = 'IMPORT',(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
+if(POType = 'CAPITAL' && CapitalRange = 0,(pm.ExchangeRate * (id.QuantityAsPerInvoice * pl.Rate)),
+ifnull((id.QuantityAsPerInvoice * pl.Rate),0)))
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterCGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_CGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterIGST / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.After_IGST / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterFreightValue / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.AfterFreightValue / pl.Quantity)),0),2)
++ round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterPackagingValue / pl.Quantity),0),0),2)
+- round(ifnull(if(POType = 'REVENUE',
+ (id.QuantityAsPerInvoice * rt.AfterDiscount / pl.Quantity),
+ (id.QuantityAsPerInvoice * st.Afterdiscountval / pl.Quantity)),0),2)),2) as total,
+ im.file as ifile,im.DeliveryChellanOrInvoiceNo as invno,im.DeliveryChellanDate as invdate, pb.FilePath as file,infiles.FilePath as Infiles
+from T_IGR_Master im
+left join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
+join T_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
+join T_PurchaseOrder_Master pm on pm.PONO = pl.PONO
+left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
+left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
+left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
+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' ";
+
+if ($cname!= ''){
+
+ $sql.="and sd.SupplierName = '".$cname."'";
+
+ }
+
+
+
+ if ($fa and $aa != ''){
+
+ //$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
+ $sql.=" and (im.MaterialRcvdDate >= '".$fa."-04-01' and im.MaterialRcvdDate <= '".$aa."-03-31')";
+
+ }
+ if ($m!= ''){
+
+ //$sql.="and monthname(im.CreatedDate) = '".$m."'";
+ $sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
+
+ }
+
+ if ($frm and $t != ''){
+ $fromd= date("Y-m-d",strtotime($frm));
+ $tod=date("Y-m-d",strtotime($t));
+
+ // $sql.="and date(im.CreatedDate) >= '".$fromd."'
+ // and date(im.CreatedDate) <= '".$tod."'";
+
+ $sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
+ and date(im.MaterialRcvdDate) <= '".$tod."'";
+
+ }
+ if ($prod!= ''){
+
+ $sql.=" and mm.MaterialName = '".$prod."' ";
+
+ }
+ if ($sid!= ''){
+
+ $sql.=" and sd.SupplierID = '".$sid."' ";
+
+ }
+ if ($mid!= ''){
+
+ $sql.=" and mm.MaterialCode = '".$mid."' ";
+
+ }
+ if ($d!= ''){
+
+ //$sql.=" and date(im.CreatedDate) = '".$d."' ";
+ $sql.=" and date(im.MaterialRcvdDate) = '".$d."' ";
+
+ }
+ if ($cat!= ''){
+
+ $sql.=" and mm.Category = '".$cat."' ";
+
+ }
+ if ($da!= ''){
+ $ddd= date("Y-m-d",strtotime($da));
+
+ //$sql.=" and date(im.CreatedDate) = '".$ddd."' ";
+ $sql.=" and date(im.MaterialRcvdDate) = '".$ddd."' ";
+
+ }
+ if ($po!= ''){
+
+ $sql.=" and im.PONO = '".$po."' ";
+
+ }
+
+
+
+$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
+// echo $m;
+// echo $sid;
+//echo $sql;
+ $query = $this->db->query($sql);
+ return $query->result();
+
+
+ }
+
+
function ireport_attachment($cname,$fa,$aa,$m,$frm,$t){
- $sql="select pono,igrn,potype,date_format(created_date,'%d-%m-%Y') as created_date,date_format(materialrcvddate,'%d-%m-%Y') as materialrcvddate,supplier_name,
+ $sql="Select pono,igrn,potype,date_format(created_date,'%d-%m-%Y') as created_date,date_format(materialrcvddate,'%d-%m-%Y') as materialrcvddate,supplier_name,
sum(total) as total,file,ifile
from igr
where status != 'ST030'
@@ -1922,6 +2172,94 @@ if ($cname!= ''){
return $query->result();
}
+
+ function ireport_suppliersummary($fa,$aa,$m,$frm,$t){
+
+
+ $sql="SELECT sd.SupplierID as sid,sd.SupplierName as supplier_name,count(im.PONO) as counts,ifnull(sum(id.QuantityAsPerInvoice),0) as quantity,round(ifnull(sum(id.QuantityAsPerInvoice * pl.Rate),0),2) as value,
+
+case pm.POType
+when 'IMPORT'
+then ifnull((sum((id.QuantityAsPerInvoice * pl.Rate) * pm.ExchangeRate)
++ ifnull(rt.Insurance,0)
+
+),0)
+when 'CAPITAL'
+then sum( if(pm.CapitalRange=0,(( id.QuantityAsPerInvoice * pl.Rate) * pm.ExchangeRate),( id.QuantityAsPerInvoice * pl.Rate)
+- st.Afterdiscountval))
++ ifnull(sum(st.After_SGST),0)
++ ifnull(sum(st.After_CGST),0)
++ ifnull(sum(st.After_IGST),0)
++ ifnull(sum(st.AfterFreightValue),0)
++ ifnull(rt.Insurance,0)
+
+
+when 'SERVICE'
+then ifnull(sum(id.QuantityAsPerInvoice * pl.Rate),0)
++ ifnull(sum(st.After_SGST),0)
++ ifnull(sum(st.After_CGST),0)
++ ifnull(sum(st.After_IGST),0)
++ ifnull(sum(st.AfterFreightValue),0)
++ ifnull(rt.Insurance,0)
+- ifnull(sum(st.Afterdiscountval),0)
+
+when 'REVENUE'
+then ifnull(sum(id.QuantityAsPerInvoice * pl.Rate),0)
+- ifnull(sum(rt.AfterDiscount),0)
++ ifnull(sum(rt.AfterSGST),0)
++ ifnull(sum(rt.AfterCGST),0)
++ ifnull(sum(rt.AfterIGST),0)
++ ifnull(sum(rt.AfterFreightValue),0)
++ ifnull(sum(rt.AfterPackagingValue),0)
++ ifnull(rt.Insurance,0)
+
+end
+as total,im.MaterialRcvdDate
+from T_IGR_Master im
+left join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
+join T_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
+join T_PurchaseOrder_Master pm on pm.PONO = pl.PONO
+left join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode
+left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID
+left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo
+left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo
+where pm.Status != 'ST030'";
+
+
+ if ($fa and $aa != ''){
+
+ //$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
+ $sql.=" and (im.MaterialRcvdDate >= '".$fa."-04-01' and im.MaterialRcvdDate <= '".$aa."-03-31')";
+
+ }
+ if ($m!= ''){
+
+ //$sql.="and monthname(im.CreatedDate) = '".$m."'";
+ $sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
+
+ }
+
+ if ($frm and $t != ''){
+ $fromd= date("Y-m-d",strtotime($frm));
+ $tod=date("Y-m-d",strtotime($t));
+
+ // $sql.="and date(im.CreatedDate) >= '".$fromd."'
+ // and date(im.CreatedDate) <= '".$tod."'";
+ $sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
+ and date(im.MaterialRcvdDate) <= '".$tod."'";
+
+ }
+ $sql.= "group by supplier_name";
+ //echo $sql;
+ $query = $this->db->query($sql);
+ return $query->result();
+
+ }
+
+
+
+
+
function ireport_consolidate($cname,$fa,$aa){
diff --git a/application/views/Report_supplier_summary.php b/application/views/Report_supplier_summary.php
new file mode 100644
index 00000000..50c66007
--- /dev/null
+++ b/application/views/Report_supplier_summary.php
@@ -0,0 +1,404 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Supplier Name |
+ Quantity |
+ Value (₹) |
+
+
+
+
+
+ input->post('financialyear');
+ $month=$this->input->post('month');
+ $frm = $this->input->post('from_date');
+ $t = $this->input->post('to_date');
+ foreach($spurchse as $rel)
+ {
+ ?>
+
+ |
+ supplier_name;?>
+ |
+
+ quantity);
+ echo round($rel->quantity);?> |
+ value;
+ echo number_format($rel->value,2,'.','');?> |
+
+
+
+
+
+
+
+
+
+ | Total |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/Report_supplierlink_summary.php b/application/views/Report_supplierlink_summary.php
new file mode 100644
index 00000000..80332aee
--- /dev/null
+++ b/application/views/Report_supplierlink_summary.php
@@ -0,0 +1,690 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
*Insurance field not included
+
+
+
+
+
+
+ | PO No |
+ IGR Created Date |
+ Time |
+ Material Received Date |
+ Invoice No |
+ Invoice Date |
+ Material Name |
+
+ Supplier Name |
+ Qty |
+
+ Value (₹) |
+
+ Total (₹) |
+
+
+
+
+
+ $rel)
+ {
+ ?>
+
+ |
+ pono;?>
+ |
+ created_date;?> |
+ created_time;?> |
+ materialrcvddate;?> |
+ invno;?> |
+ invdate)); ?> |
+ material_name;?> |
+
+ supplier_name;?> |
+ quantity);
+ echo round($rel->quantity);?> |
+
+ value;
+ echo $rel->value;?> |
+
+
+ total,2);
+ echo number_format($rel->total,2,'.','');
+ ?> |
+
+
+
+
+
+
+
+
+
+ | Total |
+   |
+   |
+   |
+   |
+   |
+   |
+   |
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php
index 26011b8f..c34e5364 100644
--- a/application/views/alterpurchaseorder.php
+++ b/application/views/alterpurchaseorder.php
@@ -171,9 +171,9 @@ if(!empty($INRSYMBOL))
$("#PODate").datepicker({
- minDate : 'now',
- maxDate : 'now',
- dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
+ // minDate : 'now',
+ // maxDate : 'now', -100:+0;
+ dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+100'
});
$("#Deliverydt").datepicker({
minDate : 'now',
diff --git a/application/views/reportslink.php b/application/views/reportslink.php
index b8b82e7a..a49e9d7c 100755
--- a/application/views/reportslink.php
+++ b/application/views/reportslink.php
@@ -48,6 +48,9 @@
Inward
Inward Details
Inward Summary
+ Inward Supplier Summary
+
Year Wise-Inward
Inward-Supplier Wise
Consolidate Report-Inward
diff --git a/application/views/suppliersummeryreport.php b/application/views/suppliersummeryreport.php
new file mode 100644
index 00000000..63e98b54
--- /dev/null
+++ b/application/views/suppliersummeryreport.php
@@ -0,0 +1,415 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Supplier Name |
+
+ Quantity |
+ Value (₹) |
+
+
+
+
+
+ input->post('financialyear');
+ $month=$this->input->post('month');
+ $frm = $this->input->post('from_date');
+ $t = $this->input->post('to_date');
+ foreach($spurchse as $rel)
+ {
+ ?>
+
+ |
+ supplier_name;?>
+ |
+
+
+ quantity);
+ echo round($rel->quantity);?> |
+ value;
+ echo number_format($rel->value,2,'.','');?> |
+
+
+
+
+
+
+
+
+
+ | Total |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file