diff --git a/application/controllers/resinbatchcard.php b/application/controllers/resinbatchcard.php
index 0f08200c..fa436d72 100644
--- a/application/controllers/resinbatchcard.php
+++ b/application/controllers/resinbatchcard.php
@@ -371,6 +371,52 @@ class resinbatchcard extends BaseController
$this->loadViews("editresinbatchcard", $this->global, $data , NULL);
}
+
+ //this function used to edit resinbatch card pdf
+
+
+ function printResinBatchReport()
+ {
+
+
+
+
+ $rbcid = $this->uri->segment(3);
+ $data['records'] = $this->quality_model->getResinBatchCardDetails($rbcid);
+ //print_r( $data['records']);
+
+ $productid= $data['records']['masterdata'][0]->productid;
+ $customerid = $data['records']['masterdata'][0]->customerid;
+ $ttype = 'RESINBATCHCARD';
+ // echo $productid1;
+ // echo $customerid1;
+ $data['recordsheader'] = $this->quality_model->getSpecifications($productid,$customerid,$ttype);
+ //print_r($data['recordsheader']);
+ $data['existspec'] = $this->quality_model->getAllspec(); // values max 15 pdf include
+ $data['existoperatorslist'] = $this->quality_model->getExistOperatorsListforReport($rbcid);
+ // print_r( $data['existspec']);
+
+
+ // $filename = 'Siddharth :ResinBatchCard'.$rbcid;
+
+ $data['reportdata']['masterreport'] = $temparray;
+ $data['timearray'] = $time;
+ $data['emplist'] = $this->quality_model->getEmplistforReport();
+
+ $this->global['pageTitle'] = 'Siddharth :ResinBatchCardPDF';
+ $html = $this->load->View("viewresinbatchpdf",$data,true);
+ require APPPATH . '/third_party/mpdf/mpdf.php';
+ $mpdf=new mPDF('utf-8','A4-P',7,10,10, 10, 10, 24, 4, 6);
+ $mpdf->SetDisplayMode('fullpage');
+ $mpdf->SetTitle('Siddharth :ResinBatchCard'.$rbcid);
+ $mpdf->list_indent_first_level = 1;
+ $mpdf->setAutoTopMargin = 'stretch';
+ $mpdf->setAutoBottomMargin = 'stretch';
+ $mpdf->WriteHTML($html);
+ //$mpdf->SetJS('print();');
+ $mpdf->Output($filename.'.pdf','I');
+ }
+
}
?>
diff --git a/application/views/editresinbatchcard.php b/application/views/editresinbatchcard.php
index ad87abd6..1b988e77 100644
--- a/application/views/editresinbatchcard.php
+++ b/application/views/editresinbatchcard.php
@@ -65,6 +65,20 @@ th{