AMEND CAPITAL PO PDF
This commit is contained in:
parent
93ca8a5bcd
commit
5886076340
@ -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);
|
||||
//print_r($data['POItem']);
|
||||
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
|
||||
|
||||
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
|
||||
//print_r($data['releasedetails']);
|
||||
|
||||
$CurrencyType='';
|
||||
if(!empty($data['POItem'])){
|
||||
$CurrencyType=$data['POItem'][0]->CurrencyType;
|
||||
// echo $CurrencyType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($CurrencyType=='' OR $CurrencyType=='0'){
|
||||
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
|
||||
|
||||
// echo "<br><br>";
|
||||
//print_r($data['CurrencySymbol']);
|
||||
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
|
||||
echo $TotalOrderValue;
|
||||
die();
|
||||
|
||||
$totalAmt=sprintf("%.2f", $TotalOrderValue);
|
||||
|
||||
//echo $TotalOrderValue;
|
||||
$totalAmt=sprintf("%.2f", $TotalOrderValue);
|
||||
//echo $totalAmt;
|
||||
$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
|
||||
//print_r($data['TotalAmountInWords']);
|
||||
}
|
||||
|
||||
|
||||
else{
|
||||
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
|
||||
//echo "<br><br>";
|
||||
// print_r($data['CurrencySymbol']);
|
||||
$SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
|
||||
$SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
|
||||
$PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
|
||||
|
||||
$TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
|
||||
|
||||
// echo $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();
|
||||
|
||||
// Load library
|
||||
@ -1572,11 +1577,117 @@ public function CapitalPoPrint($PONO)
|
||||
$this->dompdf->load_html($php);
|
||||
$this->dompdf->render();
|
||||
$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)
|
||||
|
||||
@ -856,21 +856,16 @@ QuantityRejected,ROUND(ReceivedQuantity-QuantityRejected)as PendingQty,
|
||||
{
|
||||
//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,
|
||||
Mat.UOM,Quantity,Rate,Req.Status,ROUND((ServiceTax.After_CGST + ServiceTax.After_SGST + ServiceTax.After_IGST + ServiceTax.otherallowance),2) as ServiceTaxamount
|
||||
,ServiceTax.TotalValue,ServiceTax.CGST,ServiceTax.After_CGST,ServiceTax.SGST,ServiceTax.After_SGST,ServiceTax.IGST,ServiceTax.After_IGST,ServiceTax.otherallowance,
|
||||
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
|
||||
$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,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,POMast.CurrencyType,
|
||||
Req.CostCenterCode FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
|
||||
join T_SupplierDetailsN SUP on SUP.SupplierID=POMast.SupplierID
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
join T_Service_Tax ServiceTax on ServiceTax.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_Employee_Details emp on Req.Requestedby = emp.EmpID
|
||||
|
||||
join T_DepartmentDetails Dept on emp.Departmentcode = Dept.DEPCode where LineItem.PONO =?';
|
||||
join T_Employee_Details emp on Req.Requestedby = emp.EmpID where LineItem.PONO =?';
|
||||
$query = $this->db->query($subQuery,array($PONO));
|
||||
//print_r ($query->result());
|
||||
return $query->result();
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
$PONO = '';
|
||||
|
||||
|
||||
|
||||
$PONO = '';
|
||||
$postatus ='';
|
||||
$CompanyAddress = '';
|
||||
$CompanyName = '';
|
||||
@ -9,74 +11,76 @@
|
||||
$DeliveryAddress = '';
|
||||
$Podt = '';
|
||||
$DeliveryDate ='';
|
||||
$postatus='';
|
||||
$ServiceDescription = '';
|
||||
$PaymentTerms = '';
|
||||
$index=0;
|
||||
$PaymentDays='';
|
||||
$PayableAT='';
|
||||
$DeliverySchedule='';
|
||||
$Import_DispatchDetails='';
|
||||
$Placeoforigin='';
|
||||
$TotalAmountInWords='';
|
||||
if(!empty($CompanyDetails))
|
||||
$PayableAT='';
|
||||
$PaymentTerms='';
|
||||
$DeliverySchedule='';
|
||||
if(!empty($CompanyDetails))
|
||||
{
|
||||
foreach ($CompanyDetails as $CO)
|
||||
{
|
||||
$CompanyName = $CO->CompanyName;
|
||||
$CompanyAddress = $CO->Address;
|
||||
|
||||
}
|
||||
foreach ($CompanyDetails as $CO)
|
||||
{
|
||||
$CompanyName = $CO->CompanyName;
|
||||
$CompanyAddress = $CO->Address;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!empty($POItem))
|
||||
{
|
||||
|
||||
foreach ($POItem as $PO)
|
||||
{
|
||||
$PONO = $PO->PONO;
|
||||
$postatus= $PO->Status;
|
||||
$SuplierName = $PO->SupplierName;
|
||||
$SuplierAddress = $PO->Address;
|
||||
$DeliveryAddress = $PO->DeliveryAddress;
|
||||
$postatus= $PO->Status;
|
||||
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
|
||||
$Podt = $dt->format('d-m-Y');
|
||||
if($PO->DeliveryOption=='1'){
|
||||
|
||||
foreach ($POItem as $PO)
|
||||
{
|
||||
$ReqNo=$PO->ReqNo;
|
||||
$PONO = $PO->PONO;
|
||||
$postatus= $PO->Status;
|
||||
$SuplierName = $PO->SupplierName;
|
||||
$SuplierAddress = $PO->Address;
|
||||
$DeliveryAddress = $PO->DeliveryAddress;
|
||||
|
||||
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
|
||||
$Podt = $dt->format('d-m-Y');
|
||||
if($PO->DeliveryOption=='1'){
|
||||
$DeliveryDate = '';
|
||||
$DeliverySchedule = $PO->DeliverySchedule;
|
||||
$Import_DispatchDetails='';
|
||||
}
|
||||
else{
|
||||
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
|
||||
$DeliveryDate = $dtDe->format('d-m-Y');
|
||||
$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 ='';
|
||||
if(!empty($CurrencySymbol))
|
||||
$currencyName='';
|
||||
if(!empty($CurrencySymbol))
|
||||
{
|
||||
foreach ($CurrencySymbol as $Curr)
|
||||
{
|
||||
|
||||
$currencyCode = $Curr->FontCode2000;
|
||||
//$currencyName = $currencyName;
|
||||
$currencyName = $Curr->Currency_Code;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
?>
|
||||
<style>
|
||||
@page { margin: 280px 50px 30px 50px; }
|
||||
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 550px;text-align: center; }
|
||||
@ -84,6 +88,7 @@
|
||||
.pagenum:before { content: counter(page); }
|
||||
</style>
|
||||
<div class="footer">Page: <span class="pagenum"></span></div>
|
||||
|
||||
<div class="header">
|
||||
<div style="text-align:right;">
|
||||
<?php
|
||||
@ -97,11 +102,10 @@
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div> </div>
|
||||
<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>
|
||||
<tr>
|
||||
|
||||
@ -114,34 +118,33 @@
|
||||
<tr>
|
||||
<td>
|
||||
<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 colspan="2">
|
||||
<p><strong>Delivery To :</strong></p>
|
||||
<p><?php echo $DeliveryAddress; ?></p>
|
||||
<p><?php echo $DeliveryAddress?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PO DATE :<?php echo $Podt; ?></td>
|
||||
<td colspan="2">DISPATCH / SCHEDULE BY :<?php echo $Import_DispatchDetails.$DeliverySchedule;?></td>
|
||||
<td>PLACE OF ORIGIN:<?php echo $Placeoforigin; ?></td>
|
||||
<td>PO DATE :<?php echo $Podt?></td>
|
||||
<td colspan="2">DELIVERY DATE / SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<p> </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>
|
||||
<tr>
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center </td>
|
||||
</tr>
|
||||
<?php
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td>Requistion Number</td>
|
||||
<td>Requested By</td>
|
||||
<td>Requested Department</td>
|
||||
<td>Cost Center</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
|
||||
@ -158,97 +161,113 @@
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
</table><p> </p>
|
||||
<div class="page" style="font-size:14px;">
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th>#</th>
|
||||
<th>Item Name</th>
|
||||
<th>Item and Description</th>
|
||||
<th>Qty</th>
|
||||
<th>UOM</p>
|
||||
<?php if($currencyName!='INR'){ ?>
|
||||
|
||||
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
|
||||
|
||||
<?php
|
||||
|
||||
} else{
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<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>
|
||||
|
||||
<?php
|
||||
|
||||
} 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>
|
||||
<?php
|
||||
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>
|
||||
<tr>
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td><?php echo $record->MaterialName ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
<td align="right"><?php echo $record->UOM ; ?></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>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<td align="right"><?php $BasicValue=($record->Quantity*$record->Rate);
|
||||
echo number_format($BasicValue,2) ; ?></td>
|
||||
</tr>
|
||||
|
||||
<?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> </p>
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<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;" ><?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($OrderValue,2); } else {?> <?php echo number_format($OrderValue,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($TotalOrderValue,2); } else {?> <?php echo number_format($TotalOrderValue,2);}?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -264,25 +283,21 @@
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<p><strong>Special Instruction:</strong></p>
|
||||
<p><?php echo $ServiceDescription;?></p>
|
||||
<p> </p>
|
||||
<?php
|
||||
|
||||
</table>
|
||||
|
||||
<div align="Left"> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!-- <table width="100%">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><b>Released By:</b></td>
|
||||
@ -293,17 +308,18 @@
|
||||
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table> -->
|
||||
<p> </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>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user