import pdf
This commit is contained in:
parent
565f81dac2
commit
d57c6261e5
@ -1341,9 +1341,12 @@ public function importpoprint($PONO)
|
||||
$Depcode='';
|
||||
$Currencycode='';
|
||||
$data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformationforPDF();
|
||||
$data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
|
||||
$data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
|
||||
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
|
||||
//print_r( $data['releasedetails']);
|
||||
|
||||
$data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
|
||||
//print_r( $data['RequistionDetails']);
|
||||
foreach ($data['POItem'] as $Reqdby)
|
||||
{
|
||||
$Requester=$Reqdby->Requestedby;
|
||||
|
||||
@ -784,9 +784,9 @@ function GetImportPurchaseOrderDetailsForPDF($PONO = '')
|
||||
// join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
|
||||
// where LineItem.PONO =?';
|
||||
|
||||
$subQuery='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,Mat.MaterialCode,Mat.MaterialName,Import_DispatchDetails,
|
||||
$subQuery='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,Mat.MaterialCode,Mat.MaterialName,Import_DispatchDetails,LineItem.Per,
|
||||
Mat.UOM,Quantity,ReqMas.Requestedby,Rate,ROUND((RMCIncludingCustomersPerKG*Quantity),2)as Taxamount ,
|
||||
ProductPrice,Tax.*,LineItem.CostCenterCode ,Date(ReqMast.ReqDate) as ReqDate,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend,AdvanceAmount, Pay.PaymentTerms as Pay,ROUND((Quantity *Rate),2 ) as BasicValue,HSNCODE
|
||||
ProductPrice,Tax.*,LineItem.CostCenterCode ,Date(ReqMast.ReqDate) as ReqDate,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend,AdvanceAmount, Pay.PaymentTerms as Pay,ROUND((Quantity *Rate),2 ) as BasicValue,HSNCODE,sup.EmailAddress,sup.SupplierID,sup.PAN,sup.ContactNumber,sup.GSTNO
|
||||
FROM T_PurchaseOrder_LineItem LineItem
|
||||
join T_Requestion_Master ReqMas on ReqMas.ReqNo=LineItem.ReqNo
|
||||
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
|
||||
|
||||
@ -49,11 +49,11 @@
|
||||
{
|
||||
$CompanyName = $CO->CompanyName;
|
||||
$CompanyAddress = $CO->Address;
|
||||
$companyEmail=$CO->EmailAddress;
|
||||
$companyGst=$CO->GSTNO;
|
||||
$companyPan=$CO->PAN;
|
||||
$companyWebsit=$CO->companyWebsite;
|
||||
$CompanyStateCode=$CO->StateCode;
|
||||
$companyEmail=$CO->EmailAddress;
|
||||
$companyGst=$CO->GSTNO;
|
||||
$companyPan=$CO->PAN;
|
||||
$companyWebsit=$CO->companyWebsite;
|
||||
$CompanyStateCode=$CO->StateCode;
|
||||
}
|
||||
}
|
||||
foreach ($GetPoFormat[0] as $For)
|
||||
|
||||
582
application/views/importpopdf.php
Executable file → Normal file
582
application/views/importpopdf.php
Executable file → Normal file
@ -13,8 +13,13 @@
|
||||
$DeliverySchedule='';
|
||||
$ServiceDescription = '';
|
||||
$ReqBy='';
|
||||
$PaymentTerms='';
|
||||
$advance=0;
|
||||
$PaymentTerms='';
|
||||
$advance=0;
|
||||
$SupEmail='';
|
||||
$supplierPAN='';
|
||||
$InsuranceNo='';
|
||||
$InsuranceStatus='';
|
||||
$InsureOpt='';
|
||||
|
||||
|
||||
$index=0;
|
||||
@ -24,18 +29,33 @@
|
||||
{
|
||||
$CompanyName = $CO->CompanyName;
|
||||
$CompanyAddress = $CO->Address;
|
||||
$companyEmail=$CO->EmailAddress;
|
||||
$companyGst=$CO->GSTNO;
|
||||
$companyPan=$CO->PAN;
|
||||
$companyWebsit=$CO->companyWebsite;
|
||||
$CompanyStateCode=$CO->StateCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
foreach ($GetPoFormat[0] as $For)
|
||||
{
|
||||
$PONO = $For;
|
||||
|
||||
}
|
||||
|
||||
|
||||
$TotalOrderValue1='';
|
||||
$PlaceofOrigin='';
|
||||
|
||||
if(!empty($POItem))
|
||||
{
|
||||
|
||||
foreach ($POItem as $PO)
|
||||
{
|
||||
$ReqNo=$PO->ReqNo;
|
||||
$PONO = $PO->PONO;
|
||||
// $PONO = $PO->PONO;
|
||||
$postatus= $PO->Status;
|
||||
$SuplierName = $PO->SupplierName;
|
||||
$SuplierAddress = $PO->Address;
|
||||
@ -62,10 +82,39 @@
|
||||
}
|
||||
else{
|
||||
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
|
||||
$DeliveryDate = $dtDe->format('d-m-Y');
|
||||
$DeliverySchedule = '';
|
||||
$Import_DispatchDetails=$PO->Import_DispatchDetails;
|
||||
$DeliveryDate = $dtDe->format('d-m-Y');
|
||||
$DeliverySchedule = '';
|
||||
$Import_DispatchDetails=$PO->Import_DispatchDetails;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$supOfferNo=$PO->Supplier_Offer_No;
|
||||
|
||||
$ourRef=$PO->Other_Reference;
|
||||
$SupEmail=$PO->EmailAddress;
|
||||
$supplierVendor=$PO->SupplierID;
|
||||
$supplierPAN=$PO->PAN;
|
||||
$SupplierContact=$PO->ContactNumber;
|
||||
$supplierGST=$PO->GSTNO;
|
||||
$finCap=$PO->Fincap;
|
||||
$ModeOfShipment=$PO->Mode_Of_Shipment;
|
||||
|
||||
if($PO->InsuranceStatus=='1')
|
||||
{
|
||||
$InsuranceStatus='YES';
|
||||
$InsuranceNo=$PO->InsuranceNumber;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$InsuranceStatus='NO';
|
||||
$InsuranceNo='';
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//echo $SuplierName;
|
||||
@ -105,19 +154,68 @@
|
||||
}
|
||||
|
||||
?>
|
||||
<style>
|
||||
@page { margin: 240px 50px 30px 50px; }
|
||||
.header { position: fixed; left: 0px; top: -240px; right: 0px; height: 550px;text-align: center; }
|
||||
.footer { position: fixed; bottom: 0px; }
|
||||
.pagenum:before { content: counter(page); }
|
||||
</style>
|
||||
<div class="footer">Page: <span class="pagenum"></span></div>
|
||||
|
||||
<div class="header">
|
||||
<div style="text-align:right;">
|
||||
<style>
|
||||
@page { margin: 290px 25px 210px 25px; }
|
||||
.header { position: fixed; left: 0px; top: -290px; right: 0px; height: 500px;text-align: center; }
|
||||
.footer { position: fixed; bottom: 10px;}
|
||||
.pagenum:before { content: counter(page); }
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<div class="footer" style="font-size:12px;">
|
||||
<table style="border-collapse: collapse; height: 8px;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p><b>Note:</b> Please acknowledge receipt of this order for acceptance<br /> Material to be delivered to our stores before 3pm<br /> Please refer order number and item code in your challan/invoice</p>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<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
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
<p>For SIDDHARTH INDUSTRIES</p>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<p>Authorised signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><p style="text-align: center;">This is a system generated purchase order</p></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Page: <span class="pagenum"></span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="header" style="font-size:12px;">
|
||||
<div style="text-align:right;">
|
||||
<?php
|
||||
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||
{}
|
||||
{
|
||||
echo '<br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div><b>DRAFT</b> </div>';
|
||||
@ -126,83 +224,111 @@
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/I </a></span></center>
|
||||
<p> </p>
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:1px;"><img width="125" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg=="></td>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style= "text-align: center;" colspan="12"><center> <span style="font-size:24px;">PURCHASE ORDER </span></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:1px;background-color: #2c0101;" rowspan="2"><center><img width="100" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg==" width="80" /></center></td>
|
||||
<td style="text-align: left;" colspan="5" rowspan="2">
|
||||
<span><strong style="font-size:16px;"> <?php echo $CompanyName; ?> </strong></span><br>
|
||||
<span><?php echo $CompanyAddress; ?></span><br>
|
||||
<table style="margin-left: -1px;">
|
||||
<tr>
|
||||
<td style="border: none;">
|
||||
<strong>web: </strong><?php echo $companyWebsit; ?>
|
||||
</td>
|
||||
<td style="border: none;">
|
||||
<strong> PAN:</strong><?php echo $companyPan; ?>
|
||||
|
||||
<td colspan="3">
|
||||
<p style="text-align: center; color:#3c8dbc;font-size:16px;""><?php echo $CompanyName; ?></p>
|
||||
<p style="text-align: center;"><?php echo $CompanyAddress; ?></p>
|
||||
</td>
|
||||
<td colspan="1">
|
||||
<p>PO No: <?php echo $PONO?></p>
|
||||
<p>Date: <?php echo $Podt?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>Supplier :</p>
|
||||
|
||||
</td>
|
||||
<td colspan="3" style="text-align: center;"><?php echo $SuplierName?><br /><?php echo $SuplierAddress ?> </td>
|
||||
<td colspan="1">DISPATCH INSTRUCTION / SCHEDULE BY: <?php echo $Import_DispatchDetails.$DeliverySchedule;?><br /><br /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: none;">
|
||||
<strong>Email: </strong><?php echo $companyEmail; ?>
|
||||
</td>
|
||||
<td style="border: none;">
|
||||
<strong> GSTIN: </strong><?php echo $companyGst; ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<span><strong>Purchase Order No:</strong></span><br>
|
||||
<span> <?php echo $PONO?></span>
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<span><strong> PO Date :</strong> </span><br>
|
||||
<span> <?php echo $Podt?></span>
|
||||
</td>
|
||||
|
||||
|
||||
<div class="page" style="font-size:12px;">
|
||||
|
||||
|
||||
|
||||
<p>Indent ref: <?php echo $ReqNo;?>/ dept:<?php echo $DEPNAME; ?> / ccd:<?php echo $CostCenterCode; ?> </p>
|
||||
|
||||
|
||||
|
||||
<p>Please arrange to deliver the materials listed below as per schedule to our works</p><!--Data should be come-->
|
||||
|
||||
|
||||
<!-- <table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr bgcolor="#8c8c8c" color="#fff">
|
||||
<td style="text-align: center;">Requistion Number</td>
|
||||
<td style="text-align: center;">Requistion Date</td>
|
||||
<td style="text-align: center;">Requested By</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span><strong>Supplier's Offer No</strong>:<br> <?php echo $supOfferNo; ?></span>
|
||||
</td>
|
||||
<td colspan="3"><strong>Our Reference : </strong><br> <?php echo $ourRef; ?> </td> </tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;"><?php echo $ReqNo;?></td>
|
||||
<td style="text-align: center;">03/08/2017</td>
|
||||
<td style="text-align: center;"><?php echo $ReqBy;?></td>
|
||||
<td style="text-align: center;"><?php echo $DEPNAME?></td>
|
||||
<td style="text-align: center;"><?php echo $CostCenterCode?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table> -->
|
||||
|
||||
|
||||
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" border="1" width="100%" >
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<th style="text-align: center;">#</th>
|
||||
<th style="text-align: center;">Item and Description</th>
|
||||
<th style="text-align: center;">HSN Code</th>
|
||||
<th style="text-align: center;">UOM</th>
|
||||
<th style="text-align: center;">Qty</th>
|
||||
|
||||
<th style="text-align: center;">Rate per unit in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<th style="text-align: center;">Basic Price in <?php echo "$CurrencyCode ($CurrencyName)"?></th>
|
||||
<!-- <th>Total Amount in <?php echo "$CurrencyCode ($CurrencyName)"?></th> -->
|
||||
|
||||
</tr>
|
||||
<td colspan="4" rowspan="2"><u><strong style="font-size:16px;">Shipped From:</strong>
|
||||
|
||||
</u><br /> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?><br/></br> <strong>Email :</strong><?php echo $SupEmail; ?><br><table width="100%" style="margin-left: -1px;"><tr><td style="border: none;"><strong>Vendor code:</strong> <?php echo $supplierVendor; ?> </td><td style="border: none;"><strong>PAN:</strong><?php echo $supplierPAN; ?></td></tr><tr><td style="border: none;width:50%"><strong>Contact :</strong> <?php echo $SupplierContact; ?> </td><td style="border: none;"><strong>GSTIN:</strong> <?php echo $supplierGST; ?> </td></tr></table></td>
|
||||
|
||||
<td rowspan="2" colspan="2"><u><strong style="font-size:16px;">Shipped To:</strong></u><br /><?php echo $CompanyAddress;?><br> <strong>State code:</strong><?php echo $CompanyStateCode;?> </td>
|
||||
<td colspan="6"><table><tr><td style="border: none;"><strong>Dispatch Instruction:</strong><br><?php echo $Import_DispatchDetails.$DeliverySchedule?></td></tr><tr><td style="border: none;"><strong>Place of Orgin:</strong><br><?php echo $PlaceofOrigin?></td></tr></table></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
foreach($RequistionDetails as $ReqDetails)
|
||||
{
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><strong>Indent :</strong></td>
|
||||
|
||||
|
||||
<td width="11%"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("d-m-Y"); echo $date; ?></td>
|
||||
<td><strong>Dept:</strong> <?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td><strong>CCD: </strong><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
|
||||
<td><strong>Fin cap:<?php echo $finCap; ?></td>
|
||||
</tr>
|
||||
<?php } } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="page" style="height:98%;border-right: solid 1.5px ;
|
||||
border-left: solid 1.5px;font-size:12px;">
|
||||
<br>
|
||||
<p><strong>Mode of Shipment</strong> : <?php echo $ModeOfShipment ?></p>
|
||||
<p><strong>Insurance</strong> : <?php echo $InsuranceNo ?></p>
|
||||
<p>Please arrange to deliver the material /services listed below as per schedule to our works</p>
|
||||
<table style="border-collapse: collapse;width: 100%;border-left-style:hidden;border-right-style:hidden;" border="1" cellspacing="0" cellpadding="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width: 64px; text-align: center;"><strong>SNo</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>Item Code</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>ITEM DESCRIPTION</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>HSN</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>UOM</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>QTY</strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>Rate <?php echo "$CurrencyCode ($CurrencyName)"?></strong></td>
|
||||
<td style="width: 65px; text-align: center;"><strong>PER</strong></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if(!empty($POItem))
|
||||
{
|
||||
@ -234,27 +360,26 @@
|
||||
$index = $index + 1;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->HSNCODE;?></td>
|
||||
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
|
||||
<td align="right"><?php echo $record->Quantity ; ?></td>
|
||||
|
||||
<td align="right"><?php echo $record->Rate ; ?></td>
|
||||
<td align="right"><?php $BasicValue=($record->Quantity*$record->Rate);
|
||||
echo number_format($BasicValue,2,'.','') ; ?></td>
|
||||
<!-- <td align="right"><?php echo $record->TotalOrderValue; ?></td> -->
|
||||
|
||||
<!-- <td align="right"><?php $TotalOrderValue=($record->Quantity*$record->Rate);
|
||||
echo number_format($BasicValue,2) ; ?></td> -->
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
<tr style="line-height: 1.9em;text-align: center;border: none;">
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $index ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->HSNCODE;?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->UOM ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->Quantity ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->Rate ; ?></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"><?php echo $record->Per ; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$AfterLandingCharge= $AfterLandingCharge+$record->AfterLandingCharge;
|
||||
$AfterHighSeasSalesCharge=$AfterHighSeasSalesCharge+$record->AfterHighSeasSalesCharge ;
|
||||
@ -277,144 +402,105 @@
|
||||
|
||||
?>
|
||||
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<p><strong>Payment Terms:</strong> <?php echo $PaymentTerms;?></p>
|
||||
|
||||
<div align="Left"> <b>Special Instructions :</b><br/><?php echo $ServiceDescription;?></div>
|
||||
<?php
|
||||
$i=0;
|
||||
if(!empty($POItem))
|
||||
{
|
||||
foreach($POItem as $x){
|
||||
if($x->ParentPO != ''){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($i>0){
|
||||
?>
|
||||
|
||||
<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->LineAmend ;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<!-- <table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"> <strong>Amended Details</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><strong>Amended Payment Terms :</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"><strong>Item Description</strong></td>
|
||||
<td style="text-align: center;">Previous Details</td>
|
||||
<td style="text-align: center;">Current Details</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="3"> RMT022</td>
|
||||
<td> Amended Qty :20.00</td>
|
||||
<td> Current Qty : 5.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Amended Rate :200.00</td>
|
||||
<td> Current rate:500.00</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Amended Insurance value: 40:00</td>
|
||||
<td> Current Insurance Value :50:00</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table> -->
|
||||
<p> </p>
|
||||
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="3"><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." ";?></em></td>
|
||||
<td style="text-align: right;" ><strong>Total Amount In </strong></td> <td style="text-align: right;"><?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format($TotalOrderValue1,2,'.','');?> </strong></td></tr>
|
||||
<tr><td style="text-align: right;" ><strong>Advance Paid In </strong></td> <td style="text-align: right;"><?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format($advance,2,'.','');?> </strong></td></tr>
|
||||
<tr><td style="text-align: right;" ><strong>Balance amount needs to pay </strong></td> <td style="text-align: right;"> <?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format(($TotalOrderValue1 - $advance),2,'.','');?> </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?php for($index = ++$index;$index <10;$index++) { ?>
|
||||
<tr style="line-height: 1.9em;text-align: center;border: none;">
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 0px ;"> <br><br></td>
|
||||
<td style="text-align: left;border-right: solid 1px ;
|
||||
border-left: solid 1px ;"> </td>
|
||||
<td style="text-align: left;border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
<td style="border-right: solid 1px ;
|
||||
border-left: solid 1px ;"></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td style="text-align: center;" colspan="2">
|
||||
|
||||
<p> </p>
|
||||
<p>Authorized Signatory</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>Note: Please acknowledge receipt of this order for acceptance</p>
|
||||
<p> Material to be delivered to our stores before 3pm </p>
|
||||
<p> Please refer order number and item code in your challan/invoice </p>
|
||||
<p> </p>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
if(!empty($POItem))
|
||||
{
|
||||
foreach($POItem as $x){
|
||||
if($x->ParentPO != ''){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if($i>0){
|
||||
?>
|
||||
|
||||
<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->LineAmend ;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<p style="text-align: left;"><strong>Special instructions:</strong></p>
|
||||
<p><?php echo $ServiceDescription;?></p>
|
||||
|
||||
|
||||
|
||||
<table style="border-collapse: collapse;position:fixed;bottom:85px;border-bottom-style:hidden;" border="1" width="100.3%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 50%;" colspan="4" rowspan="3">
|
||||
<p><strong>Payment terms</strong>:</p>
|
||||
<p><?php echo $PaymentTerms;?></p>
|
||||
</td>
|
||||
<td style="text-align: center;" colspan="2"><strong>Total Amount In</strong></td>
|
||||
<td style="text-align: center;" colspan="2"><strong>Order Value</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="2"><?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format($TotalOrderValue1,2,'.','');?></td>
|
||||
<td style="text-align: center;" colspan="2"><?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format(($TotalOrderValue1 - $advance),2,'.','');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"><strong> Order value in words:</strong> <br><?php echo $TotalAmountInWords." ";?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
@ -58,7 +58,7 @@ if(empty($Status))
|
||||
<tr id="<?php echo $index ?>" >
|
||||
|
||||
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->ReqType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?></u>
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->RType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?></u>
|
||||
|
||||
|
||||
<?php if(($record->RType=='IMPORT' || $record->RType=='CAPITAL')&&($record->StatusCode!='ST015'))
|
||||
|
||||
@ -67,7 +67,7 @@ if(empty($Status))
|
||||
<tr id="<?php echo $index ?>" >
|
||||
|
||||
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->ReqType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?> </td>
|
||||
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->RType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?> </td>
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user