service pdf changes

This commit is contained in:
saravanakumar_kandasami 2017-09-14 13:06:56 +05:30
parent 8d1d1a0289
commit f08f62a0e7
2 changed files with 64 additions and 63 deletions

View File

@ -1 +1 @@
<span style='color: #900'>2,048 KB</span> <span style='color: #090'>342.3071 ms</span><br />
<span style='color: #900'>6,144 KB</span> <span style='color: #090'>743.6862 ms</span><br />

View File

@ -123,18 +123,58 @@
$supplierVendor=$PO->SupplierID;
}
}
?>
<style>
@page { margin: 280px 25px 120px 25px; }
@page { margin: 280px 25px 210px 25px; }
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 500px;text-align: center; }
.footer { position: fixed; bottom: 120px;}
.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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Material to be delivered to our stores before 3pm<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 style="border:1px solid;font-size:12px;">
<div class="header">
?>
<div align="Left"> Released By : <?php echo $detail->FirstName;?></div>
<div align="Left"> Released On : <?php echo $releasedOn->format('d-m-Y');?></div>
<?php
}
}
else { }
?>
</td>
<td style="text-align: right;">
<p>For SIDDHARTH INDUSTRIES</p>
<p>&nbsp;</p>
<p>&nbsp;</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)
@ -154,12 +194,12 @@
<td style="width:1px;" 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>
<span><?php echo $companyWebsit; ?></a> </span>
<span><?php echo $CompanyAddress; ?></span><br><br>
<span><strong>web: </strong><?php echo $companyWebsit; ?></a> </span>
<span><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAN:</strong> <?php echo $companyPan; ?></span><br>
<span>Email: <?php echo $companyEmail; ?> </span>
<span><strong>Email: </strong><?php echo $companyEmail; ?> </span>
<span><strong>&nbsp;&nbsp;GSTIN: </strong><?php echo $companyGst; ?></span>
</td>
<td colspan="3">
@ -176,11 +216,11 @@
<td colspan="3">
<span><strong>Supplier's Offer No</strong>:<br> <?php echo $supOfferNo; ?></span>
</td>
<td colspan="3"><strong>Contact : </strong><br> <?php echo $supRef; ?></td> </tr>
<td colspan="3"><strong>Our Reference : </strong><br> <?php echo $supRef; ?></td> </tr>
<tr>
<td colspan="4" rowspan="2"><u><strong style="font-size:16px;">Shipped From:</strong></u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vendor code: <?php echo $supplierVendor; ?> <!--data will come--><br /><?php echo $SuplierName?><br/><?php echo $SuplierAddress ?> <br /><strong>Email ID:</strong><?php echo $supplierEmail; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>PAN:</strong><?php echo $supplierPan; ?><br ><strong>Our Reference:</strong><?php echo $supplierContact; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>GSTIN:</strong><?php echo $supplierGst; ?></td>
<td colspan="4" rowspan="2"><u><strong style="font-size:16px;">Shipped From:</strong></u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vendor code: <?php echo $supplierVendor; ?><br /><?php echo $SuplierName?><br/><?php echo $SuplierAddress ?> <br/><br /><strong>Email ID:</strong><?php echo $supplierEmail; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>PAN:</strong><?php echo $supplierPan; ?><br ><strong>Contact :</strong><?php echo $supplierContact; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>GSTIN:</strong><?php echo $supplierGst; ?></td>
<td rowspan="2" colspan="2"><u><strong style="font-size:16px;">Shipped To:</strong></u><br />Survey NO: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist,Chennai,Tamilnadu,602026.<br> <strong>State code:</strong>33 </td><!--data should be come-->
<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"><strong>Delivery</strong> :<br><?php echo $DeliveryDate.$DeliverySchedule;?></td>
</tr>
@ -202,12 +242,13 @@
</tbody>
</table>
</div>
<div class="page" style="height:85%;">
<div class="page" style="height:98%;border:2px solid;font-size:12px;border-bottom:0px;">
<p><strong>Mode of Shipment</strong>: <?php echo $modShp; ?></p>
<p><strong>Insurance </strong>:<?php echo $insNo; ?></p>
<p>Please arrange to deliver the materials listed below as per schedule to our works</p>
<table style="border-collapse: collapse; height: 36px; width: 100%;" border="1" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse; height: 36px; width: 100.3%;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>S#</strong></td>
@ -217,7 +258,7 @@
<td style="text-align: center;"><strong>RATE Rs</strong></td>
<td style="text-align: center;"><strong>PER</strong></td>
</tr>
<tr><td></td><td style="text-align: center;"> <strong><?php echo $serviceDescription; ?></strong></td><td></td><td></td><td></td><td></td></tr>
<tr><td></td><td> <strong><?php echo $serviceDescription; ?></strong></td><td></td><td></td><td></td><td></td></tr>
<?php
if(!empty($POItem))
{
@ -242,7 +283,7 @@
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
<td style="text-align: center;"><?php echo $record->Quantity ; ?>&nbsp;</td>
<td style="text-align: center;"><?php echo $record->Rate ; ?>&nbsp;</td>
<td style="text-align: center;"><?php echo $record->Per; ?></td><!--per data should be come-->
<td style="text-align: center;"><?php echo $record->Per; ?></td>
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $TotalAmount;
@ -322,7 +363,7 @@
</tr>
<?php
if(!empty($serviceTaxList))
if(!empty($serviceTaxList))
{
foreach($serviceTaxList as $st)
@ -332,12 +373,12 @@
<td style="text-align: center;"><?php echo $st->SGST?></td>
<td style="text-align: center;"><?php echo $st->IGST?></td>
<td style="text-align: center;"><?php echo $st->otherallowance?></td>
</tr>
<?php
}
}?>
</tr>
</tbody>
</table>
@ -345,10 +386,10 @@
<p style="text-align: left;"><?php echo $ServiceDescription;?></p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<table style="border-collapse: collapse;position:fixed;bottom:110px;" border="1" width="100.3%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="4" rowspan="3">
<td colspan="4" rowspan="3" width="50%">
<span><strong>Payment terms :</strong><br><?php echo $PaymentTerms ."&nbsp;&nbsp;".$PaymentOtherDescription;?></span>
</td>
<td style="text-align: center;"><strong>Total Amount Rs</strong></td>
@ -377,47 +418,7 @@
</table>
</div>
<div class="footer">
<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Material to be delivered to our stores before 3pm<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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"> Released By : <?php echo $detail->FirstName;?></div>
<div align="Left"> Released On : <?php echo $releasedOn->format('d-m-Y');?></div>
<?php
}
}
else { }
?>
</td>
<td style="text-align: right;">
<p>For SIDDHARTH INDUSTRIES</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</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>
</body>