diff --git a/application/controllers/resinbatchcard.php b/application/controllers/resinbatchcard.php index 5d7bf187..3e7586c1 100644 --- a/application/controllers/resinbatchcard.php +++ b/application/controllers/resinbatchcard.php @@ -207,7 +207,7 @@ class resinbatchcard extends BaseController $batchdate = date_format(date_create($batchdate),'Y-m-d'); $plantname = $this->input->post('param4'); $machines = $this->input->post('param5'); - $trpbatchcard = $this->input->post('param6'); + $trpbatchcardno = $this->input->post('param6'); $igrnos = $this->input->post('param7'); $igrlinenos = $this->input->post('param8'); $remarks = $this->input->post('param9'); @@ -230,13 +230,15 @@ class resinbatchcard extends BaseController $Catalystigrno = $this->input->post('param22'); $bagsigrnos = $this->input->post('param23'); $tonigrnos= $this->input->post('param24'); - $resinname=$this->input->post('param25'); + $resinname=$this->input->post('param25'); $opstoinsert = json_decode($opstoinsert); $opstodelete = json_decode($opstodelete); - // print_r($opstoinsert); + // print_r($opstodelete); - // die(); + // echo count($opstodelete); + + //die(); //$oplist = json_decode($oplist); if(!empty($_FILES['rfile']['name'])) { @@ -279,7 +281,8 @@ class resinbatchcard extends BaseController $finishedproduct = $tot['Finished Prodcut PCS']; } } - + + $masterreportdata = array('batchdate'=>$batchdate,'plantname'=>$plantname,'machinecode'=>$machines,'trpbatchcardno'=>$trpbatchcardno,'igrno'=>$igrnos,'igrlineno'=>$igrlinenos,'resinname'=>$resinname,'remarks'=>$remarks,'updatedby'=>$createby,'approvedby'=>$approvedby,'document'=>$document,'sandtotal'=>$sandtotal,'resintotal'=>$resintotal,'hextotal'=>$hextotal,'cstotal'=>$cstotal,'catalysttotal'=>$catalysttotal,'bags50total'=>$bags50total,'ton1bagstotal'=>$ton1bagstotal,'producitonloss'=>$producitonloss,'finishedproduct'=>$finishedproduct,'operatedby'=>$operatedby, 'igrno_for_sand'=>$sandigrnos, 'igrno_for_resin'=>$Resinigrnos, @@ -322,7 +325,7 @@ class resinbatchcard extends BaseController } - if(!empty($opstodelete)){ + if(!empty($opstodelete)){ foreach($opstodelete as $key => $opstdel) { @@ -341,6 +344,8 @@ class resinbatchcard extends BaseController + + function printReportPDF() { diff --git a/application/views/viewresinbatchpdf.php b/application/views/viewresinbatchpdf.php index 7c0b02ec..558948f6 100644 --- a/application/views/viewresinbatchpdf.php +++ b/application/views/viewresinbatchpdf.php @@ -70,11 +70,11 @@ th{