ria-report changes and material rcvd date changes
This commit is contained in:
parent
8f04f538df
commit
0daef48532
@ -233,6 +233,8 @@ $route['Report_supplier'] = "report/purchase_supplier";
|
|||||||
$route['Report_consolidate'] = "report/consolidate";
|
$route['Report_consolidate'] = "report/consolidate";
|
||||||
$route['Report_cumulative'] = "report/cumulative";
|
$route['Report_cumulative'] = "report/cumulative";
|
||||||
$route['cashbookreport']="report/cashbook";
|
$route['cashbookreport']="report/cashbook";
|
||||||
|
$route['cashbookcumulativereport']="report/cashbook_cumulative_report";
|
||||||
|
$route['cashbookcumulativemonthreport']="report/cashbook_month_cumulative_report";
|
||||||
$route['cashbookmonthlyexpenses']="report/monthexpenses";
|
$route['cashbookmonthlyexpenses']="report/monthexpenses";
|
||||||
$route['cashbookyearlyexpenses']="report/yearexpenses";
|
$route['cashbookyearlyexpenses']="report/yearexpenses";
|
||||||
$route['Report_purchase_inward'] = "report/ipurchase";
|
$route['Report_purchase_inward'] = "report/ipurchase";
|
||||||
|
|||||||
@ -538,6 +538,9 @@ class emergencypurchaseorder extends BaseController
|
|||||||
$DeliveryChellan = $this->input->post('ChallanInvDate');
|
$DeliveryChellan = $this->input->post('ChallanInvDate');
|
||||||
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
||||||
|
|
||||||
|
$MaterialReceive = $this->input->post('MRC');
|
||||||
|
$MaterialReceivedate = $this->getDateformat($MaterialReceive);
|
||||||
|
|
||||||
$Vehicle = $this->input->post('VehicleNo');
|
$Vehicle = $this->input->post('VehicleNo');
|
||||||
$Courier = $this->input->post('CourierNo');
|
$Courier = $this->input->post('CourierNo');
|
||||||
|
|
||||||
@ -551,7 +554,7 @@ class emergencypurchaseorder extends BaseController
|
|||||||
$IGRStatus = IGR_CREATED;
|
$IGRStatus = IGR_CREATED;
|
||||||
$igr = array();
|
$igr = array();
|
||||||
|
|
||||||
$igr = array('PONO'=>$PONO,'VehicleNo'=>$Vehicle,'DeliveryChellanOrInvoiceNo'=>$DeliveryChellanInvoiceNo,'DeliveryChellanDate'=>$DeliveryChellanDate,'CourierNo'=>$Courier,'IGRStatus'=>$IGRStatus,'CreatedBy'=>$CreatedBy,'CreatedDate' =>$createddt);
|
$igr = array('PONO'=>$PONO,'VehicleNo'=>$Vehicle,'DeliveryChellanOrInvoiceNo'=>$DeliveryChellanInvoiceNo,'DeliveryChellanDate'=>$DeliveryChellanDate,'CourierNo'=>$Courier,'IGRStatus'=>$IGRStatus,'CreatedBy'=>$CreatedBy,'CreatedDate' =>$createddt,'MaterialRcvdDate'=>$MaterialReceivedate);
|
||||||
$igrM = $this->inwardgateregister_model->addigrM($igr);
|
$igrM = $this->inwardgateregister_model->addigrM($igr);
|
||||||
$IGRNO = '';
|
$IGRNO = '';
|
||||||
if(count($igrM)>0)
|
if(count($igrM)>0)
|
||||||
|
|||||||
@ -130,6 +130,11 @@ class inwardgateregister extends BaseController
|
|||||||
$DeliveryChellan = $this->input->post('InvoiceDate');
|
$DeliveryChellan = $this->input->post('InvoiceDate');
|
||||||
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
||||||
|
|
||||||
|
|
||||||
|
$Mat_Rcvd_Dt = $this->input->post('MaterialRcvdDate');
|
||||||
|
$MaterialRcvdDt = $this->getDateformat($Mat_Rcvd_Dt);
|
||||||
|
|
||||||
|
|
||||||
$VehicleNo = $this->input->post('VehicleNo');
|
$VehicleNo = $this->input->post('VehicleNo');
|
||||||
$CourierNo = $this->input->post('CourierNo');
|
$CourierNo = $this->input->post('CourierNo');
|
||||||
|
|
||||||
@ -162,7 +167,7 @@ class inwardgateregister extends BaseController
|
|||||||
|
|
||||||
$igr = array();
|
$igr = array();
|
||||||
|
|
||||||
$igr = array('PONO'=>$PONO,'VehicleNo'=>$VehicleNo,'DeliveryChellanOrInvoiceNo'=>$DeliveryChellanOrInvoiceNo,'DeliveryChellanDate'=>$DeliveryChellanDate,'CourierNo'=>$CourierNo,'IGRStatus'=>$IGRStatus,'CreatedBy'=>$CreatedBy,'CreatedDate' =>$createddt,'file'=>$document);
|
$igr = array('PONO'=>$PONO,'VehicleNo'=>$VehicleNo,'DeliveryChellanOrInvoiceNo'=>$DeliveryChellanOrInvoiceNo,'DeliveryChellanDate'=>$DeliveryChellanDate,'MaterialRcvdDate'=>$MaterialRcvdDt,'CourierNo'=>$CourierNo,'IGRStatus'=>$IGRStatus,'CreatedBy'=>$CreatedBy,'CreatedDate' =>$createddt,'file'=>$document);
|
||||||
|
|
||||||
|
|
||||||
$igrM = $this->inwardgateregister_model->addigrM($igr);
|
$igrM = $this->inwardgateregister_model->addigrM($igr);
|
||||||
@ -241,6 +246,39 @@ class inwardgateregister extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*To Update igr Datas form ajax
|
||||||
|
*/
|
||||||
|
function UpdateIGR()
|
||||||
|
{
|
||||||
|
|
||||||
|
$IGRNo = $this->input->post('igr');
|
||||||
|
|
||||||
|
$DeliveryChellan = $this->input->post('invdate');
|
||||||
|
$DeliveryChellanDate = $this->getDateformat($DeliveryChellan);
|
||||||
|
|
||||||
|
$Mat_Rcvd_Dt = $this->input->post('mrc');
|
||||||
|
$MaterialRcvdDt = $this->getDateformat($Mat_Rcvd_Dt);
|
||||||
|
|
||||||
|
$updateby = $this->session->userdata('userId');
|
||||||
|
|
||||||
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
|
$updatedon = $dt->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
|
||||||
|
$igrarr = array('DeliveryChellanDate'=>$DeliveryChellanDate,'MaterialRcvdDate'=>$MaterialRcvdDt,'UpdateBY'=>$updateby,'UpdatedOn'=>$updatedon);
|
||||||
|
|
||||||
|
$data = $this->inwardgateregister_model->updateigr($igrarr,$IGRNo);
|
||||||
|
|
||||||
|
if($data > 0){
|
||||||
|
echo "Updated Succefully!";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
echo "Not Updated!";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To load pagenotfound view
|
* To load pagenotfound view
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -518,7 +518,7 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
|
|
||||||
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_purchase_inward",$this->global,$data, NULL);
|
||||||
|
|
||||||
@ -543,7 +543,7 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
$data['purchase']=$this->dahsboard_Model->ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d);
|
||||||
|
|
||||||
|
|
||||||
@ -566,7 +566,7 @@ class report extends BaseController
|
|||||||
$po = $this->input->get('po');
|
$po = $this->input->get('po');
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['purchase']=$this->dahsboard_Model->ireport_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po);
|
$data['purchase']=$this->dahsboard_Model->ireport_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -588,12 +588,12 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['purchase']=$this->dahsboard_Model->ireport_attachment($cname,$fa,$aa,$m,$frm,$t);
|
$data['purchase']=$this->dahsboard_Model->ireport_attachment($cname,$fa,$aa,$m,$frm,$t);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
// if($this->DEPCode == MANAGEMENT)
|
// if($this->DEPCode == MANAGEMENT)
|
||||||
// {
|
// {
|
||||||
$this->loadviews("Report_attach_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_attach_inward",$this->global,$data, NULL);
|
||||||
@ -614,11 +614,11 @@ class report extends BaseController
|
|||||||
$a=substr($ab,0,-5);
|
$a=substr($ab,0,-5);
|
||||||
$b=substr($ab,5,5);
|
$b=substr($ab,5,5);
|
||||||
$data['year']=$this->dahsboard_Model->ireport_year_wise($a,$b);
|
$data['year']=$this->dahsboard_Model->ireport_year_wise($a,$b);
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
|
|
||||||
//$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
//$this->loadviews("Report_year_wise",$this->global,$data, NULL);
|
||||||
}
|
}
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -671,12 +671,12 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->ireport_supplier($cname,$fa,$aa,$m,$frm,$t);
|
$data['spurchse']=$this->dahsboard_Model->ireport_supplier($cname,$fa,$aa,$m,$frm,$t);
|
||||||
}
|
}
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_supplier_inward",$this->global,$data, NULL);
|
||||||
}
|
}
|
||||||
public function iconsolidate()
|
public function iconsolidate()
|
||||||
@ -691,12 +691,12 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->ireport_consolidate($cname,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->ireport_consolidate($cname,$fa,$aa);
|
||||||
}
|
}
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
|
|
||||||
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_inward",$this->global,$data, NULL);
|
||||||
|
|
||||||
@ -718,7 +718,7 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
|
|
||||||
@ -742,7 +742,7 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
|
|
||||||
@ -872,12 +872,12 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->category();
|
$data['material']=$this->dahsboard_Model->category();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->rawi_report_consolidate($cname,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->rawi_report_consolidate($cname,$fa,$aa);
|
||||||
}
|
}
|
||||||
$data['material']=$this->dahsboard_Model->category();
|
$data['material']=$this->dahsboard_Model->category();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
|
|
||||||
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
$this->loadviews("Report_consolidate_raw",$this->global,$data, NULL);
|
||||||
|
|
||||||
@ -898,7 +898,7 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_month($m,$cat,$sup,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_month($m,$cat,$sup,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
|
|
||||||
@ -920,7 +920,7 @@ class report extends BaseController
|
|||||||
//print_r($prod);
|
//print_r($prod);
|
||||||
$data['material']=$this->dahsboard_Model->material_name();
|
$data['material']=$this->dahsboard_Model->material_name();
|
||||||
$data['cust']=$this->dahsboard_Model->customer_name();
|
$data['cust']=$this->dahsboard_Model->customer_name();
|
||||||
$data['finyear']=$this->dahsboard_Model->report_finyear();
|
$data['finyear']=$this->dahsboard_Model->ireport_finyear();
|
||||||
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_year($cat,$sup,$fa,$aa);
|
$data['spurchse']=$this->dahsboard_Model->rawi_consolidate_year($cat,$sup,$fa,$aa);
|
||||||
// print_r( $data['spurchse']);
|
// print_r( $data['spurchse']);
|
||||||
|
|
||||||
@ -1132,15 +1132,18 @@ class report extends BaseController
|
|||||||
public function cashbookdepartment()
|
public function cashbookdepartment()
|
||||||
{
|
{
|
||||||
//$this->global['pageTitle'] = 'Cashbook - department - ';
|
//$this->global['pageTitle'] = 'Cashbook - department - ';
|
||||||
$sid=$_GET['sid'];
|
if(!empty($_GET['sid'])){$sid=$_GET['sid'];}else{ $sid='';}
|
||||||
|
if(!empty($_GET['d'])){$d=$_GET['d'];}else{$d='';}
|
||||||
$d=$_GET['d'];
|
|
||||||
$c=$_GET['c'];
|
$c=$_GET['c'];
|
||||||
|
$finyear=$_GET['finyear'];
|
||||||
|
$fy=substr( $finyear,0,-5);
|
||||||
|
$ty=substr( $finyear,5,5);
|
||||||
|
|
||||||
if ($c=='PAYMENT')
|
if ($c=='PAYMENT')
|
||||||
{
|
{
|
||||||
$this->global['pageTitle'] = $this->CompanyName.' : PaymentWise Reports';
|
$this->global['pageTitle'] = $this->CompanyName.' : PaymentWise Reports';
|
||||||
|
|
||||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c);
|
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c,$fy,$ty);
|
||||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||||
|
|
||||||
$this->loadviews("cashbookmthlypaydep",$this->global,$data, NULL);
|
$this->loadviews("cashbookmthlypaydep",$this->global,$data, NULL);
|
||||||
@ -1148,7 +1151,8 @@ class report extends BaseController
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$this->global['pageTitle'] = $this->CompanyName.' : ReceiptWise Reports';
|
$this->global['pageTitle'] = $this->CompanyName.' : ReceiptWise Reports';
|
||||||
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c);
|
$data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c,$fy,$ty);
|
||||||
|
|
||||||
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
$data['Indiancurrency']=$this->dahsboard_Model->INRSymbol();
|
||||||
$this->loadviews("cashbookmthlyrecdep",$this->global,$data, NULL);
|
$this->loadviews("cashbookmthlyrecdep",$this->global,$data, NULL);
|
||||||
//cashbookmonthlyexp=>cashbookmthlyrecdep
|
//cashbookmonthlyexp=>cashbookmthlyrecdep
|
||||||
@ -1165,5 +1169,34 @@ class report extends BaseController
|
|||||||
|
|
||||||
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
$this->loadviews("cashbookyearmonthwise",$this->global,$data, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function cashbook_cumulative_report()
|
||||||
|
{
|
||||||
|
$this->global['pageTitle'] = $this->CompanyName.' : Cashbook Cumulative Reports';
|
||||||
|
$data['datas']=$this->dahsboard_Model->report_cumulative_cashbook();
|
||||||
|
$this->loadviews("cashbook_cumulative_report",$this->global,$data, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function cashbook_month_cumulative_report()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->global['pageTitle'] = $this->CompanyName.' : Cashbook Cumulative(Monthwise) 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);
|
||||||
|
|
||||||
|
$data['accountname']=$this->dahsboard_Model->accountname();
|
||||||
|
$data['finyear']=$this->dahsboard_Model->cashbook_finyear();
|
||||||
|
// $data['spurchse']=$this->dahsboard_Model->rawi_report_consolidate($cname,$fa,$aa);
|
||||||
|
$data['datas'] = $this->dahsboard_Model->report_cumulative_month_cashbook($cname,$fa,$aa);
|
||||||
|
}
|
||||||
|
|
||||||
|
$data['accountname']=$this->dahsboard_Model->accountname();
|
||||||
|
$data['finyear']=$this->dahsboard_Model->cashbook_finyear();
|
||||||
|
|
||||||
|
$this->loadviews("cashbook_cumulative_month_report",$this->global,$data, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -1070,6 +1070,42 @@ GROUP BY financial_year";
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function accountname()
|
||||||
|
{
|
||||||
|
$sql = "SELECT name from t_accountcode ";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
}
|
||||||
|
|
||||||
|
function cashbook_finyear(){
|
||||||
|
|
||||||
|
$sql="SELECT
|
||||||
|
CASE WHEN MONTH(date)>=4 THEN
|
||||||
|
concat(YEAR(date), '-',YEAR(date)+1)
|
||||||
|
ELSE concat(YEAR(date)-1,'-', YEAR(date)) END AS financial_year
|
||||||
|
FROM t_income_expense
|
||||||
|
GROUP BY financial_year";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function ireport_finyear(){
|
||||||
|
|
||||||
|
$sql="SELECT
|
||||||
|
CASE WHEN MONTH(MaterialRcvdDate)>=4
|
||||||
|
THEN concat(YEAR(MaterialRcvdDate), '-',YEAR(MaterialRcvdDate)+1)
|
||||||
|
ELSE concat(YEAR(MaterialRcvdDate)-1,'-', YEAR(MaterialRcvdDate))
|
||||||
|
END AS financial_year
|
||||||
|
FROM T_IGR_Master
|
||||||
|
GROUP BY financial_year";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function report_year_wise($a=null, $b=null){
|
function report_year_wise($a=null, $b=null){
|
||||||
|
|
||||||
|
|
||||||
@ -1405,7 +1441,7 @@ group by supplier_name,material_name";
|
|||||||
function ireport_purchase($cname,$prod,$fa,$aa,$m,$frm,$t,$cat){
|
function ireport_purchase($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, sum(id.QuantityAsPerInvoice) as quantity,pl.Rate as rate,round(sum(id.QuantityAsPerInvoice) * pl.Rate,2) as value,if(POType = 'IMPORT' or POType = 'CAPITAL',sum(pm.ExchangeRate),0) as exchange_rate,
|
$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, sum(id.QuantityAsPerInvoice) as quantity,pl.Rate as rate,round(sum(id.QuantityAsPerInvoice) * pl.Rate,2) as value,if(POType = 'IMPORT' or POType = 'CAPITAL',sum(pm.ExchangeRate),0) as exchange_rate,date_format(im.MaterialRcvdDate,'%d-%m-%Y') as materialrcvddate,
|
||||||
round(ifnull(if(POType = 'REVENUE',
|
round(ifnull(if(POType = 'REVENUE',
|
||||||
sum(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
sum(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
||||||
sum(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
|
sum(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
|
||||||
@ -1467,12 +1503,14 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
//$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!= ''){
|
if ($m!= ''){
|
||||||
|
|
||||||
$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||||
|
$sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1480,8 +1518,10 @@ if ($cname!= ''){
|
|||||||
$fromd= date("Y-m-d",strtotime($frm));
|
$fromd= date("Y-m-d",strtotime($frm));
|
||||||
$tod=date("Y-m-d",strtotime($t));
|
$tod=date("Y-m-d",strtotime($t));
|
||||||
|
|
||||||
$sql.="and date(im.CreatedDate) >= '".$fromd."'
|
// $sql.="and date(im.CreatedDate) >= '".$fromd."'
|
||||||
and date(im.CreatedDate) <= '".$tod."'";
|
// and date(im.CreatedDate) <= '".$tod."'";
|
||||||
|
$sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
|
||||||
|
and date(im.MaterialRcvdDate) <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($prod!= ''){
|
if ($prod!= ''){
|
||||||
@ -1497,7 +1537,7 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql.="group by pono,material_name,category,supplier_name";
|
$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -1505,7 +1545,7 @@ $sql.="group by pono,material_name,category,supplier_name";
|
|||||||
function ireport_purchase_link($cname,$prod,$fa,$aa,$m,$frm,$t,$sid,$mid,$d,$cat,$da,$po){
|
function ireport_purchase_link($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, sum(id.QuantityAsPerInvoice) as quantity,pl.Rate as rate,round(sum(id.QuantityAsPerInvoice) * pl.Rate,2) as value,if(POType = 'IMPORT' or POType = 'CAPITAL',sum(pm.ExchangeRate),0) as exchange_rate,
|
$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, sum(id.QuantityAsPerInvoice) as quantity,pl.Rate as rate,round(sum(id.QuantityAsPerInvoice) * pl.Rate,2) as value,if(POType = 'IMPORT' or POType = 'CAPITAL',sum(pm.ExchangeRate),0) as exchange_rate,date_format(im.MaterialRcvdDate,'%d-%m-%Y') as materialrcvddate,
|
||||||
round(ifnull(if(POType = 'REVENUE',
|
round(ifnull(if(POType = 'REVENUE',
|
||||||
sum(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
sum(id.QuantityAsPerInvoice * rt.AfterSGST / pl.Quantity),
|
||||||
sum(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
|
sum(id.QuantityAsPerInvoice * st.After_SGST / pl.Quantity)),0),2) as sgst,
|
||||||
@ -1567,12 +1607,14 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
//$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!= ''){
|
if ($m!= ''){
|
||||||
|
|
||||||
$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||||
|
$sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1580,8 +1622,11 @@ if ($cname!= ''){
|
|||||||
$fromd= date("Y-m-d",strtotime($frm));
|
$fromd= date("Y-m-d",strtotime($frm));
|
||||||
$tod=date("Y-m-d",strtotime($t));
|
$tod=date("Y-m-d",strtotime($t));
|
||||||
|
|
||||||
$sql.="and date(im.CreatedDate) >= '".$fromd."'
|
// $sql.="and date(im.CreatedDate) >= '".$fromd."'
|
||||||
and date(im.CreatedDate) <= '".$tod."'";
|
// and date(im.CreatedDate) <= '".$tod."'";
|
||||||
|
|
||||||
|
$sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
|
||||||
|
and date(im.MaterialRcvdDate) <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($prod!= ''){
|
if ($prod!= ''){
|
||||||
@ -1601,7 +1646,8 @@ if ($cname!= ''){
|
|||||||
}
|
}
|
||||||
if ($d!= ''){
|
if ($d!= ''){
|
||||||
|
|
||||||
$sql.=" and date(im.CreatedDate) = '".$d."' ";
|
//$sql.=" and date(im.CreatedDate) = '".$d."' ";
|
||||||
|
$sql.=" and date(im.MaterialRcvdDate) = '".$d."' ";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($cat!= ''){
|
if ($cat!= ''){
|
||||||
@ -1611,7 +1657,9 @@ if ($cname!= ''){
|
|||||||
}
|
}
|
||||||
if ($da!= ''){
|
if ($da!= ''){
|
||||||
$ddd= date("Y-m-d",strtotime($da));
|
$ddd= date("Y-m-d",strtotime($da));
|
||||||
$sql.=" and date(im.CreatedDate) = '".$ddd."' ";
|
|
||||||
|
//$sql.=" and date(im.CreatedDate) = '".$ddd."' ";
|
||||||
|
$sql.=" and date(im.MaterialRcvdDate) = '".$ddd."' ";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($po!= ''){
|
if ($po!= ''){
|
||||||
@ -1622,17 +1670,18 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$sql.="group by pono,material_name,category,supplier_name";
|
$sql.="group by pono,material_name,category,supplier_name,id.IGRItemNo";
|
||||||
// echo $m;
|
// echo $m;
|
||||||
// echo $sid;
|
// echo $sid;
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
}
|
}
|
||||||
|
|
||||||
function ireport_attachment($cname,$fa,$aa,$m,$frm,$t){
|
function ireport_attachment($cname,$fa,$aa,$m,$frm,$t){
|
||||||
|
|
||||||
|
|
||||||
$sql="select pono,potype,date_format(created_date,'%d-%m-%Y') as created_date,supplier_name,
|
$sql="select pono,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
|
sum(total) as total,file,ifile
|
||||||
from igr
|
from igr
|
||||||
where status != 'ST030'
|
where status != 'ST030'
|
||||||
@ -1648,12 +1697,14 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (created_date >= '".$fa."-04-01' and created_date <= '".$aa."-03-31')";
|
//$sql.=" and (created_date >= '".$fa."-04-01' and created_date <= '".$aa."-03-31')";
|
||||||
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($m!= ''){
|
if ($m!= ''){
|
||||||
|
|
||||||
$sql.="and monthname(created_date) = '".$m."'";
|
//$sql.="and monthname(created_date) = '".$m."'";
|
||||||
|
$sql.="and monthname(materialrcvddate) = '".$m."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1661,12 +1712,14 @@ if ($cname!= ''){
|
|||||||
$fromd= date("Y-m-d",strtotime($frm));
|
$fromd= date("Y-m-d",strtotime($frm));
|
||||||
$tod=date("Y-m-d",strtotime($t));
|
$tod=date("Y-m-d",strtotime($t));
|
||||||
|
|
||||||
$sql.="and date(created_date) >= '".$fromd."'
|
// $sql.="and date(created_date) >= '".$fromd."'
|
||||||
and date(created_date) <= '".$tod."'";
|
// and date(created_date) <= '".$tod."'";
|
||||||
|
$sql.="and date(materialrcvddate) >= '".$fromd."'
|
||||||
|
and date(materialrcvddate) <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql.="group by pono";
|
$sql.="group by pono,igrn";
|
||||||
// echo $m;
|
// echo $m;
|
||||||
// echo $sid;
|
// echo $sid;
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
@ -1677,12 +1730,16 @@ if ($cname!= ''){
|
|||||||
function ireport_year_wise($a,$b){
|
function ireport_year_wise($a,$b){
|
||||||
|
|
||||||
|
|
||||||
$sql="select dat as CreatedDate,sum(quantity)as quantity,sum(value) as value
|
// $sql="select dat as CreatedDate,sum(quantity)as quantity,sum(value) as value, materialrcvddate
|
||||||
from year_inward
|
// from year_inward
|
||||||
where status != 'ST030' and date(dat) >= '$a-04-01' and date(dat) <= '$b-03-31'
|
// where status != 'ST030' and date(dat) >= '$a-04-01' and date(dat) <= '$b-03-31'
|
||||||
group by month(CreatedDate)
|
// group by month(CreatedDate)
|
||||||
";
|
// ";
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
|
$sql="select dat as CreatedDate,materialrcvddate,sum(quantity)as quantity,sum(value) as value,materialrcvddate
|
||||||
|
from year_inward
|
||||||
|
where status != 'ST030' and date(materialrcvddate) >= '$a-04-01' and date(materialrcvddate) <= '$b-03-31'
|
||||||
|
group by month(materialrcvddate)";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
@ -1694,18 +1751,26 @@ group by month(CreatedDate)
|
|||||||
$month= date("m",strtotime($mont));
|
$month= date("m",strtotime($mont));
|
||||||
$year = date("Y",strtotime($mont));
|
$year = date("Y",strtotime($mont));
|
||||||
|
|
||||||
$sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total
|
// $sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total
|
||||||
|
// from year_inward
|
||||||
|
// where status != 'ST030' and month(dat)= ? and year(dat) = ?
|
||||||
|
// group by material_name,supplier_name";
|
||||||
|
$sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total,materialrcvddate
|
||||||
from year_inward
|
from year_inward
|
||||||
where status != 'ST030' and month(dat)= ? and year(dat) = ?
|
where status != 'ST030' and month(materialrcvddate)= ? and year(materialrcvddate) = ?
|
||||||
group by material_name,supplier_name";
|
group by material_name,supplier_name";
|
||||||
$query = $this->db->query($sql,array($month,$year));
|
$query = $this->db->query($sql,array($month,$year));
|
||||||
return $query->result();
|
return $query->result();
|
||||||
}
|
}
|
||||||
function ireport_year_wise_total($a,$b){
|
function ireport_year_wise_total($a,$b){
|
||||||
|
|
||||||
$sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total
|
// $sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total
|
||||||
|
// from year_inward
|
||||||
|
// where status != 'ST030' and date(dat) >= '$a-04-01' and date(dat) <= '$b-03-31'
|
||||||
|
// group by material_name,supplier_name";
|
||||||
|
$sql="select sid,mid,supplier_name,material_name,sum(quantity)as quantity,sum(value) as total,materialrcvddate
|
||||||
from year_inward
|
from year_inward
|
||||||
where status != 'ST030' and date(dat) >= '$a-04-01' and date(dat) <= '$b-03-31'
|
where status != 'ST030' and date(materialrcvddate) >= '$a-04-01' and date(materialrcvddate) <= '$b-03-31'
|
||||||
group by material_name,supplier_name";
|
group by material_name,supplier_name";
|
||||||
$query = $this->db->query($sql,array());
|
$query = $this->db->query($sql,array());
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -1752,7 +1817,7 @@ then ifnull(sum(id.QuantityAsPerInvoice * pl.Rate),0)
|
|||||||
+ ifnull(rt.Insurance,0)
|
+ ifnull(rt.Insurance,0)
|
||||||
|
|
||||||
end
|
end
|
||||||
as total
|
as total,im.MaterialRcvdDate
|
||||||
from T_IGR_Master im
|
from T_IGR_Master im
|
||||||
join T_PurchaseOrder_LineItem pl on pl.PONO = im.PONO
|
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_IGR_Details id on id.IGRNO = im.IGRNO and id.MaterialCode = pl.MaterialCode
|
||||||
@ -1774,12 +1839,14 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
//$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!= ''){
|
if ($m!= ''){
|
||||||
|
|
||||||
$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
//$sql.="and monthname(im.CreatedDate) = '".$m."'";
|
||||||
|
$sql.="and monthname(im.MaterialRcvdDate) = '".$m."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1787,8 +1854,10 @@ if ($cname!= ''){
|
|||||||
$fromd= date("Y-m-d",strtotime($frm));
|
$fromd= date("Y-m-d",strtotime($frm));
|
||||||
$tod=date("Y-m-d",strtotime($t));
|
$tod=date("Y-m-d",strtotime($t));
|
||||||
|
|
||||||
$sql.="and date(im.CreatedDate) >= '".$fromd."'
|
// $sql.="and date(im.CreatedDate) >= '".$fromd."'
|
||||||
and date(im.CreatedDate) <= '".$tod."'";
|
// and date(im.CreatedDate) <= '".$tod."'";
|
||||||
|
$sql.="and date(im.MaterialRcvdDate) >= '".$fromd."'
|
||||||
|
and date(im.MaterialRcvdDate) <= '".$tod."'";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.= "group by supplier_name";
|
$sql.= "group by supplier_name";
|
||||||
@ -1840,7 +1909,8 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
// $sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
||||||
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1858,7 +1928,8 @@ where status != 'ST030' and
|
|||||||
monthname(dat) = '".$m."' and sid = '".$sid."' and mid = '".$mid."' ";
|
monthname(dat) = '".$m."' and sid = '".$sid."' and mid = '".$mid."' ";
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
//$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
||||||
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.= "group by supplier_name,material_name";
|
$sql.= "group by supplier_name,material_name";
|
||||||
@ -1873,7 +1944,8 @@ from year_inward
|
|||||||
where status != 'ST030' and sid = '".$sid."' and mid = '".$mid."' ";
|
where status != 'ST030' and sid = '".$sid."' and mid = '".$mid."' ";
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
//$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
||||||
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.= "group by supplier_name,material_name";
|
$sql.= "group by supplier_name,material_name";
|
||||||
@ -1891,23 +1963,23 @@ if ($fa and $aa != ''){
|
|||||||
$fa=substr($ab,0,-5);
|
$fa=substr($ab,0,-5);
|
||||||
$aa=substr($ab,5,5);
|
$aa=substr($ab,5,5);
|
||||||
$sql="SELECT year.sid as sid,year.mid as mid,year.supplier_name as supplier_name,year.material_name as material_name,year.quantity as quantity,year.total as total,month.mquantity as mquantity,month.mtotal as mtotal,today.tquantity as tquantity,today.ttotal as ttotal
|
$sql="SELECT year.sid as sid,year.mid as mid,year.supplier_name as supplier_name,year.material_name as material_name,year.quantity as quantity,year.total as total,month.mquantity as mquantity,month.mtotal as mtotal,today.tquantity as tquantity,today.ttotal as ttotal
|
||||||
FROM (SELECT sid,mid,supplier_name,material_name,sum(Quantity) as quantity,sum(value) as total
|
FROM (SELECT sid,mid,supplier_name,material_name,sum(Quantity) as quantity,sum(value) as total,materialrcvddate
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
(dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')
|
(materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')
|
||||||
group by supplier_name,material_name
|
group by supplier_name,material_name
|
||||||
) as year left join
|
) as year left join
|
||||||
(SELECT sid,mid,supplier_name,material_name,sum(Quantity) as mquantity,sum(value) as mtotal
|
(SELECT sid,mid,supplier_name,material_name,sum(Quantity) as mquantity,sum(value) as mtotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
month(dat) = month(current_date())
|
month(materialrcvddate) = month(current_date())
|
||||||
group by supplier_name,material_name
|
group by supplier_name,material_name
|
||||||
) as month on month.supplier_name=year.supplier_name and month.material_name=year.material_name
|
) as month on month.supplier_name=year.supplier_name and month.material_name=year.material_name
|
||||||
left join
|
left join
|
||||||
(SELECT sid,mid,supplier_name,material_name,sum(Quantity) as tquantity,sum(value) as ttotal
|
(SELECT sid,mid,supplier_name,material_name,sum(Quantity) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
date(dat) = current_date()
|
date(materialrcvddate) = current_date()
|
||||||
group by supplier_name,material_name
|
group by supplier_name,material_name
|
||||||
) as today on today.supplier_name=month.supplier_name and today.material_name=month.material_name
|
) as today on today.supplier_name=month.supplier_name and today.material_name=month.material_name
|
||||||
group by supplier_name,material_name
|
group by supplier_name,material_name
|
||||||
@ -1920,7 +1992,7 @@ group by supplier_name,material_name
|
|||||||
$sql="SELECT sid,mid,supplier_name,material_name,sum(Quantity) as tquantity,sum(value) as ttotal
|
$sql="SELECT sid,mid,supplier_name,material_name,sum(Quantity) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
month(dat) = month(current_date()) and sid = '".$sup."' and mid = '".$mat."'
|
month(materialrcvddate) = month(current_date()) and sid = '".$sup."' and mid = '".$mat."'
|
||||||
group by supplier_name,material_name";
|
group by supplier_name,material_name";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -1937,7 +2009,7 @@ group by supplier_name,material_name";
|
|||||||
$sql="SELECT sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
$sql="SELECT sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
(dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')
|
(materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')
|
||||||
and sid = '".$sup."' and mid= '".$mat."'
|
and sid = '".$sup."' and mid= '".$mat."'
|
||||||
group by supplier_name,material_name
|
group by supplier_name,material_name
|
||||||
";
|
";
|
||||||
@ -1949,7 +2021,7 @@ group by supplier_name,material_name
|
|||||||
$sql="SELECT sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
$sql="SELECT sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
date(dat) = current_date() and sid = '".$sup."' and mid = '".$mat."'
|
date(materialrcvddate) = current_date() and sid = '".$sup."' and mid = '".$mat."'
|
||||||
group by supplier_name,material_name";
|
group by supplier_name,material_name";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -1967,20 +2039,20 @@ group by supplier_name,material_name";
|
|||||||
FROM (SELECT category,sum(Quantity) as quantity,sum(value) as total
|
FROM (SELECT category,sum(Quantity) as quantity,sum(value) as total
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
(dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')
|
(materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')
|
||||||
group by category
|
group by category
|
||||||
) as year left join
|
) as year left join
|
||||||
(SELECT category,sum(Quantity) as mquantity,sum(value) as mtotal
|
(SELECT category,sum(Quantity) as mquantity,sum(value) as mtotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
month(dat) = month(current_date())
|
month(materialrcvddate) = month(current_date())
|
||||||
group by category
|
group by category
|
||||||
) as month on month.category=year.category
|
) as month on month.category=year.category
|
||||||
left join
|
left join
|
||||||
(SELECT category,sum(Quantity) as tquantity,sum(value) as ttotal
|
(SELECT category,sum(Quantity) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
date(dat) = current_date()
|
date(materialrcvddate) = current_date()
|
||||||
group by category
|
group by category
|
||||||
) as today on today.category=month.category
|
) as today on today.category=month.category
|
||||||
group by category ";
|
group by category ";
|
||||||
@ -1999,7 +2071,7 @@ group by category ";
|
|||||||
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
(dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')
|
(materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')
|
||||||
and category = '".$cat."'
|
and category = '".$cat."'
|
||||||
group by supplier_name,material_name";
|
group by supplier_name,material_name";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
@ -2011,7 +2083,7 @@ group by supplier_name,material_name";
|
|||||||
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
month(dat) = month(current_date()) and category = '".$cat."'
|
month(materialrcvddate) = month(current_date()) and category = '".$cat."'
|
||||||
group by supplier_name,material_name";
|
group by supplier_name,material_name";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -2021,7 +2093,7 @@ group by supplier_name,material_name";
|
|||||||
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
$sql="SELECT category,sid,mid,supplier_name,material_name,IF(Quantity IS NULL or Quantity = '', 0, sum(Quantity)) as tquantity,sum(value) as ttotal
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
date(dat) = current_date() and category = '".$cat."'
|
date(materialrcvddate) = current_date() and category = '".$cat."'
|
||||||
group by supplier_name,material_name";
|
group by supplier_name,material_name";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
@ -2070,7 +2142,8 @@ if ($cname!= ''){
|
|||||||
|
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
//$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
||||||
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2087,10 +2160,10 @@ sum(Quantity) as quantity,
|
|||||||
sum(value) as total
|
sum(value) as total
|
||||||
FROM year_inward
|
FROM year_inward
|
||||||
where status != 'ST030' and
|
where status != 'ST030' and
|
||||||
monthname(dat) = '".$m."' and category = '".$cat."' ";
|
monthname(materialrcvddate) = '".$m."' and category = '".$cat."' ";
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.= "group by category,supplier_name,material_name";
|
$sql.= "group by category,supplier_name,material_name";
|
||||||
@ -2108,7 +2181,7 @@ where status != 'ST030' and
|
|||||||
category = '".$cat."' ";
|
category = '".$cat."' ";
|
||||||
if ($fa and $aa != ''){
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
$sql.=" and (dat >= '".$fa."-04-01' and dat <= '".$aa."-03-31')";
|
$sql.=" and (materialrcvddate >= '".$fa."-04-01' and materialrcvddate <= '".$aa."-03-31')";
|
||||||
|
|
||||||
}
|
}
|
||||||
$sql.= "group by category,supplier_name,material_name";
|
$sql.= "group by category,supplier_name,material_name";
|
||||||
@ -2335,7 +2408,7 @@ function getDailyOpeningAmt($yesterday){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function departmentwise($sid='',$d='',$c='')
|
function departmentwise($sid,$d,$c='',$fy,$ty)
|
||||||
{
|
{
|
||||||
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,
|
$sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,
|
||||||
ifnull(case
|
ifnull(case
|
||||||
@ -2356,10 +2429,20 @@ function getDailyOpeningAmt($yesterday){
|
|||||||
end, '-') as receiptname,
|
end, '-') as receiptname,
|
||||||
date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.document,tinc.towhom,.tinc.description, ac.name FROM
|
date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.document,tinc.towhom,.tinc.description, ac.name FROM
|
||||||
t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code
|
t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code
|
||||||
WHERE account_code = '$sid' and monthname(date)='$d' and tinc.type='$c'";
|
WHERE tinc.type='$c'";
|
||||||
|
if ($sid != ''){
|
||||||
|
$sql.="and account_code = '".$sid."'";
|
||||||
|
}
|
||||||
|
if ($d != ''){
|
||||||
|
$sql.="and monthname(date)='".$d."'";
|
||||||
|
}
|
||||||
|
if ($fy and $ty != ''){
|
||||||
|
|
||||||
|
$sql.=" and (tinc.date >= '".$fy."-04-01' and tinc.date <= '".$ty."-03-31')";
|
||||||
|
|
||||||
|
}
|
||||||
|
// -- WHERE account_code = '$sid' and monthname(date)='$d' and tinc.type='$c'";
|
||||||
$query = $this->db->query($sql);
|
$query = $this->db->query($sql);
|
||||||
//print_r($this->db->last_query());
|
|
||||||
//echo $sql;
|
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2580,5 +2663,118 @@ function INRSymbol()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function report_cumulative_cashbook(){
|
||||||
|
|
||||||
|
if (date('m') >= 4) {
|
||||||
|
$yearl = date('Y').'-'.(date('Y')+1);
|
||||||
|
} else {
|
||||||
|
$yearl = (date('Y')-1).'-'.date('Y');
|
||||||
|
}
|
||||||
|
$ab=$yearl;
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
|
||||||
|
|
||||||
|
$sql = "SELECT year.name as name,year.yearexpense as yexp,year.yearincome as yinc,month.monthexpense as mexp,month.monthincome as minc,today.todayexpense as texp,today.todayincome as tinc
|
||||||
|
FROM (select ac1.name, ifnull(case
|
||||||
|
when tinc1.type = 'PAYMENT'
|
||||||
|
then sum(tinc1.total)
|
||||||
|
end,'0') as yearexpense,
|
||||||
|
ifnull(case
|
||||||
|
when tinc1.type = 'RECEIPT'
|
||||||
|
then sum(tinc1.total)
|
||||||
|
end, '0') as yearincome
|
||||||
|
FROM t_income_expense tinc1
|
||||||
|
join t_accountcode ac1 on ac1.code = tinc1.account_code
|
||||||
|
WHERE (tinc1.date >= '".$fa."-04-01' and tinc1.date <= '".$aa."-03-31')
|
||||||
|
group by ac1.name ) as year
|
||||||
|
left join
|
||||||
|
(select ac2.name ,ifnull(case
|
||||||
|
when tinc2.type = 'PAYMENT'
|
||||||
|
then sum(tinc2.total)
|
||||||
|
end,'0') as monthexpense,
|
||||||
|
ifnull(case
|
||||||
|
when tinc2.type = 'RECEIPT'
|
||||||
|
then sum(tinc2.total)
|
||||||
|
end, '0') as monthincome
|
||||||
|
FROM t_income_expense tinc2
|
||||||
|
join t_accountcode ac2 on ac2.code = tinc2.account_code
|
||||||
|
where month(tinc2.date) = month(current_date())
|
||||||
|
group by ac2.name) as month on month.name = year.name
|
||||||
|
left join
|
||||||
|
(select ac3.name ,ifnull(case
|
||||||
|
when tinc3.type = 'PAYMENT'
|
||||||
|
then sum(tinc3.total)
|
||||||
|
end,'0') as todayexpense,
|
||||||
|
ifnull(case
|
||||||
|
when tinc3.type = 'RECEIPT'
|
||||||
|
then sum(tinc3.total)
|
||||||
|
end, '0') as todayincome
|
||||||
|
FROM t_income_expense tinc3
|
||||||
|
join t_accountcode ac3 on ac3.code = tinc3.account_code
|
||||||
|
where date(tinc3.date) = current_date()
|
||||||
|
group by ac3.name ) as today on today.name=month.name
|
||||||
|
group by name ";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
}
|
||||||
|
|
||||||
|
function report_cumulative_month_cashbook($cname,$yr1,$yr2){
|
||||||
|
|
||||||
|
if ($yr1 == '' && $yr2 == ''){
|
||||||
|
if (date('m') >= 4) {
|
||||||
|
$yearl = date('Y').'-'.(date('Y')+1);
|
||||||
|
} else {
|
||||||
|
$yearl = (date('Y')-1).'-'.date('Y');
|
||||||
|
}
|
||||||
|
$ab=$yearl;
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$fa=$yr1;
|
||||||
|
$aa=$yr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql = "select tinc.account_code,ac.name,tinc.type,
|
||||||
|
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS AprilExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 4, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS AprilIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 5, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS MayExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 5, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS MayIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 6, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JuneExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 6, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JuneIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 7, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JulyExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 7, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JulyIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 8, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS AugustExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 8, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS AugustIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 9, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS SepExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 9, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS SepIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 10, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS OctExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 10, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS OctIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 11, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS NovExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 11, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS NovIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 12, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS DecExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 12, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS DecIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 1, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS JanExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 1, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS JanIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 2, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS FebExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 2, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS FebIncome,
|
||||||
|
SUM(IF(month(tinc.date) = 3, IF(tinc.type = 'PAYMENT', tinc.total, 0), 0)) AS MarExpense,
|
||||||
|
SUM(IF(month(tinc.date) = 3, IF(tinc.type = 'RECEIPT', tinc.total, 0), 0)) AS MarIncome,
|
||||||
|
SUM(IF(tinc.type = 'RECEIPT', tinc.total, 0)) AS receiptoverall,
|
||||||
|
SUM(IF(tinc.type = 'PAYMENT', tinc.total, 0)) AS paymentoverall,
|
||||||
|
SUM(tinc.total) as overalltotal
|
||||||
|
from t_income_expense tinc
|
||||||
|
join t_accountcode ac on ac.code = tinc.account_code
|
||||||
|
where (tinc.date >='".$fa."-04-01' and tinc.date <= '".$aa."-03-31')";
|
||||||
|
if ($cname!= ''){
|
||||||
|
$sql.="and ac.name = '".$cname."'";
|
||||||
|
}
|
||||||
|
$sql.= " group by tinc.account_code";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -199,4 +199,18 @@ class inwardgateregister_model extends CI_Model
|
|||||||
$result = $query->result();
|
$result = $query->result();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To Update IGR master details for material recieved data and delivery ch date
|
||||||
|
* @param number $IGRNo : This is igr no
|
||||||
|
* @return array $igrarr : Igr Array
|
||||||
|
*/
|
||||||
|
function updateigr($igrarr,$IGRNo){
|
||||||
|
|
||||||
|
//$this->db->where('PONO',$PONO);
|
||||||
|
$this->db->where('IGRNO',$IGRNo);
|
||||||
|
$this->db->update('T_IGR_Master',$igrarr);
|
||||||
|
$r = $this->db->affected_rows();
|
||||||
|
return $r;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mmr))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -114,12 +106,6 @@ if(!empty($mmr))
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-2 col-md-offset-0"><br>
|
<div class="col-md-2 col-md-offset-0"><br>
|
||||||
<input type="submit" class="btn btn-success" name="btn_submit" style="padding:10px;"
|
<input type="submit" class="btn btn-success" name="btn_submit" style="padding:10px;"
|
||||||
value="View Report">
|
value="View Report">
|
||||||
@ -143,7 +129,7 @@ if(!empty($mmr))
|
|||||||
<th>Material Code</th>
|
<th>Material Code</th>
|
||||||
<th>Material Name</th>
|
<th>Material Name</th>
|
||||||
<th>UOM</th>
|
<th>UOM</th>
|
||||||
<th>Average Rate ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Average Rate (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -210,6 +196,9 @@ if(!empty($mmr))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -227,7 +216,28 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2) );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($rel_po))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -192,7 +185,7 @@ if(!empty($rel_po))
|
|||||||
<th>PO Date</th>
|
<th>PO Date</th>
|
||||||
<th>Released Date</th>
|
<th>Released Date</th>
|
||||||
<th>Requested Department</th>
|
<th>Requested Department</th>
|
||||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
<th>Total Order Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -257,6 +250,9 @@ if(!empty($rel_po))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -274,7 +270,27 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderValue = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderValue.toFixed(2) );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -196,8 +189,9 @@ if(!empty($mms))
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">PO No</th>
|
<th style="text-align:center">PO No</th>
|
||||||
<th style="text-align:center">Date</th>
|
<th style="text-align:center">Date</th>
|
||||||
|
<th style="text-align:center">Material Received Date</th>
|
||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total (₹)</th>
|
||||||
<th style="text-align:center">Attachments</th>
|
<th style="text-align:center">Attachments</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -216,6 +210,7 @@ if(!empty($mms))
|
|||||||
|
|
||||||
</span></td>
|
</span></td>
|
||||||
<td style="text-align:center"><span><?php echo $rel->created_date;?></span></td>
|
<td style="text-align:center"><span><?php echo $rel->created_date;?></span></td>
|
||||||
|
<td style="text-align:center"><span><?php echo $rel->materialrcvddate;?></span></td>
|
||||||
<td><span>
|
<td><span>
|
||||||
<a href="<?= base_url() ?>report/ilink_purchase?po=<?php echo $rel->pono;?>"><?php echo $rel->supplier_name;?> </a>
|
<a href="<?= base_url() ?>report/ilink_purchase?po=<?php echo $rel->pono;?>"><?php echo $rel->supplier_name;?> </a>
|
||||||
</span></td>
|
</span></td>
|
||||||
@ -248,6 +243,7 @@ if(!empty($mms))
|
|||||||
<tfoot width="100%">
|
<tfoot width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:center;"><strong>Total</strong></td>
|
<td style="text-align:center;"><strong>Total</strong></td>
|
||||||
|
<td><strong> </strong></td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
<td class="amount" style="text-align:right">
|
<td class="amount" style="text-align:right">
|
||||||
@ -289,6 +285,7 @@ if(!empty($mms))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.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.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -296,7 +293,13 @@ if(!empty($mms))
|
|||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -314,7 +317,30 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
@ -366,6 +392,3 @@ $(document).ready(function(){
|
|||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -6,7 +6,6 @@
|
|||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -716,7 +715,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
//var newText = $(this).find('span').text();
|
||||||
|
// 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( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalQTY );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 10, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 10 ).footer() ).html( TotalVALUE.toFixed(2) );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -58,7 +49,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -167,6 +158,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -184,7 +178,39 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -59,7 +52,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -178,6 +171,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -195,7 +191,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
@ -207,8 +234,4 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -58,7 +50,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -168,6 +160,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -185,7 +180,39 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -58,7 +53,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -168,6 +163,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -185,7 +183,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -59,7 +59,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -179,6 +179,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -196,7 +199,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -60,7 +52,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -170,6 +162,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -187,7 +182,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -106,8 +106,8 @@ if(!empty($ccrpt))
|
|||||||
<th>Department</th>
|
<th>Department</th>
|
||||||
<th>Budget Type</th>
|
<th>Budget Type</th>
|
||||||
<th>Budget Year</th>
|
<th>Budget Year</th>
|
||||||
<th>Utilized Amount ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Utilized Amount (₹)</th>
|
||||||
<th>Balance Amount ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Balance Amount (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -161,6 +161,9 @@ if(!empty($ccrpt))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +48,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -160,6 +152,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -177,7 +172,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -146,6 +137,7 @@ if(!empty($mms))
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<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/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/pdfmake.min.js"></script>
|
||||||
@ -160,6 +152,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -177,7 +172,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
@ -191,6 +216,3 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,9 +48,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -170,6 +160,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -187,7 +180,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -166,6 +157,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -183,7 +177,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,9 +48,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -167,6 +157,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -184,7 +177,39 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,8 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -177,6 +167,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -194,7 +187,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -74,8 +66,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -183,6 +174,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -200,7 +194,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -30,8 +22,8 @@ if(!empty($mms))
|
|||||||
border-color: #5d0411;
|
border-color: #5d0411;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
|
|
||||||
@ -53,7 +45,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -148,6 +140,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -165,7 +160,36 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,8 +42,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -146,6 +136,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -163,7 +156,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($open_po))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -192,7 +184,7 @@ if(!empty($open_po))
|
|||||||
<th>PO Date</th>
|
<th>PO Date</th>
|
||||||
<th>Approved Date</th>
|
<th>Approved Date</th>
|
||||||
<th>Requested Department</th>
|
<th>Requested Department</th>
|
||||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
<th>Total Order Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -258,6 +250,9 @@ if(!empty($open_po))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -275,7 +270,27 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderValue = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderValue.toFixed(2) );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -399,6 +392,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -416,7 +412,45 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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-9]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderedQTY = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderedQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalRcvdQTY = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalRcvdQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalPendingQTY = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalPendingQTY.toFixed().bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -242,17 +242,17 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">UOM</th>
|
<th style="text-align:center">UOM</th>
|
||||||
<th style="text-align:center">Rate (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Rate (₹)</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Exchange Rate</th>
|
<th style="text-align:center">Exchange Rate</th>
|
||||||
<th style="text-align:center">SGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">SGST (₹)</th>
|
||||||
<th style="text-align:center">CGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">CGST (₹)</th>
|
||||||
<th style="text-align:center">IGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">IGST (₹)</th>
|
||||||
<th style="text-align:center">Discount (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Discount (₹)</th>
|
||||||
<th style="text-align:center">Freight (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Freight (₹)</th>
|
||||||
<th style="text-align:center">Package (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Package (₹)</th>
|
||||||
<th style="text-align:center">Insurance (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Insurance (₹)</th>
|
||||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -500,6 +500,9 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -517,7 +520,117 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalExRATE = api
|
||||||
|
.column( 8, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 8 ).footer() ).html( TotalExRATE.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalSGST = api
|
||||||
|
.column( 9, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 9 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalCGST = api
|
||||||
|
.column( 10, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 10 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalIGST = api
|
||||||
|
.column( 11, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 11 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalDISCOUNT = api
|
||||||
|
.column( 12, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 12 ).footer() ).html( TotalDISCOUNT.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalFRIGEHT = api
|
||||||
|
.column( 13, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 13 ).footer() ).html( TotalFRIGEHT.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalPACKAGE = api
|
||||||
|
.column( 14, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 14 ).footer() ).html( TotalPACKAGE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalINSURANCES = api
|
||||||
|
.column( 15, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 15 ).footer() ).html( TotalINSURANCES.toFixed(2).bold() );
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 16, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 16 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,22 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#client_name").select2();
|
$("#client_name").select2();
|
||||||
$("#item_name").select2();
|
$("#item_name").select2();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -225,12 +215,8 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<span style="color:red;">*Insurance field not included </span>
|
<span style="color:red;">*Insurance field not included </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class = "table-responsive">
|
<div class = "table-responsive">
|
||||||
<table id="cc" class="table table-bordered" cellspacing="0" style="font-size:12px !important;">
|
<table id="cc" class="table table-bordered" cellspacing="0" style="font-size:12px !important;">
|
||||||
@ -239,24 +225,25 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<th>PO No</th>
|
<th>PO No</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
|
<th>Materialrcvd Date</th>
|
||||||
<th>Material Name</th>
|
<th>Material Name</th>
|
||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
<th>Supplier Name</th>
|
<th>Supplier Name</th>
|
||||||
<th>Qty</th>
|
<th>Qty</th>
|
||||||
<th>UOM</th>
|
<th>UOM</th>
|
||||||
<th>Rate (<i class="fa fa-rupee "></i>)</th>
|
<th>Rate (₹)</th>
|
||||||
<th>Value (<i class="fa fa-rupee " ></i>)</th>
|
<th>Value (₹)</th>
|
||||||
<th>Exchange Rate</th>
|
<th>Exchange Rate</th>
|
||||||
<th>SGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>SGST (₹)</th>
|
||||||
<th>CGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>CGST (₹)</th>
|
||||||
<th>IGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>IGST (₹)</th>
|
||||||
<th>Discount (<i class="fa fa-rupee " ></i>)</th>
|
<th>Discount (₹)</th>
|
||||||
<th>Freight (<i class="fa fa-rupee " ></i>)</th>
|
<th>Freight (₹)</th>
|
||||||
<th>Package (<i class="fa fa-rupee " ></i>)</th>
|
<th>Package (₹)</th>
|
||||||
<th>Total (<i class="fa fa-rupee "></i>)</th>
|
<th>Total (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if(!empty($purchase)){
|
<?php if(!empty($purchase)){
|
||||||
$tot_qty = 0;
|
$tot_qty = 0;
|
||||||
@ -281,6 +268,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
</span></td>
|
</span></td>
|
||||||
<td style="text-align:center"><span><?php echo $rel->created_date;?></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: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->material_name;?></span></td>
|
<td><span><?php echo $rel->material_name;?></span></td>
|
||||||
<td><span><?php echo $rel->category;?></span></td>
|
<td><span><?php echo $rel->category;?></span></td>
|
||||||
<td><span><?php echo $rel->supplier_name;?></span></td>
|
<td><span><?php echo $rel->supplier_name;?></span></td>
|
||||||
@ -343,6 +331,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
|
<td><strong> </strong></td>
|
||||||
<td><strong> </strong></td>
|
<td><strong> </strong></td>
|
||||||
|
|
||||||
<td class="amount" style="text-align:right"><strong>
|
<td class="amount" style="text-align:right"><strong>
|
||||||
@ -354,24 +343,9 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<td class="amount"><strong>
|
<td><strong> </strong></td>
|
||||||
<?php
|
<td><strong> </strong></td>
|
||||||
{
|
|
||||||
//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">
|
<td class="amount" style="text-align:right">
|
||||||
<strong>
|
<strong>
|
||||||
<?php
|
<?php
|
||||||
@ -492,6 +466,7 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.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.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -499,19 +474,18 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
|
"aaSorting": [[ 3, "asc" ]],
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
orderCellsTop: true,
|
orderCellsTop: true,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
||||||
{
|
{
|
||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
footer: 'true',
|
footer: 'true',
|
||||||
@ -524,18 +498,114 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalQTY );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 10, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 10 ).footer() ).html( TotalVALUE.toFixed(2) );
|
||||||
|
|
||||||
|
TotalExRATE = api
|
||||||
|
.column( 11, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 11 ).footer() ).html( TotalExRATE.toFixed(2) );
|
||||||
|
|
||||||
|
TotalSGST = api
|
||||||
|
.column( 12, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 12 ).footer() ).html( TotalSGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalCGST = api
|
||||||
|
.column( 13, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 13 ).footer() ).html( TotalCGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalIGST = api
|
||||||
|
.column( 14, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 14 ).footer() ).html( TotalIGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalDISCOUNT = api
|
||||||
|
.column( 15, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 15 ).footer() ).html( TotalDISCOUNT.toFixed(2) );
|
||||||
|
|
||||||
|
TotalFRIGEHT = api
|
||||||
|
.column( 16, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 16 ).footer() ).html( TotalFRIGEHT.toFixed(2) );
|
||||||
|
|
||||||
|
TotalPACKAGE = api
|
||||||
|
.column( 17, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 17 ).footer() ).html( TotalPACKAGE.toFixed(2) );
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 18, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 18 ).footer() ).html( FinalTotal.toFixed(2) );
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
} ); //on ready function Closed
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
/** jquery on ready for DataPicker. */
|
||||||
$( function() {
|
$( function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
from = $( "#min-date" )
|
from = $( "#min-date" )
|
||||||
@ -574,15 +644,4 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
$(document).ready(function(){
|
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,11 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -198,7 +193,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -310,6 +305,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -327,7 +325,46 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -194,7 +188,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -306,6 +300,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -323,7 +320,46 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($Total))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -163,6 +155,9 @@ if(!empty($Total))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -96,7 +89,7 @@ if(!empty($mms))
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -213,6 +206,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -233,7 +229,37 @@ $(document).ready(function() {
|
|||||||
],
|
],
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ type: 'date-range', targets: 0 }
|
{ type: 'date-range', targets: 0 }
|
||||||
]
|
],
|
||||||
|
"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 );
|
||||||
|
console.log(parseFloat(TotalVALUE));
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -94,7 +87,7 @@ if(!empty($mms))
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -110,7 +103,7 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:center"><span>
|
<td style="text-align:center"><span>
|
||||||
<?php
|
<?php
|
||||||
$da = strtotime($rel->CreatedDate);
|
$da = strtotime($rel->materialrcvddate);
|
||||||
$new = date('M-y', $da);
|
$new = date('M-y', $da);
|
||||||
$pass = date('Y-m-d',$da);
|
$pass = date('Y-m-d',$da);
|
||||||
$ab=$this->input->post('financialyear');
|
$ab=$this->input->post('financialyear');
|
||||||
@ -210,6 +203,9 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -230,7 +226,37 @@ $(document).ready(function() {
|
|||||||
],
|
],
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ type: 'date-range', targets: 0 }
|
{ type: 'date-range', targets: 0 }
|
||||||
]
|
],
|
||||||
|
"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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,7 +44,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -148,6 +141,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -165,7 +161,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,7 +44,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -148,6 +141,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -165,7 +161,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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( 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(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -188,6 +188,11 @@ if(!empty($INRSYMBOL))
|
|||||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#MRC").datepicker({
|
||||||
|
// minDate : 'now',
|
||||||
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
var SelectedMaterialList = {
|
var SelectedMaterialList = {
|
||||||
Mat: []
|
Mat: []
|
||||||
@ -3079,6 +3084,12 @@ function populateValueMainFormForDeleteItem(rowid)
|
|||||||
$data = array('name' => 'Date1','value' => set_value('Date1',$CurrentDate),'id'=>'Date1', 'class' => 'form-control num' ,'required' => 'true');
|
$data = array('name' => 'Date1','value' => set_value('Date1',$CurrentDate),'id'=>'Date1', 'class' => 'form-control num' ,'required' => 'true');
|
||||||
echo form_input($data);?>
|
echo form_input($data);?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4 pad"> <strong>Material Received Date</strong>
|
||||||
|
<?php
|
||||||
|
$data = array('name' => 'MRC','value' => set_value('MRC',$CurrentDate),'id'=>'MRC', 'class' => 'form-control num' ,'required' => 'true');
|
||||||
|
echo form_input($data);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
<!-- <div class="col-md-4 pad"><strong>Advise Quantity</strong>
|
<!-- <div class="col-md-4 pad"><strong>Advise Quantity</strong>
|
||||||
<input type="text" name="AQuantity" id="AQuantity" maxlength="12" class="form-control" value="" required>
|
<input type="text" name="AQuantity" id="AQuantity" maxlength="12" class="form-control" value="" required>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|||||||
297
application/views/cashbook_cumulative_month_report.php
Executable file
297
application/views/cashbook_cumulative_month_report.php
Executable file
@ -0,0 +1,297 @@
|
|||||||
|
<?php
|
||||||
|
$tiapr=0.00;$timay=0.00;$tijun=0.00;$tijul=0.00;$tiaug=0.00;$tisep=0.00;$tioct=0.00;$tinov=0.00;$tidec=0.00;
|
||||||
|
$teapr=0.00;$temay=0.00;$tejun=0.00;$tejul=0.00;$teaug=0.00;$tesep=0.00;$teoct=0.00;$tenov=0.00;$tedec=0.00;
|
||||||
|
$tinjan=0.00;$tinfeb=0.00;$tinmar=0.00;$rowwiseincome = 0.00;
|
||||||
|
$texjan=0.00;$texfeb=0.00;$texmar=0.00;$rowwiseexpense = 0.00;
|
||||||
|
if (date('m') >= 4) {
|
||||||
|
$yearl = date('Y').'-'.(date('Y')+1);
|
||||||
|
} else {
|
||||||
|
$yearl = (date('Y')-1).'-'.date('Y');
|
||||||
|
}
|
||||||
|
$ab=$yearl;
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<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">
|
||||||
|
<div class="row" style="min-height: 600px;">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="box box-info">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<center><h3 class="box-title"><p style="color:#5d0411"><b>Cashbook - Cumulative Monthwise Report
|
||||||
|
<!-- ( <?php echo $fa.'-'.$aa; ?> ) -->
|
||||||
|
<?php
|
||||||
|
if($this->input->post('client_name')){
|
||||||
|
$cl=$this->input->post('client_name');
|
||||||
|
echo '('.$cl.')';
|
||||||
|
}
|
||||||
|
if($this->input->post('financialyear')){
|
||||||
|
$ab=$this->input->post('financialyear');
|
||||||
|
echo '('.$ab.')';
|
||||||
|
}
|
||||||
|
?></b></p></h3></center>
|
||||||
|
</div>
|
||||||
|
<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 'Account Name'; ?>
|
||||||
|
</label>
|
||||||
|
<div class="input-group">
|
||||||
|
<select class="form-control" id="client_name" name="client_name">
|
||||||
|
<option value="">Select Account Name</option>
|
||||||
|
<?php
|
||||||
|
foreach($accountname as $item):
|
||||||
|
|
||||||
|
{?>
|
||||||
|
|
||||||
|
<option value="<?php echo $item->name;?>"><?php echo $item->name ; ?></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"></div>
|
||||||
|
<!-- <div class="col-md-2">
|
||||||
|
<br>
|
||||||
|
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab" checked> Recepit</label>
|
||||||
|
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" > Payment</label>
|
||||||
|
</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 class = "table-responsive">
|
||||||
|
<table class="table table-bordered table-hover table-responsive" id="ccmonthwise" style="font-size:14px;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align:center" rowspan="2">Account Name</th>
|
||||||
|
<th style="text-align:center" colspan="2">April</th>
|
||||||
|
<th style="text-align:center" colspan="2">May</th>
|
||||||
|
<th style="text-align:center" colspan="2">June</th>
|
||||||
|
<th style="text-align:center" colspan="2">July</th>
|
||||||
|
<th style="text-align:center" colspan="2">August</th>
|
||||||
|
<th style="text-align:center" colspan="2">September</th>
|
||||||
|
<th style="text-align:center" colspan="2">October</th>
|
||||||
|
<th style="text-align:center" colspan="2">November</th>
|
||||||
|
<th style="text-align:center" colspan="2">December</th>
|
||||||
|
<th style="text-align:center" colspan="2">January</th>
|
||||||
|
<th style="text-align:center" colspan="2">February</th>
|
||||||
|
<th style="text-align:center" colspan="2">March</th>
|
||||||
|
<th style="text-align:center" colspan="2">Total</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(!empty($datas)){
|
||||||
|
foreach($datas as $d)
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $d->name; ?></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiapr= $tiapr + number_format($d->AprilIncome,2,'.',''); echo number_format($d->AprilIncome,2,'.',''); ?></span></a></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teapr= $teapr + number_format($d->AprilExpense,2,'.',''); echo number_format($d->AprilExpense,2,'.',''); ?></span></a></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $timay= $timay + number_format($d->MayIncome,2,'.',''); echo number_format($d->MayIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $temay= $temay + number_format($d->MayExpense,2,'.',''); echo number_format($d->MayExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijun= $tijun + number_format($d->JuneIncome,2,'.',''); echo number_format($d->JuneIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejun= $tejun + number_format($d->JuneExpense,2,'.',''); echo number_format($d->JuneExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tijul= $tijul + number_format($d->JulyIncome,2,'.',''); echo number_format($d->JulyIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tejul= $tejul + number_format($d->JulyExpense,2,'.',''); echo number_format($d->JulyExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tiaug= $tiaug + number_format($d->AugustIncome,2,'.',''); echo number_format($d->AugustIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teaug= $teaug + number_format($d->AugustExpense,2,'.',''); echo number_format($d->AugustExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tisep= $tisep + number_format($d->SepIncome,2,'.',''); echo number_format($d->SepIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tesep= $tesep + number_format($d->SepExpense,2,'.',''); echo number_format($d->SepExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tioct= $tioct + number_format($d->OctIncome,2,'.',''); echo number_format($d->OctIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $teoct= $teoct + number_format($d->OctExpense,2,'.',''); echo number_format($d->OctExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinov= $tinov + number_format($d->NovIncome,2,'.',''); echo number_format($d->NovIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tenov= $tenov + number_format($d->NovExpense,2,'.',''); echo number_format($d->NovExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tidec= $tidec + number_format($d->DecIncome,2,'.',''); echo number_format($d->DecIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tedec= $tedec + number_format($d->DecExpense,2,'.',''); echo number_format($d->DecExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinjan= $tinjan + number_format($d->JanIncome,2,'.',''); echo number_format($d->JanIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texjan= $texjan + number_format($d->JanExpense,2,'.',''); echo number_format($d->JanExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinfeb= $tinfeb + number_format($d->FebIncome,2,'.',''); echo number_format($d->FebIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texfeb= $texfeb + number_format($d->FebExpense,2,'.',''); echo number_format($d->FebExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $tinmar= $tinmar + number_format($d->MarIncome,2,'.',''); echo number_format($d->MarIncome,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $texmar= $texmar + number_format($d->MarExpense,2,'.',''); echo number_format($d->MarExpense,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseincome = $rowwiseincome + number_format($d->receiptoverall,2,'.',''); echo number_format($d->receiptoverall,2,'.',''); ?></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php $rowwiseexpense = $rowwiseexpense + number_format($d->paymentoverall,2,'.',''); echo number_format($d->paymentoverall,2,'.',''); ?></span></td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td><b><?php echo "TOTAL" ?></b></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiapr,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teapr,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($timay,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($temay,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijun,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejun,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tijul,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tejul,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tiaug,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teaug,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tisep,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tesep,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tioct,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($teoct,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinov,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tenov,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tidec,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tedec,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinjan,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texjan,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinfeb,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texfeb,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($tinmar,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($texmar,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseincome,2,'.',''); ?></b></span></td>
|
||||||
|
<td><a href="<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><b><?php echo number_format($rowwiseexpense,2,'.',''); ?></b></span></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 = $('#ccmonthwise').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
|
"dom": "<'row'<'col-md-3'l><'col-md-9'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'
|
||||||
|
]
|
||||||
|
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
227
application/views/cashbook_cumulative_report.php
Executable file
227
application/views/cashbook_cumulative_report.php
Executable file
@ -0,0 +1,227 @@
|
|||||||
|
<?php //print_r($datas);
|
||||||
|
if (date('m') >= 4) {
|
||||||
|
$yearl = date('Y').'-'.(date('Y')+1);
|
||||||
|
} else {
|
||||||
|
$yearl = (date('Y')-1).'-'.date('Y');
|
||||||
|
}
|
||||||
|
$ab=$yearl;
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
?>
|
||||||
|
<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">
|
||||||
|
<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>Cashbook - Cumulative Report ( <?php echo $fa.'-'.$aa; ?> )</b></p></h3></center>
|
||||||
|
</div>
|
||||||
|
<!-- /.box-header -->
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<table class="table table-bordered table-hover" id="ccr" style="font-size:14px;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="text-align:center" rowspan="2">Account Name</th>
|
||||||
|
<th style="text-align:center" colspan="2"><?php echo date('d-m-Y'); ?></th>
|
||||||
|
<th style="text-align:center" colspan="2"><?php echo date('M-Y'); ?></th>
|
||||||
|
<th style="text-align:center" colspan="2"><?php echo $ab; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
if(!empty($datas)){
|
||||||
|
$incdayttl = 0.00;
|
||||||
|
$expdayttl = 0.00;
|
||||||
|
$incmthttl = 0.00;
|
||||||
|
$expmthttl = 0.00;
|
||||||
|
$incyrttl = 0.00;
|
||||||
|
$expyrttl = 0.00;
|
||||||
|
?>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
foreach($datas as $d)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $d->name; ?></td>
|
||||||
|
<td><?php if(empty($d->tinc)){ echo '0';}else{$incdayttl = $incdayttl + round($d->tinc); echo number_format($d->tinc,2,'.','');} ?></td>
|
||||||
|
<td><?php if(empty($d->texp)){ echo '0';}else{$expdayttl = $expdayttl + round($d->texp); echo number_format($d->texp,2,'.','');} ?></td>
|
||||||
|
<td><?php $incmthttl = $incmthttl + round($d->minc); echo number_format($d->minc,2,'.',''); ?></td>
|
||||||
|
<td><?php $expmthttl = $expmthttl + round($d->mexp); echo number_format($d->mexp,2,'.',''); ?></td>
|
||||||
|
<td><?php $incyrttl = $incyrttl + round($d->yinc); echo number_format($d->yinc,2,'.',''); ?></td>
|
||||||
|
<td><?php $expyrttl = $expyrttl + round($d->yexp); echo number_format($d->yexp,2,'.',''); ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td><b><?php echo "TOTAL" ?></b></td>
|
||||||
|
<td><b><?php echo number_format($incdayttl,2,'.',''); ?></b></td>
|
||||||
|
<td><b><?php echo number_format($expdayttl,2,'.',''); ?></b></td>
|
||||||
|
<td><b><?php echo number_format($incmthttl,2,'.',''); ?></b></td>
|
||||||
|
<td><b><?php echo number_format($expmthttl,2,'.',''); ?></b></td>
|
||||||
|
<td><b><?php echo number_format($incyrttl,2,'.',''); ?></b></td>
|
||||||
|
<td><b><?php echo number_format($expyrttl,2,'.',''); ?></b></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
</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 = $('#ccr').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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalDailyRcpt = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalDailyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalDailyPmt = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalDailyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalMthyRcpt = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalMthyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalMthyPmt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalMthyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalYrlyRcpt = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalYrlyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalYrlyPmt = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalYrlyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
$('#mySelect').on('change',function(){
|
||||||
|
|
||||||
|
table
|
||||||
|
.column(4)
|
||||||
|
.search(this.value)
|
||||||
|
.draw();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ if(!empty($departmentwise))
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php $d=$_GET['d'] ;echo $d;?> Report (DEP:<?php echo $department;?>)</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php if(!empty($_GET['d'])){$n=$_GET['d'];}else{ $n=$_GET['finyear'];} echo $n;?> Report (DEP:<?php echo $department;?>)</b></p></h3></center>
|
||||||
</div><!-- /. box header -->
|
</div><!-- /. box header -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -135,6 +135,7 @@ if(!empty($departmentwise))
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.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.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@ -142,7 +143,11 @@ if(!empty($departmentwise))
|
|||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#mthly_paydep').DataTable( {
|
table = $('#mthly_paydep').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -160,7 +165,28 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPmt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalPmt.toFixed(2).bold() );
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ foreach($departmentwise as $dw)
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php $d=$_GET['d'] ;echo $d;?> Report (DEP:<?php echo $department;?>)</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#5d0411"><b><?php if(!empty($_GET['d'])){$n=$_GET['d'];}else{ $n=$_GET['finyear'];} echo $n;?> Report (DEP:<?php echo $department;?>)</b></p></h3></center>
|
||||||
</div><!-- /. box header -->
|
</div><!-- /. box header -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -145,13 +145,14 @@ foreach($departmentwise as $dw)
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.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.html5.min.js"></script>
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#mthly_recdep').DataTable( {
|
table = $('#mthly_recdep').DataTable( {
|
||||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
@ -170,7 +171,27 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalRcpt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalRcpt.toFixed(2).bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -98,6 +98,9 @@
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#yrly_mthwise').DataTable( {
|
table = $('#yrly_mthwise').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -116,7 +119,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'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;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalRcpt = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalPmt = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#MaterialRcvdDate").datepicker({
|
||||||
|
|
||||||
|
maxDate : 'now',
|
||||||
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||||
|
} );
|
||||||
|
|
||||||
});
|
});
|
||||||
//jquery for vechicle masking
|
//jquery for vechicle masking
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
@ -127,9 +133,15 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label>Material Received Date</label>
|
||||||
|
<?php
|
||||||
|
$data = array('name' => 'MaterialRcvdDate','value' => set_value('MaterialRcvdDate'),'id'=>'MaterialRcvdDate', 'class' => 'form-control num', 'required'=>'true' );
|
||||||
|
echo form_input($data);
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label>Vechicle No</label>
|
<label>Vechicle No</label>
|
||||||
@ -146,17 +158,18 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
|||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-offset-4">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
|
<input type="file" accept=".png,.jpg,.pdf" id="myfile" name="myfile" />
|
||||||
|
|
||||||
|
|
||||||
<input type="file" accept=".png,.jpg,.pdf" onchange="readURL(this);" id="myfile" name="myfile" />
|
|
||||||
<label for="photo">Select File to upload<br/></label>
|
<label for="photo">Select File to upload<br/></label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -186,16 +199,13 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="col-md-1 col-md-offset-10">
|
<div class="col-md-1 col-md-offset-10">
|
||||||
|
<a class="btn btn-primary" id='IGRLink' name='IGRLink' onclick="filecheck();">Generate IGR</a>
|
||||||
|
</div>
|
||||||
<a class="btn btn-primary" id='IGRLink' name='IGRLink' onclick="Save();">Generate IGR</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="modal fade" id="generateIGR" role="dialog">
|
<div class="modal fade" id="generateIGR" role="dialog">
|
||||||
@ -307,6 +317,12 @@ function validate()
|
|||||||
$('#InvoiceDate').focus();
|
$('#InvoiceDate').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if($('#MaterialRcvdDate').val() == '' )
|
||||||
|
{
|
||||||
|
swal('Please Enter Material Received Date' );
|
||||||
|
$('#MaterialRcvdDate').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
else if (Noval == 0 )
|
else if (Noval == 0 )
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -475,13 +491,6 @@ $('<input>').attr({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $('#IGRappend tr').each(function() {
|
|
||||||
// var Pending_Qty = $(this).find("td").eq(6).html();
|
|
||||||
// if( Pending_Qty == 0.00 ){
|
|
||||||
// swal('The Order is completed!!');
|
|
||||||
// //$("#IGRLink").hide();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -568,41 +577,45 @@ function isNumberKey(evt)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Save()
|
function Save()
|
||||||
{
|
{
|
||||||
//alert("save function worked ");
|
|
||||||
|
|
||||||
if (validate())
|
if (validate())
|
||||||
{
|
{
|
||||||
// // alert($('#Inwardgateregistertable').rows.count);
|
|
||||||
// //alert(" if condition validation part ");
|
|
||||||
// $('#content').loader('show');
|
|
||||||
// $.ajax({
|
|
||||||
// data:$('.IGR').serialize(),
|
|
||||||
// type:"POST",
|
|
||||||
// url:"<?php echo base_url() ?>inwardgateregister/addNewigr",
|
|
||||||
|
|
||||||
// success:function(data) {
|
|
||||||
|
|
||||||
// if(data){
|
|
||||||
|
|
||||||
// $('#content').loader('hide');
|
|
||||||
|
|
||||||
// document.getElementById('finaligr').innerHTML=data;
|
|
||||||
// $('#generateIGR').modal('show');
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// swal("Error");
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
// }//success function closed
|
|
||||||
// });//ajax closed
|
|
||||||
$("#IGR").attr("method", "post");
|
$("#IGR").attr("method", "post");
|
||||||
$("#IGR").attr("enctype", "multipart/form-data");
|
$("#IGR").attr("enctype", "multipart/form-data");
|
||||||
$("#IGR").attr("action", "inwardgateregister/addNewigr");
|
$("#IGR").attr("action", "inwardgateregister/addNewigr");
|
||||||
$('#IGR').submit();
|
$('#IGR').submit();
|
||||||
}//validate if closed
|
}//validate if closed
|
||||||
}//save function closed
|
}//save function closed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function filecheck()
|
||||||
|
{
|
||||||
|
var myfile = $('#myfile').val();
|
||||||
|
if(myfile=='')
|
||||||
|
{
|
||||||
|
alert('File not Found');
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var sizef = document.getElementById('myfile').files[0].size;
|
||||||
|
var myfile = $('#myfile').val();
|
||||||
|
if(myfile!='' && sizef < 2100000)
|
||||||
|
{
|
||||||
|
alert('Your file added successfully');
|
||||||
|
Save();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
alert('Sorry Your File is Large To 2MB');
|
||||||
|
$('#myfile').val('');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -1,8 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
//print_r($fy);die();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -223,6 +220,9 @@
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($pending_list))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -240,6 +232,9 @@ if(!empty($pending_list))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -70,6 +70,8 @@
|
|||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<h4><span class="fa fa-inr"> Cashbook </span></h4>
|
<h4><span class="fa fa-inr"> Cashbook </span></h4>
|
||||||
<a href="<?php echo base_url(); ?>cashbookreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Reports</p></a>
|
<a href="<?php echo base_url(); ?>cashbookreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Reports</p></a>
|
||||||
|
<a href="<?php echo base_url(); ?>cashbookcumulativereport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Reports</p></a>
|
||||||
|
<a href="<?php echo base_url(); ?>cashbookcumulativemonthreport" target="_blank" ><p class="uk-text uk-margin-remove">Cashbook Cumulative Month Reports</p></a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,28 +1,4 @@
|
|||||||
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
|
||||||
<style>
|
<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 {
|
|
||||||
font-size: 15px;
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
}
|
|
||||||
.btn-success {
|
|
||||||
background-color: #5d0411;
|
|
||||||
border-color: #5d0411;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal
|
.modal
|
||||||
{
|
{
|
||||||
padding-right:25% ! important;
|
padding-right:25% ! important;
|
||||||
@ -35,13 +11,30 @@
|
|||||||
width: 800px ! important;
|
width: 800px ! important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
var d = new Date();
|
||||||
|
|
||||||
|
var month = d.getMonth();
|
||||||
|
var day = d.getDate();
|
||||||
|
var year = d.getFullYear() ;
|
||||||
|
var SIAStartYear = year - 2015;
|
||||||
|
var mindt = year-70;
|
||||||
|
var maxdt = year-15;
|
||||||
|
|
||||||
|
$("#Invoice_Date , #MaterialRcvdDate ").datepicker({
|
||||||
|
minDate : new Date(year-SIAStartYear,1,1),
|
||||||
|
maxDate :'now',
|
||||||
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
|
|
||||||
<section class="content"><br/>
|
<section class="content"><br/>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class=" container-fluid">
|
<div class=" container-fluid">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<!-- <CENTER><h3 class="box-title">Resico Industries - View Inward Gate Register</h3></CENTER> -->
|
|
||||||
<CENTER><h3 class="box-title"><?php echo $pageTitle; ?></h3></CENTER>
|
<CENTER><h3 class="box-title"><?php echo $pageTitle; ?></h3></CENTER>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -56,8 +49,6 @@
|
|||||||
<th>Supplier Name</th>
|
<th>Supplier Name</th>
|
||||||
<th>Invoice No</th>
|
<th>Invoice No</th>
|
||||||
<th>Date of Invoice</th>
|
<th>Date of Invoice</th>
|
||||||
<th>Material Name</th>
|
|
||||||
<th>Advice Quantity</th>
|
|
||||||
<th>Vechicle No</th>
|
<th>Vechicle No</th>
|
||||||
<th>Courier No</th>
|
<th>Courier No</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
@ -76,7 +67,6 @@
|
|||||||
?>
|
?>
|
||||||
<tr id="<?php echo $index ?>" >
|
<tr id="<?php echo $index ?>" >
|
||||||
<td style="text-align: center;"><?php echo $index?></td>
|
<td style="text-align: center;"><?php echo $index?></td>
|
||||||
<!-- <td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO?>" > <u><?php echo $record->IGRNO ?></u></a></td> this is igrno flow old flow -->
|
|
||||||
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<?php echo $record->IGRNO.",".$record->IGRItemNo ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<?php echo $record->IGRNO.",".$record->IGRItemNo ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
|
||||||
<td><?php echo $record->PONO ?></a></td>
|
<td><?php echo $record->PONO ?></a></td>
|
||||||
<td><?php echo $record->SupplierName ?></td>
|
<td><?php echo $record->SupplierName ?></td>
|
||||||
@ -84,14 +74,11 @@
|
|||||||
<td align="right"><?php
|
<td align="right"><?php
|
||||||
$date = new DateTime($record->DeliveryChellanDate);
|
$date = new DateTime($record->DeliveryChellanDate);
|
||||||
echo $date->format('d-m-Y'); ?></td>
|
echo $date->format('d-m-Y'); ?></td>
|
||||||
<td><?php echo $record->MaterialName ?></td>
|
|
||||||
<td><span data-toggle="tooltip" title="Quantity as per Received"><?php echo $record->QuantityAsPerInvoice ?></span></td>
|
|
||||||
<!--<td><span data-toggle="tooltip" title="Quantity as per Received"><?php echo $record->QuantityAsPerInvoice."/".$record->Quantity ?></span></td>-->
|
|
||||||
<td><?php echo $record->VehicleNo ?></td>
|
<td><?php echo $record->VehicleNo ?></td>
|
||||||
<td><?php echo $record->CourierNo ?></td>
|
<td><?php echo $record->CourierNo ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<!-- <a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO; ?>"><button style="font-size:12px" id="generated" name="generated">Generate MRIR <i class="fa fa-file-text"></i></button></a> -->
|
||||||
<a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO.'&IGRitemno='.$record->IGRItemNo; ?>"><button style="font-size:12px" id="generated" name="generated">Generate MRIR <i class="fa fa-file-text"></i></button></a>
|
<a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO.'&IGRitemno='.$record->IGRItemNo; ?>"><button style="font-size:12px" id="generated" name="generated">Generate MRIR <i class="fa fa-file-text"></i></button></a>
|
||||||
<!-- <a href="<?php echo base_url().'MRIRcontroller/igrdatavalues?IGRNO='.$record->IGRNO.'&IGRitemno='.$record->IGRItemNo; ?>"><i class="fa fa-file-text" data-toggle="tooltip" target="_blank" title="Click here to generate MRIR"></i></a> -->
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
@ -176,6 +163,15 @@
|
|||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label>Supplier Name</label>
|
||||||
|
<?php
|
||||||
|
$data = array('name' => 'SupplierName','value' => set_value('SupplierName'),'id'=>'Supplier', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
|
||||||
|
echo form_input($data);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12" style=" padding-bottom: 10px;">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Delivery Challan/Invoice NO </label>
|
<label>Delivery Challan/Invoice NO </label>
|
||||||
<?php
|
<?php
|
||||||
@ -184,21 +180,17 @@
|
|||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-md-12" style=" padding-bottom: 10px;">
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Delivery Challan / Invoice Date </label>
|
<label>Delivery Challan / Invoice Date </label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'DeliveryChallan/InvoiceDate','value' => set_value('DeliveryChallan/InvoiceDate'),'id'=>'Invoice_Date', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
|
$data = array('name' => 'DeliveryChallan/InvoiceDate','value' => set_value('DeliveryChallan/InvoiceDate'),'id'=>'Invoice_Date', 'class' => 'form-control', 'required=>"true"');
|
||||||
|
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<label>Supplier Name </label>
|
<label>Material Received Date </label>
|
||||||
<?php
|
<?php
|
||||||
$data = array('name' => 'SupplierName','value' => set_value('SupplierName'),'id'=>'Supplier', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
|
$data = array('name' => 'MaterialRcvdDate','value' => set_value('MaterialRcvdDate'),'id'=>'MaterialRcvdDate', 'class' => 'form-control');
|
||||||
|
|
||||||
echo form_input($data);
|
echo form_input($data);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@ -223,6 +215,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
<a class="btn btn-primary" id="update" value="Update">Update</a>
|
||||||
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
<a class="btn btn-primary" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -230,28 +223,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
||||||
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
|
|
||||||
<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>
|
<script>
|
||||||
<!-- script for table , It works under the datatable plugin-->
|
<!-- script for table , It works under the datatable plugin-->
|
||||||
// $(function () {
|
|
||||||
// $('#Inwardgateregistertable').DataTable({
|
|
||||||
// "paging": true,
|
|
||||||
// "lengthChange": true,
|
|
||||||
// "searching": true,
|
|
||||||
// "ordering": true,
|
|
||||||
// "info": true,
|
|
||||||
// "autoWidth": true
|
|
||||||
|
|
||||||
// });
|
|
||||||
//});
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@ -280,7 +255,6 @@
|
|||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
</script>
|
</script>
|
||||||
</script>
|
|
||||||
<script>
|
<script>
|
||||||
$("#Igrshow").on("shown.bs.modal", function(e) {
|
$("#Igrshow").on("shown.bs.modal", function(e) {
|
||||||
//var igr = $(e.relatedTarget).data('userid');
|
//var igr = $(e.relatedTarget).data('userid');
|
||||||
@ -314,6 +288,13 @@ $("#Igrshow").on("shown.bs.modal", function(e) {
|
|||||||
var dcd = new Date(item.DeliveryChellanDate);
|
var dcd = new Date(item.DeliveryChellanDate);
|
||||||
//alert(dcd.getDate()+ '.' + (dcd.getMonth() + 1)+ '.' + dcd.getFullYear());
|
//alert(dcd.getDate()+ '.' + (dcd.getMonth() + 1)+ '.' + dcd.getFullYear());
|
||||||
var dcd2 = (dcd.getDate()+ '-' + (dcd.getMonth() + 1)+ '-' + dcd.getFullYear());
|
var dcd2 = (dcd.getDate()+ '-' + (dcd.getMonth() + 1)+ '-' + dcd.getFullYear());
|
||||||
|
if(item.MaterialRcvdDate === null) {
|
||||||
|
var Mat_rcv_date = ' '; }
|
||||||
|
else {
|
||||||
|
var MR_dt = new Date(item.MaterialRcvdDate);
|
||||||
|
var Mat_rcv_date = (MR_dt.getDate()+ '-' + (MR_dt.getMonth() + 1)+ '-' + MR_dt.getFullYear());
|
||||||
|
}
|
||||||
|
$("#MaterialRcvdDate").val(Mat_rcv_date);
|
||||||
$("#Invoice_Date").val(dcd2);
|
$("#Invoice_Date").val(dcd2);
|
||||||
$("#ser").val(item.ServiceDescription);
|
$("#ser").val(item.ServiceDescription);
|
||||||
|
|
||||||
@ -338,4 +319,22 @@ $("#Igrshow").on("shown.bs.modal", function(e) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#update').click(function(){
|
||||||
|
//alert('updated function entered');
|
||||||
|
$('#content').loader('show');
|
||||||
|
var igrno = $("#IGRNO1").val();
|
||||||
|
var materialrcv_date = $("#MaterialRcvdDate").val();
|
||||||
|
var inv_date = $("#Invoice_Date").val();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
data:{igr:igrno,mrc:materialrcv_date,invdate:inv_date},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>inwardgateregister/UpdateIGR",
|
||||||
|
success:function(data) {
|
||||||
|
$('#content').loader('hide');
|
||||||
|
alert(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user