inward_supplier_summary

This commit is contained in:
sriramv 2018-11-30 15:39:31 +05:30
parent 7ba4532e5e
commit 762941593d
11 changed files with 2197 additions and 4 deletions

View File

@ -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";

View File

@ -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()
{

View File

@ -0,0 +1,59 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
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

View File

@ -0,0 +1,172 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
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

View File

@ -0,0 +1,35 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
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

View File

@ -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){

View File

@ -0,0 +1,404 @@
<script>
$(document).ready(function () {
$("#client_name").select2();
});
</script>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
position: relative;
float: right;
}
.btn-success {
background-color: #5d0411;
border-color: #5d0411;
}
</style>
<div class="content-wrapper">
<section class="content"><br/>
<div class="row" style="min-height: 600px;">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Supplier_Summary</b><br><br>
<?php
if($this->input->post('client_name')){
$cl=$this->input->post('client_name');
echo $cl;
echo ' '.' ';
}
if($this->input->post('financialyear')){
$ab=$this->input->post('financialyear');
echo '('.$ab.')';
echo ' ';
}
if($this->input->post('month')){
$m=$this->input->post('month');
echo '('.$m.')';
echo ' ';
}
if($this->input->post('from_date') && $this->input->post('to_date')){
$frm = $this->input->post('from_date');
$t = $this->input->post('to_date');
echo $frm.'to'.$t;
}
?></p></h3></center>
</div>
<!-- /.box-header -->
<div class="panel-body">
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<div class="form-group has-feedback">
<!-- <div class="col-md-2">
<label for="client_name">
<?php echo 'Supplier'; ?><span style="color:red;"> </span>
</label>
<div class="input-group">
<select class="form-control" id="client_name" name="client_name" >
<option value="">Select Supplier</option>
<?php
foreach($cust as $item):
{?>
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div> -->
<div class="col-md-2">
<label for="to_date">
<?php echo 'Year'; ?>
</label>
<div class="input-group">
<select class="form-control" id="financialyear" name="financialyear">
<option value="">Select Year</option>
<?php
foreach($finyear as $item):
{?>
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'Month'; ?>
</label>
<div class="input-group">
<select class="form-control" id="month" name="month">
<option value="">Select Month</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
</div>
</div>
<div class="col-md-2">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
<div class="input-group">
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-2 " ><br>
<input type="submit" class="btn btn-success" name="btn_submit"
value="View Report">
</div>
</div>
</form>
</div>
<div class="box-body">
<div>
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
<thead>
<tr>
<th style="text-align:center">Supplier Name</th>
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
</thead>
<tbody>
<?php if(!empty($spurchse)){
$tot_rate = 0;
$tot_qty = 0;
$tot_value = 0;
$tot_tot = 0;
$ab=$this->input->post('financialyear');
$month=$this->input->post('month');
$frm = $this->input->post('from_date');
$t = $this->input->post('to_date');
foreach($spurchse as $rel)
{
?>
<tr>
<td><span>
<a href="<?= base_url() ?>report/ilink_purchasesummary?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&month=<?php echo $month;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>"><?php echo $rel->supplier_name;?></a>
</span></td>
<td style="text-align:right"><span><?php
$tot_qty= $tot_qty + round($rel->quantity);
echo round($rel->quantity);?></span></td>
<td style="text-align:right"><span><?php
$tot_value= $tot_value + $rel->value;
echo number_format($rel->value,2,'.','');?></span></td>
</tr>
<?php
}
?>
</tbody>
<tfoot width="100%">
<tr>
<td style="text-align:center;"><strong>Total</strong></td>
<td class="amount" style="text-align:right">
<strong>
<?php
{
echo $tot_qty;
}
?>
</strong>
</td>
<td class="amount" style="text-align:right">
<strong>
<?php
{
echo number_format($tot_value,2,'.','');
}
?>
</strong>
</td>
</tr>
</tfoot>
<?php
}
?>
</table>
</div>
</div>
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
</div>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
table = $('#cc').DataTable( {
"language": {
"emptyTable": "<center> Data Not Found ! </center>"
},
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
//messageTop: $('h3').text(),
title: $('h3').text(),
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
TotalQTY = api
.column( 1, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
TotalVALUE = api
.column( 2, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){
table
.column(3)
.search(this.value)
.draw();
});
$( function() {
//var dateFormat = "mm/dd/yy",
from = $( "#min-date" )
.datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
to.datepicker("option", "minDate", getDate( this ) );
}),
to = $( "#max-date" ).datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
from.datepicker( "option", "maxDate", getDate( this ) );
});
function getDate( element ) {
var date;
try {
date = $.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );
function Reset()
{
$('#mySelect').val('');
}
</script>

View File

@ -0,0 +1,690 @@
<script>
$(document).ready(function () {
$("#client_name").select2();
$("#item_name").select2();
});
</script>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="https://rawgit.com/nobleclem/jQuery-MultiSelect/master/jquery.multiselect.css" />
<style>
.dataTables_filter input {padding: 4px;}
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
position: relative;
float: right;
}
.btn-success {
background-color: #5d0411;
border-color: #5d0411;
}
.btn-sm {background-color: #5d0411 !important;
border: 2px solid #5d0411 !important;}
th, td { white-space: nowrap; }
.dataTable > thead > tr > th[class*="sort"]:after{
content: "" !important;
}
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > td.sorting_asc,
table.dataTable thead > tr > td.sorting_desc,
table.dataTable thead > tr > td.sorting {
padding-right: inherit;
}
</style>
<div class="content-wrapper">
<section class="content"><br/>
<div class="row" style="min-height: 600px;">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#5d0411"><b>Supplier Details</b><br><br>
<?php
if($this->input->post('client_name')){
$cl=$this->input->post('client_name');
echo $cl;
echo ' '.' ';
}
if($this->input->post('item_name')){
$it=$this->input->post('item_name');
echo $it;
echo ' '.' ';
}
if($this->input->post('financialyear')){
$ab=$this->input->post('financialyear');
echo '('.$ab.')';
echo ' ';
}
if($this->input->post('month')){
$m=$this->input->post('month');
echo '('.$m.')';
echo ' ';
}
if($this->input->post('from_date') && $this->input->post('to_date')){
$frm = $this->input->post('from_date');
$t = $this->input->post('to_date');
echo $frm.'-to-'.$t;
}
?></p></h3></center>
</div>
<!-- /.box-header -->
<div class="panel-body">
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<div class="form-group has-feedback">
<div class="col-md-4">
<label for="client_name">
<?php echo 'Supplier'; ?>
</label>
<div class="input-group">
<select class="form-control" id="client_name" name="client_name">
<option value="">Select Supplier</option>
<?php
foreach($cust as $item):
{?>
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-4">
<label for="client_name">
<?php echo'Material'; ?>
</label>
<!--<div class="input-group"> -->
<div class="facilities">
<select class="form-control" id="item_name" name="item_name">
<option value="">Select Material</option>
<?php
foreach($material as $it):
{?>
<option value="<?php echo $it->MaterialName;?>"><?php echo $it->MaterialName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'Year'; ?>
</label>
<div class="input-group">
<select class="form-control" id="financialyear" name="financialyear">
<option value="">Select Year</option>
<?php
foreach($finyear as $item):
{?>
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'Month'; ?>
</label>
<div class="input-group">
<select class="form-control" id="month" name="month">
<option value="">Select Month</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
</div>
</div>
<div class="col-md-4">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-4">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
<div class="input-group">
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-2 col-md-offset-2"> <br>
<input type="submit" class="btn btn-success" name="btn_submit"
value="View Report">
</div>
</div>
</form>
</div>
<div class="modal fade" id="Fileshow" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<form>
<div class="modal-content" style="width:800px;">
<!-- Table to show the line item of po -->
<div id="content" > </div>
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>SNo</th>
<th>BillNO</th>
<th>PONO</th>
<th>FileName</th>
</tr>
</thead>
<tbody id="tbleAppend1">
</tbody>
</table>
<div class="modal-footer">
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
</div>
</div>
</form>
</div>
</div>
<span style="color:red;">*Insurance field not included </span>
<div class="box-body">
<div class = "table-responsive">
<table id="cc" class="table table-bordered" cellspacing="0" style="font-size:12px !important;">
<thead>
<tr>
<th>PO No</th>
<th>IGR Created Date</th>
<th>Time</th>
<th>Material Received Date</th>
<th>Invoice No</th>
<th>Invoice Date</th>
<th>Material Name</th>
<!-- <th>Category</th>-->
<th>Supplier Name</th>
<th>Qty</th>
<!-- <th>UOM</th>
<th>Rate &nbsp;(&#8377;)</th> -->
<th>Value &nbsp;(&#8377;)</th>
<!-- <th>Exchange Rate</th>
<th>SGST &nbsp;(&#8377;)</th>
<th>CGST &nbsp;(&#8377;)</th>
<th>IGST &nbsp;(&#8377;)</th>
<th>Discount &nbsp;(&#8377;)</th>
<th>Freight &nbsp;(&#8377;)</th>
<th>Package &nbsp;(&#8377;)</th> -->
<th>Total &nbsp;(&#8377;)</th>
<!-- <th>Attachments</th> -->
</tr>
</thead>
<tbody>
<?php
$tot_qty = 0;
$tot_rate = 0;
$tot_value = 0;
$tot_ex = 0;
$tot_CGST = 0;
$tot_SCGT = 0.0000;
$tot_ICGT = 0;
$tot_dis = 0;
$tot_frg = 0;
$tot_pac = 0;
//$tot_inc = 0;
$tot_tot = 0;
if(!empty($purchase)){
foreach($purchase as $key => $rel)
{
?>
<tr id="lastvalue">
<td id="pono<?php echo $key?>"><span>
<a href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$rel->pono.'&ReqType='.$rel->potype; ?>"><?php echo $rel->pono;?></a>
</span></td>
<td style="text-align:center"><span><?php echo $rel->created_date;?></span></td>
<td style="text-align:right"><span><?php echo $rel->created_time;?></span></td>
<td style="text-align:center"><span><?php echo $rel->materialrcvddate;?></span></td>
<td><span><?php echo $rel->invno;?></span></td>
<td><span> <?php echo date('d-m-Y', strtotime($rel->invdate)); ?><span></td>
<td><span><?php echo $rel->material_name;?></span></td>
<!-- <td><span><?php echo $rel->category;?></span></td> -->
<td><span><?php echo $rel->supplier_name;?></span></td>
<td style="text-align:right"><span><?php
$tot_qty= $tot_qty + round($rel->quantity);
echo round($rel->quantity);?></span></td>
<!-- <td style="text-align:left"><span><?php
echo $rel->UOM;?></span></td>
<td style="text-align:right"><span><?php
$tot_rate= $tot_rate + $rel->rate;
echo $rel->rate;?></span></td>-->
<td style="text-align:right"><span><?php
$tot_value= $tot_value + $rel->value;
echo $rel->value;?></span></td>
<!--<td style="text-align:right"><span><?php
$tot_ex= $tot_ex + $rel->exchange_rate;
echo $rel->exchange_rate;?></span></td>
<td style="text-align:right"><span><?php
$tot_SCGT= $tot_SCGT + $rel->sgst;
echo $rel->sgst;?></span></td>
<td style="text-align:right"><span><?php
$tot_CGST= $tot_CGST + $rel->cgst;
echo $rel->cgst;?></span></td>
<td style="text-align:right"><span><?php
$tot_ICGT= $tot_ICGT + $rel->igst;
echo $rel->igst;?></span></td>
<td style="text-align:right"><span><?php
$tot_dis= $tot_dis + $rel->discount;
echo $rel->discount;?></span></td>
<td style="text-align:right"><span><?php
$tot_frg= $tot_frg + $rel->freight;
echo $rel->freight;?></span></td>
<td style="text-align:right"><span><?php
$tot_pac= $tot_pac + $rel->Package;
echo $rel->Package;?></span></td> -->
<td style="text-align:right"><span><?php
$tot_tot= $tot_tot + round($rel->total,2);
echo number_format($rel->total,2,'.','');
?></span></td>
<!-- <td id="download<?php echo $key?>" style="text-align:center"><span>
<?php
if(!empty($rel->file)){ ?><!-- if for Inward po file
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm splpofile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button></a>
<?php }
else if(!empty($rel->ifile )) { ?><!-- else if for igr file
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View">
<button class="btn btn-info btn-sm IGRfile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button>
</a>
<?php } else if (!empty($rel->Infiles)){ ?><!-- if for Inward po file
<a target="_blank" class="yourlink" data-toggle="tooltip" data-placement="left" title="Attachment Available for Download/View"><button class="btn btn-info btn-sm IGRfile" id="<?php echo $rel->igrn.'-'.$rel->pono;?>">Download</button></a>
<?php } else { echo 'N/A'; } ?><!-- both inwardpo file and Igr file empty means
</span></td> -->
</tr>
<?php
}}
?>
</tbody>
<tfoot width="100%">
<tr>
<td style="text-align:center;"><strong>Total</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td><strong>&nbsp</strong></td>
<td class="amount" style="text-align:right"><strong><?php echo $tot_qty; ?> </strong></td>
<!-- <td class="amount"><strong><?php //echo format_currency($tot_rate,2,'.',''); ?> </strong></td>
<td class="amount"><strong><?php //echo format_currency($tot_rate,2,'.',''); ?> </strong></td> -->
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_value,2,'.',''); ?></strong></td>
<!-- <td class="amount" style="text-align:right"><strong><?php echo $tot_ex; ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_SCGT,2,'.',''); ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_CGST,2,'.',''); ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_ICGT,2,'.',''); ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_dis,2,'.',''); ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_frg,2,'.',''); ?></strong></td>
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_pac,2,'.',''); ?></strong></td> -->
<td class="amount" style="text-align:right"><strong><?php echo number_format($tot_tot,2,'.',''); ?></strong></td>
<!-- <td><strong>&nbsp</strong></td> -->
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
</div>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<!--<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<script src="https://rawgit.com/nobleclem/jQuery-MultiSelect/master/jquery.multiselect.js"></script>-->
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
/** On click for Displaying File MOdal***/
$('.splpofile').click(function() {
var id = $(this).attr('id');
$("#Fileshow").modal("show");
$.ajax({
data:{id:id},
type:"POST",
url:"<?php echo base_url() ?>report/Viewfiles",
success: function(data){
var trHTML = '';
$.each($.parseJSON(data), function (i, item) {
i=i+1;
trHTML += '<tr>' +
'<td align="right">' + i + '</td>' +
'<td>' + item.BillNo+ '</td>' +
'<td>' + item.PONO+ '</td>' +
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
'</tr>';
});
$("#tbleAppend1").empty();
$('#Inwardgateregistertable1 > tbody').append(trHTML);
}
});
});//onclick function closed
$('.IGRfile').click(function() {
var id = $(this).attr('id');
var igr = id.substring(0, 9);
//alert(igr);
var po = id.substring(10, 33);
$("#Fileshow").modal("show");
$.ajax({
data:{id:igr,id1:po},
type:"POST",
url:"<?php echo base_url() ?>report/Viewnormaligrfiles",
success: function(data){
var trHTML = '';
var trHTML = '';
var FilePath ='';
var Filename = '';
var PONO ='';
var BillNO ='';
$.each($.parseJSON(data), function (i, item) {
if(item.file == null)
{ if(item.Remarks ==null)
{
//alert()
PONO =item.PONO;
BillNO =item.BillNo;
Filename =item.FilePath;
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
}else{
Filename ="BillDetails";
PONO =item.PONO;
BillNO =item.BillNo;
FilePath = item.FilePath;
}
}else{
Filename = item.file;
PONO =item.pono;
BillNO = '-';
FilePath =item.file;
}
// i=i+1;
// trHTML += '<tr>' +
// '<td align="right">' + i + '</td>' +
// '<td>' + item.BillNo+ '</td>' +
// '<td>' + item.PONO+ '</td>' +
// '<td><a target="_blank" href = <?php echo base_url()?>uploads/Igrfiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
// '</tr>';
if(Filename != null)
{
i=i+1;
trHTML += '<tr id='+i+'>' +
'<td align="right">' + i + '</td>' +
'<td id="billno'+i+'">' + BillNO+ '</td>' +
'<td>' + PONO+ '</td>' +
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
'</tr>';
}
});
$("#tbleAppend1").empty();
$('#Inwardgateregistertable1 > tbody').append(trHTML);
}
});
});// onclick function innormal igrfiles
/******************** Datatable codes starts here **************************/
$.fn.dataTable.moment( 'DD-MM-YYYY' );
table = $('#cc').DataTable( {
"language": {
"emptyTable": "<center> Data Not Found ! </center>"
},
"aaSorting": [[ 3, "desc" ]],
"autoWidth": false,
orderCellsTop: true,
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
messageTop: 'Report Purchase-Inward',
title: $('h3').text(),
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
TotalQTY = api
.column( 8, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 8 ).footer() ).html( TotalQTY );
TotalVALUE = api
.column( 9, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 9 ).footer() ).html( TotalVALUE.toFixed(2) );
FinalTotal = api
.column( 10, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 10 ).footer() ).html( FinalTotal.toFixed(2) );
}
} );
} ); //on ready function Closed
/** jquery on ready for DataPicker. */
$( function() {
//var dateFormat = "mm/dd/yy",
from = $( "#min-date" )
.datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
to.datepicker("option", "minDate", getDate( this ) );
}),
to = $( "#max-date" ).datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
from.datepicker( "option", "maxDate", getDate( this ) );
});
function getDate( element ) {
var date;
try {
date = $.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );
$(function() {
// from http://stackoverflow.com/questions/45888/what-is-the-most-efficient-way-to-sort-an-html-selects-options-by-value-while
var my_options = $('.facilities select option');
var selected = $('.facilities').find('select').val();
my_options.sort(function(a,b) {
if (a.text > b.text) return 1;
if (a.text < b.text) return -1;
return 0
})
$('.facilities').find('select').empty().append( my_options );
$('.facilities').find('select').val(selected);
// set it to multiple
$('.facilities').find('select').attr('multiple', true);
// remove all option
$('.facilities').find('select option[value=""]').remove();
// add multiple select checkbox feature.
$('.facilities').find('select').multiselect();
})
</script>

View File

@ -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',

View File

@ -48,6 +48,9 @@
<h4><span class="fa fa-truck">&nbsp; Inward</span></h4>
<a href="<?php echo base_url(); ?>Report_purchase_inward" target="_blank" >Inward Details<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_purchase_attach" target="_blank" >Inward Summary<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_supplier_summary
" target="_blank" >Inward Supplier Summary<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_year_wise_inward" target="_blank" >Year Wise-Inward<p class="uk-text-meta uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_supplier_inward" target="_blank" >Inward-Supplier Wise<p class="uk-text uk-margin-remove"></p></a>
<a href="<?php echo base_url(); ?>Report_consolidate_inward" target="_blank" >Consolidate Report-Inward<p class="uk-text-meta uk-margin-remove"></p></a>

View File

@ -0,0 +1,415 @@
<script>
$(document).ready(function () {
$("#client_name").select2();
});
</script>
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style>
.dataTables_filter input {padding: 4px;}
.dataTables_filter {
width: 50%;
float: right;
text-align: right;
}
.dataTables_paginate {
width: 50%;
float: right;
text-align: right;
}
div.dt-buttons {
position: relative;
float: right;
}
.btn-success {
background-color: #5d0411;
border-color: #5d0411;
}
</style>
<div class="content-wrapper">
<section class="content"><br/>
<div class="row" style="min-height: 600px;">
<!-- Left col -->
<div class="col-md-12">
<!-- TABLE: LATEST ORDERS -->
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#5d0411"><b>Report - Supplier Summary-Inward</b><br><br>
<?php
if($this->input->post('financialyear')){
$ab=$this->input->post('financialyear');
echo '('.$ab.')';
echo ' ';
}
if($this->input->post('month')){
$m=$this->input->post('month');
echo '('.$m.')';
echo ' ';
}
if($this->input->post('from_date') && $this->input->post('to_date')){
$frm = $this->input->post('from_date');
$t = $this->input->post('to_date');
echo $frm.'to'.$t;
}
?></p></h3></center>
</div>
<!-- /.box-header -->
<div class="panel-body">
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<div class="form-group has-feedback">
<!-- <div class="col-md-2">
<label for="client_name">
<?php echo 'Supplier'; ?><span style="color:red;">* </span>
</label>
<div class="input-group">
<select class="form-control" id="client_name" name="client_name" required="true">
<option value="">Select Supplier</option>
<?php
foreach($cust as $item):
{?>
<option value="<?php echo $item->SupplierName;?>"><?php echo $item->SupplierName ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div> -->
<div class="col-md-2">
<label for="to_date">
<?php echo 'Year'; ?>
</label>
<div class="input-group">
<select class="form-control" id="financialyear" name="financialyear">
<option value="">Select Year</option>
<?php
foreach($finyear as $item):
{?>
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'Month'; ?>
</label>
<div class="input-group">
<select class="form-control" id="month" name="month">
<option value="">Select Month</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
</select>
</div>
</div>
<div class="col-md-2">
<label for="from_date">
<?php echo 'From Date'; ?>
</label>
<div class="input-group">
<input name="from_date" id="max-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'To Date'; ?>
</label>
<div class="input-group">
<input name="to_date" id="min-date" class="form-control datepicker">
<span class="input-group-addon">
<i class="fa fa-calendar fa-fw"></i>
</span>
</div>
</div>
<div class="col-md-2 " ><br>
<input type="submit" class="btn btn-success" name="btn_submit"
value="View Report">
</div>
</div>
</form>
</div>
<div class="box-body">
<div>
<table class="table table-bordered table-hover" id="cc" style="font-size:14px;">
<thead>
<tr>
<th style="text-align:center">Supplier Name</th>
<!-- <th style="text-align:center">PO Count</th> -->
<th style="text-align:center">Quantity</th>
<th style="text-align:center">Value &nbsp;(&#8377;)</th>
</tr>
</thead>
<tbody>
<?php if(!empty($spurchse)){
$tot_rate = 0;
$tot_qty = 0;
$tot_value = 0;
$tot_tot = 0;
$ab=$this->input->post('financialyear');
$month=$this->input->post('month');
$frm = $this->input->post('from_date');
$t = $this->input->post('to_date');
foreach($spurchse as $rel)
{
?>
<tr>
<td><span>
<a href="<?= base_url() ?>report/ilink_purchasesummary?sid=<?php echo $rel->sid;?>&ab=<?php echo $ab;?>&month=<?php echo $month;?>&frm=<?php echo $frm;?>&t=<?php echo $t;?>"><?php echo $rel->supplier_name;?></a>
</span></td>
<!-- <td style="text-align:right"><span><?php
$tot_rate= $tot_rate + round($rel->counts);
echo round($rel->counts);?></span></td> -->
<td style="text-align:right"><span><?php
$tot_qty= $tot_qty + round($rel->quantity);
echo round($rel->quantity);?></span></td>
<td style="text-align:right"><span><?php
$tot_value= $tot_value + $rel->value;
echo number_format($rel->value,2,'.','');?></span></td>
</tr>
<?php
}
?>
</tbody>
<tfoot width="100%">
<tr>
<td style="text-align:center;"><strong>Total</strong></td>
<!-- <td class="amount" style="text-align:right"><strong>
<?php
{
echo $tot_rate;
}
?>
</strong>
</td> -->
<td class="amount" style="text-align:right">
<strong>
<?php
{
echo $tot_qty;
}
?>
</strong>
</td>
<td class="amount" style="text-align:right">
<strong>
<?php
{
echo number_format($tot_value,2,'.','');
}
?>
</strong>
</td>
</tr>
</tfoot>
<?php
}
?>
</table>
</div>
</div>
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
</div>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
table = $('#cc').DataTable( {
"language": {
"emptyTable": "<center> Data Not Found ! </center>"
},
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
//messageTop: $('h3').text(),
title: $('h3').text(),
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
"footerCallback": function ( row, data, start, end, display ) {
var api = this.api(), data;
// Remove the formatting to get integer data for summation
var intVal = function ( i ) {
return typeof i === 'string' ?
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
typeof i === 'number' ?
parseFloat(i) : 0;
};
//TotalPOCount = api
// .column( 1, { search:'applied' } )
// .data()
// .reduce( function (a, b) {
// return intVal(a) + intVal(b);
// }, 0 );
//$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
TotalQTY = api
.column( 2, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
TotalVALUE = api
.column( 3, { search:'applied' } )
.data()
.reduce( function (a, b) {
return intVal(a) + intVal(b);
}, 0 );
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
}
} );
} );
$('#mySelect').on('change',function(){
table
.column(4)
.search(this.value)
.draw();
});
$( function() {
//var dateFormat = "mm/dd/yy",
from = $( "#min-date" )
.datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
to.datepicker("option", "minDate", getDate( this ) );
}),
to = $( "#max-date" ).datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
from.datepicker( "option", "maxDate", getDate( this ) );
});
function getDate( element ) {
var date;
try {
date = $.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );
function Reset()
{
$('#mySelect').val('');
}
</script>