PDFforresin
This commit is contained in:
parent
d5878ff632
commit
929c86cda0
@ -207,7 +207,7 @@ class resinbatchcard extends BaseController
|
|||||||
$batchdate = date_format(date_create($batchdate),'Y-m-d');
|
$batchdate = date_format(date_create($batchdate),'Y-m-d');
|
||||||
$plantname = $this->input->post('param4');
|
$plantname = $this->input->post('param4');
|
||||||
$machines = $this->input->post('param5');
|
$machines = $this->input->post('param5');
|
||||||
$trpbatchcard = $this->input->post('param6');
|
$trpbatchcardno = $this->input->post('param6');
|
||||||
$igrnos = $this->input->post('param7');
|
$igrnos = $this->input->post('param7');
|
||||||
$igrlinenos = $this->input->post('param8');
|
$igrlinenos = $this->input->post('param8');
|
||||||
$remarks = $this->input->post('param9');
|
$remarks = $this->input->post('param9');
|
||||||
@ -230,13 +230,15 @@ class resinbatchcard extends BaseController
|
|||||||
$Catalystigrno = $this->input->post('param22');
|
$Catalystigrno = $this->input->post('param22');
|
||||||
$bagsigrnos = $this->input->post('param23');
|
$bagsigrnos = $this->input->post('param23');
|
||||||
$tonigrnos= $this->input->post('param24');
|
$tonigrnos= $this->input->post('param24');
|
||||||
$resinname=$this->input->post('param25');
|
$resinname=$this->input->post('param25');
|
||||||
|
|
||||||
$opstoinsert = json_decode($opstoinsert);
|
$opstoinsert = json_decode($opstoinsert);
|
||||||
$opstodelete = json_decode($opstodelete);
|
$opstodelete = json_decode($opstodelete);
|
||||||
// print_r($opstoinsert);
|
|
||||||
// print_r($opstodelete);
|
// print_r($opstodelete);
|
||||||
// die();
|
// echo count($opstodelete);
|
||||||
|
|
||||||
|
//die();
|
||||||
//$oplist = json_decode($oplist);
|
//$oplist = json_decode($oplist);
|
||||||
if(!empty($_FILES['rfile']['name']))
|
if(!empty($_FILES['rfile']['name']))
|
||||||
{
|
{
|
||||||
@ -280,6 +282,7 @@ class resinbatchcard extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$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,
|
$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_sand'=>$sandigrnos,
|
||||||
'igrno_for_resin'=>$Resinigrnos,
|
'igrno_for_resin'=>$Resinigrnos,
|
||||||
@ -322,7 +325,7 @@ class resinbatchcard extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($opstodelete)){
|
if(!empty($opstodelete)){
|
||||||
|
|
||||||
foreach($opstodelete as $key => $opstdel)
|
foreach($opstodelete as $key => $opstdel)
|
||||||
{
|
{
|
||||||
@ -341,6 +344,8 @@ class resinbatchcard extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function printReportPDF()
|
function printReportPDF()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -70,11 +70,11 @@ th{
|
|||||||
<td style="width: 51px;"><b>IGR No(For 50 Bags)</b></td>
|
<td style="width: 51px;"><b>IGR No(For 50 Bags)</b></td>
|
||||||
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->igrno_for_bags;?></b></td>
|
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->igrno_for_bags;?></b></td>
|
||||||
<td style="width: 51px;"><b>IGR No(For 1 ton Bag)</b></td>
|
<td style="width: 51px;"><b>IGR No(For 1 ton Bag)</b></td>
|
||||||
<td style="width: 51px;"><?php echo $records['masterdata'][0]->igrno_for_tonbags;?></b></td>
|
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->igrno_for_tonbags;?></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 51px;"><b>IGR No(For Fresh Sand)</b></td>
|
<td style="width: 51px;"><b>IGR No(For Fresh Sand)</b></td>
|
||||||
<td style="width: 51px;"><?php echo $records['masterdata'][0]->igrno_for_sand;?></b></td>
|
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->igrno_for_sand;?></b></td>
|
||||||
<td style="width: 51px;"><b>Machine Name</b></td>
|
<td style="width: 51px;"><b>Machine Name</b></td>
|
||||||
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->machinecode .'-'.$records['masterdata'][0]->Machine_Name?></td>
|
<td style="width: 51px;"><b><?php echo $records['masterdata'][0]->machinecode .'-'.$records['masterdata'][0]->Machine_Name?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user