AMEND CAPITAL PO PDF

This commit is contained in:
velz2020 2017-07-26 19:26:23 +05:30
parent 93ca8a5bcd
commit 5886076340
3 changed files with 290 additions and 168 deletions

View File

@ -1509,43 +1509,49 @@ public function CapitalPoPrint($PONO)
{ {
// Load the pdf page with multiviews
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
//print_r($data['CompanyDetails']);
$data['POItem'] = $this->purchaseorder_model->GetCapitalAmendPurchaseOrderDetailsForprintPDF($PONO); $data['POItem'] = $this->purchaseorder_model->GetCapitalAmendPurchaseOrderDetailsForprintPDF($PONO);
//print_r($data['POItem']); //print_r($data['POItem']);
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO); $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
//print_r($data['releasedetails']);
$CurrencyType=''; $CurrencyType='';
if(!empty($data['POItem'])){ if(!empty($data['POItem'])){
$CurrencyType=$data['POItem'][0]->CurrencyType; $CurrencyType=$data['POItem'][0]->CurrencyType;
// echo $CurrencyType;
} }
if($CurrencyType=='' OR $CurrencyType=='0'){ if($CurrencyType=='' OR $CurrencyType=='0'){
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR'); $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
// echo "<br><br>";
//print_r($data['CurrencySymbol']);
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue; $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
echo $TotalOrderValue; //echo $TotalOrderValue;
die(); $totalAmt=sprintf("%.2f", $TotalOrderValue);
//echo $totalAmt;
$totalAmt=sprintf("%.2f", $TotalOrderValue);
$data['TotalAmountInWords']= $this->convertNumber($totalAmt); $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
//print_r($data['TotalAmountInWords']);
} }
else{ else{
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType); $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
//echo "<br><br>";
// print_r($data['CurrencySymbol']);
$SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000; $SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
$SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency; $SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
$PaiseVal=$data['CurrencySymbol'][0]->PaiseVal; $PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue; $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
// echo $TotalOrderValue;
$totalAmt=sprintf("%.2f", $TotalOrderValue); $totalAmt=sprintf("%.2f", $TotalOrderValue);
//echo "<br>" . $totalAmt;
// $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal); $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
//print_r($data['TotalAmountInWords']);
} }
@ -1557,12 +1563,11 @@ public function CapitalPoPrint($PONO)
$this->load->View("capitalamendpopdf", $data); $this->load->View("amendcapitalpopdf", $data);
// Add header to pdf
//$this->load->view('includes/pdffooter');
// Get output html
$php = $this->output->get_output(); $php = $this->output->get_output();
// Load library // Load library
@ -1572,11 +1577,117 @@ public function CapitalPoPrint($PONO)
$this->dompdf->load_html($php); $this->dompdf->load_html($php);
$this->dompdf->render(); $this->dompdf->render();
$data['Attachment'] = FALSE; $data['Attachment'] = FALSE;
$this->dompdf->stream("CapitalPOReport.pdf",$data,$php); $this->dompdf->stream("capitalamenpo.pdf",$data,$php);
} }
public function convertNumberSymbol($number,$symbol,$name,$paise)
{
list($integer, $fraction) = explode(".", (string) $number);
$output = $name." ";
if ($integer{0} == "-")
{
$output = "negative ";
$integer = ltrim($integer, "-");
}
else if ($integer{0} == "+")
{
$output = "positive ";
$integer = ltrim($integer, "+");
}
if ($integer{0} == "0")
{
$output .= "zero";
}
else
{
$integer = str_pad($integer, 36, "0", STR_PAD_LEFT);
$group = rtrim(chunk_split($integer, 3, " "), " ");
$groups = explode(" ", $group);
$groups2 = array();
foreach ($groups as $g)
{
$groups2[] = $this->convertThreeDigit($g{0}, $g{1}, $g{2});
}
for ($z = 0; $z < count($groups2); $z++)
{
if ($groups2[$z] != "")
{
$output .= $groups2[$z] . $this->convertGroup(11 - $z) . (
$z < 11
&& !array_search('', array_slice($groups2, $z + 1, -1))
&& $groups2[11] != ''
&& $groups[11]{0} == '0'
? " "
: ", "
);
}
}
$output = rtrim($output, ", ");
}
if ($fraction > 0)
{
$output .= $paise;
for ($i = 0; $i < strlen($fraction); $i++)
{
$output .= " " . $this->convertDigit($fraction{$i});
}
}
return $output;
}
public function convertNumber($number) public function convertNumber($number)

View File

@ -856,21 +856,16 @@ QuantityRejected,ROUND(ReceivedQuantity-QuantityRejected)as PendingQty,
{ {
//echo $PONO; //echo $PONO;
$subQuery ='SELECT distinct LineItem.PONO,LineItem.LineItemNo,SUP.SupplierName,SUP.Address,POMast.DeliveryAddress,POMast.DeliveryDate,POMast.PODate,POMast.DeliveryOption,POMast.ServiceDescription,POMast.PaymentTerms,POMast.Import_PlaceofOrgin,POMast.AmendedDetails,POMast.DeliverySchedule,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,LineItem.ServiceMaterialDescription,LineItem.ServiceFrequency, $subQuery ='SELECT distinct LineItem.PONO,LineItem.AmendedDetails as lineamd,LineItem.LineItemNo,SUP.SupplierName,SUP.Address,POMast.DeliveryAddress,POMast.DeliveryDate,POMast.PODate,POMast.DeliveryOption,POMast.ServiceDescription,POMast.PaymentTerms,POMast.Import_PlaceofOrgin,POMast.AmendedDetails,POMast.PaymentDays,POMast.DeliverySchedule,POMast.TotalOrderValue,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,LineItem.ServiceMaterialDescription,LineItem.ServiceFrequency,
Mat.UOM,Quantity,Rate,Req.Status,ROUND((ServiceTax.After_CGST + ServiceTax.After_SGST + ServiceTax.After_IGST + ServiceTax.otherallowance),2) as ServiceTaxamount Mat.UOM,Quantity,Rate,Req.Status,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,POMast.CurrencyType,
,ServiceTax.TotalValue,ServiceTax.CGST,ServiceTax.After_CGST,ServiceTax.SGST,ServiceTax.After_SGST,ServiceTax.IGST,ServiceTax.After_IGST,ServiceTax.otherallowance, Req.CostCenterCode FROM T_PurchaseOrder_LineItem LineItem
ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount,LandingCharge,HighSeasSalesCharge,CustomDuty,ExciseDuty,ExciseDutyEdCess,CustomEdCess,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,AfterLandingCharge,AfterHighSeasSalesCharge,AfterCustomDuty,AfterExciseDuty,AfterExciseDutyEdCess,AddlExciseDuty,AfterAddlExciseDuty,Grossdutypayable,AvailableModvat,Grossexpensesduetocustomduty,purchaseratePerKG,CustomDutyExpensesPerKG,RMCIncludingCustomersPerKG,QuantityKG,BasicPriceInMTon,ProductPrice,CustomSHCess,AfterCustomSHCess,AfterExciseDutySHCess,ExciseDutySHCess,AfterCustomEdCess,ROUND((POMast.ExchangeRate*BasicPriceInMTon*Quantity),2) as BasicINRValue,Tax.TotalValue as ImportTotalValue,POMast.CurrencyType,
Req.CostCenterCode,Dept.DepartmentName FROM T_PurchaseOrder_LineItem LineItem
join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
join T_SupplierDetailsN SUP on SUP.SupplierID=POMast.SupplierID join T_SupplierDetailsN SUP on SUP.SupplierID=POMast.SupplierID
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax ServiceTax on ServiceTax.LineItemNo = LineItem.LineItemNo join T_Service_Tax ServiceTax on ServiceTax.LineItemNo = LineItem.LineItemNo
join T_Import_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo join T_Import_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo
join T_Employee_Details emp on Req.Requestedby = emp.EmpID join T_Employee_Details emp on Req.Requestedby = emp.EmpID where LineItem.PONO =?';
join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO)); $query = $this->db->query($subQuery,array($PONO));
//print_r ($query->result()); //print_r ($query->result());
return $query->result(); return $query->result();

View File

@ -1,6 +1,8 @@
<?php <?php
$PONO = '';
$PONO = '';
$postatus =''; $postatus ='';
$CompanyAddress = ''; $CompanyAddress = '';
$CompanyName = ''; $CompanyName = '';
@ -9,66 +11,65 @@
$DeliveryAddress = ''; $DeliveryAddress = '';
$Podt = ''; $Podt = '';
$DeliveryDate =''; $DeliveryDate ='';
$postatus='';
$ServiceDescription = ''; $ServiceDescription = '';
$PaymentTerms = ''; $index=0;
$PaymentDays=''; $PaymentDays='';
$PayableAT=''; $PayableAT='';
$DeliverySchedule=''; $PaymentTerms='';
$Import_DispatchDetails=''; $DeliverySchedule='';
$Placeoforigin=''; if(!empty($CompanyDetails))
$TotalAmountInWords='';
if(!empty($CompanyDetails))
{ {
foreach ($CompanyDetails as $CO) foreach ($CompanyDetails as $CO)
{ {
$CompanyName = $CO->CompanyName; $CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address; $CompanyAddress = $CO->Address;
}
}
} }
if(!empty($POItem)) if(!empty($POItem))
{ {
foreach ($POItem as $PO) foreach ($POItem as $PO)
{ {
$PONO = $PO->PONO; $ReqNo=$PO->ReqNo;
$postatus= $PO->Status; $PONO = $PO->PONO;
$SuplierName = $PO->SupplierName; $postatus= $PO->Status;
$SuplierAddress = $PO->Address; $SuplierName = $PO->SupplierName;
$DeliveryAddress = $PO->DeliveryAddress; $SuplierAddress = $PO->Address;
$postatus= $PO->Status; $DeliveryAddress = $PO->DeliveryAddress;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y'); $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
if($PO->DeliveryOption=='1'){ $Podt = $dt->format('d-m-Y');
if($PO->DeliveryOption=='1'){
$DeliveryDate = ''; $DeliveryDate = '';
$DeliverySchedule = $PO->DeliverySchedule; $DeliverySchedule = $PO->DeliverySchedule;
$Import_DispatchDetails='';
} }
else{ else{
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y'); $DeliveryDate = $dtDe->format('d-m-Y');
$DeliverySchedule = ''; $DeliverySchedule = '';
$Import_DispatchDetails=$PO->Import_DispatchDetails;
} }
$ServiceDescription =$PO->ServiceDescription;
$CostCenterCode=$PO->CostCenterCode;
$PaymentTerms=$PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PaymentTerms;
}
}
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$Placeoforigin=$PO->Import_PlaceofOrgin;
}
}
$currencyName='INR';
$currencyCode =''; $currencyCode ='';
if(!empty($CurrencySymbol)) $currencyName='';
if(!empty($CurrencySymbol))
{ {
foreach ($CurrencySymbol as $Curr) foreach ($CurrencySymbol as $Curr)
{ {
$currencyCode = $Curr->FontCode2000; $currencyCode = $Curr->FontCode2000;
//$currencyName = $currencyName; $currencyName = $Curr->Currency_Code;
} }
@ -76,7 +77,10 @@
} }
?>
?>
<style> <style>
@page { margin: 280px 50px 30px 50px; } @page { margin: 280px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 550px;text-align: center; } .header { position: fixed; left: 0px; top: -280px; right: 0px; height: 550px;text-align: center; }
@ -84,6 +88,7 @@
.pagenum:before { content: counter(page); } .pagenum:before { content: counter(page); }
</style> </style>
<div class="footer">Page: <span class="pagenum"></span></div> <div class="footer">Page: <span class="pagenum"></span></div>
<div class="header"> <div class="header">
<div style="text-align:right;"> <div style="text-align:right;">
<?php <?php
@ -97,11 +102,10 @@
?> ?>
</div> </div>
<div>&nbsp;</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center> <center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody> <tbody>
<tr> <tr>
@ -114,34 +118,33 @@
<tr> <tr>
<td> <td>
<p><strong>Vendor Address :</strong></p> <p><strong>Vendor Address :</strong></p>
<p><?php echo $SuplierName; ?><br /><?php echo $SuplierAddress; ?></p> <p><?php echo $SuplierName?><br /><?php echo $SuplierAddress ?></p>
</td> </td>
<td colspan="2"> <td colspan="2">
<p><strong>Delivery To :</strong></p> <p><strong>Delivery To :</strong></p>
<p><?php echo $DeliveryAddress; ?></p> <p><?php echo $DeliveryAddress?></p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>PO DATE :<?php echo $Podt; ?></td> <td>PO DATE :<?php echo $Podt?></td>
<td colspan="2">DISPATCH / SCHEDULE BY :<?php echo $Import_DispatchDetails.$DeliverySchedule;?></td> <td colspan="2">DELIVERY DATE / SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></td>
<td>PLACE OF ORIGIN:<?php echo $Placeoforigin; ?></td> <!--<td>PLACE OF ORIGIN:<?php echo $Placeoforigin; ?></td> if u need this field uncommend it and remove colspan="2" in delivery date / schedule by-->
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0"> <div class="page" style="font-size:12px;">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody> <tbody>
<tr> <tr style="background:#8c8c8c;color:#fff;">
<td>Requistion Number</td> <td>Requistion Number</td>
<td>Requested By</td> <td>Requested By</td>
<td>Requested Department</td> <td>Requested Department</td>
<td>Cost Center &nbsp;</td> <td>Cost Center</td>
</tr> </tr>
<?php <?php
if(!empty($RequistionDetails)) if(!empty($RequistionDetails))
{ {
@ -161,94 +164,110 @@
?> ?>
</tbody> </tbody>
</table> </table><p>&nbsp;</p>
<p>&nbsp;</p> <div class="page" style="font-size:14px;">
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0"> <tr style="background:#8c8c8c;color:#fff;">
<tbody>
<tr>
<th>#</th> <th>#</th>
<th>Item Name</th> <th>Item and Description</th>
<th>Qty</th> <th>Qty</th>
<th>UOM</p>
<?php if($currencyName!='INR'){ ?> <?php if($currencyName!='INR'){ ?>
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th> <th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php <?php
} else{ } else{
?> ?>
<th>Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?> <th>Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?>
<?php if($currencyName!='INR'){ ?>
<?php if($currencyName!='INR'){ ?>
<th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th> <th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php <?php
} else{ } else{
?> ?>
<th>Total Amount in <?php echo "$currencyName"; ?></th> <?php } ?>
</tr>
<th>Total Amount in <?php echo "$currencyName";?></th><?php } ?> <?php
if(!empty($POItem))
{
$TotalOrderValue=0;
$index=0;
$BasicValue=0;
foreach($POItem as $record)
{
$index = $index + 1;
?>
</tr> <tr>
<?php <td><?php echo $index ; ?></td>
if(!empty($POItem))
{
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
foreach($POItem as $record)
{
$index = $index + 1;
$OrderValue= $OrderValue + $record->Quantity*$record->Rate;
?>
<tr style="line-height: 1.5em;">
<td><?php echo $index ; ?></td>
<td><?php echo $record->MaterialName ; ?></td> <td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td> <td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->UOM ; ?></td> <td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php echo number_format(($record->Rate),2) ; ?></td>
<td align="right"><?php echo number_format(($record->Quantity * $record->Rate),2);?></td>
<td align="right"><?php $BasicValue=($record->Quantity*$record->Rate);
echo number_format($BasicValue,2) ; ?></td>
</tr>
</tr> <?php
<?php $TotalOrderValue = $TotalOrderValue+$BasicValue;
}
}
?>
</table>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" colspan="3">
<p>Amended Details</p>
</td>
</tr>
<tr>
<td colspan="3">
<?php
if(!empty($POItem))
{
foreach($POItem as $v)
{
echo "<b>" . $v->AmendedDetails . "</b>";
break;
}
}?>
</td>
</tr>
<tr>
<td style="text-align: center;"><strong>Item Description</strong></td>
<td style="text-align: center;" rowspan="2"><strong>Previous Details</strong></td><td style="text-align: center;" rowspan="2" ><strong>Current Details</strong></td>
</tr>
} <?php if(!empty($POItem))
{
foreach($POItem as $record)
{
echo $record->lineamd ;
}
} ?>
</tbody>
</table>
<div align="right">
<p>&nbsp;</p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
}
?>
</tbody>
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody> <tbody>
<tr> <tr>
<td style="text-align: center;" ><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td> <td style="text-align: center;" ><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
<td style="text-align: center;" ><?php if($currencyName!='INR'){ ?> <td style="text-align: center;" ><?php if($currencyName!='INR'){ ?>
Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")" ?><?php } else { ?><b>Total Order Amount in <?php echo "$currencyName"; ?><?php } ?> </b> <br/><?php if($currencyName!='INR'){ ?><?php echo number_format($TotalOrderValue,2); } else {?> <?php echo number_format($TotalOrderValue,2);}?></td>
Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")" ?><?php } else { ?><b>Total Order Amount in <?php echo "$currencyName"; ?><?php } ?> </b> <br/><?php if($currencyName!='INR'){ ?><?php echo number_format($OrderValue,2); } else {?> <?php echo number_format($OrderValue,2);}?></td>
</tr> </tr>
<tr> <tr>
@ -265,15 +284,11 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<p>&nbsp;</p>
<p><strong>Special Instruction:</strong></p> <div align="Left"> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
<p><?php echo $ServiceDescription;?></p>
<p>&nbsp;</p>
<?php
<?php
if(!empty($releasedetails)){ if(!empty($releasedetails)){
$releasedOn = ''; $releasedOn = '';
foreach($releasedetails as $detail){ foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata')); $releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
@ -282,7 +297,7 @@
?> ?>
<!-- <table width="100%"> <table width="100%">
<tbody> <tbody>
<tr> <tr>
<td><b>Released By:</b></td> <td><b>Released By:</b></td>
@ -293,17 +308,18 @@
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td> <td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
</tr> </tr>
</tbody> </tbody>
</table> --> </table>
<p>&nbsp;</p>
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
<?php <?php
} }
} }
else { else {
?> ?>
<?php } ?> <?php } ?>
</div>
</div>