REVENUE PO PDF
This commit is contained in:
parent
25248c4300
commit
52d45d34fd
@ -19,6 +19,11 @@
|
||||
$amt='';
|
||||
$totaltaxonly=0;
|
||||
$advance=0;
|
||||
$supOfferNo='';
|
||||
$supRef = '';
|
||||
$finCap='';
|
||||
$modeofshipment='';
|
||||
$insuranceno='';
|
||||
if(!empty($CompanyDetails))
|
||||
{
|
||||
foreach ($CompanyDetails as $CO)
|
||||
@ -54,7 +59,12 @@
|
||||
|
||||
|
||||
$ServiceDescription =$PO->ServiceDescription;
|
||||
$supOfferNo = $PO->Supplier_Offer_No;
|
||||
$supRef = $PO->Supplier_Reference;
|
||||
$finCap = $PO->Fincap;
|
||||
$modeofshipment = $PO->Mode_Of_Shipment;
|
||||
$PaymentTerms = $PO->PaymentTerms;
|
||||
$insuranceno = $PO->InsuranceNumber;
|
||||
if($PaymentTerms=='Others'){
|
||||
$PaymentOtherDescription=$PO->PaymentOtherDescription;
|
||||
}
|
||||
@ -98,130 +108,140 @@
|
||||
|
||||
?>
|
||||
<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; }
|
||||
@page { margin: 280px 25px 210px 25px; }
|
||||
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 500px;text-align: center; }
|
||||
.footer { position: fixed; bottom: 10px;}
|
||||
.pagenum:before { content: counter(page); }
|
||||
</style>
|
||||
<div class="footer">Page: <span class="pagenum"></span></div>
|
||||
|
||||
<div class="header">
|
||||
<div style="text-align:right;">
|
||||
<?php
|
||||
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
|
||||
{}
|
||||
else
|
||||
{
|
||||
echo '<div><b>DRAFT</b> </div>';
|
||||
|
||||
}
|
||||
<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>
|
||||
<div> </div>
|
||||
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/R </a></span></center>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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> </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>
|
||||
|
||||
</td>
|
||||
<td colspan="3" style="text-align: center;"><?php echo $SuplierName?><br /><?php echo $SuplierAddress ?> </td>
|
||||
<td colspan="1">DELIVERY DATE / SCHEDULE BY: <?php echo $DeliveryDate.$DeliverySchedule;?><br /><br /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<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 '<b>DRAFT</b>'; }
|
||||
?>
|
||||
</div>
|
||||
<p> </p>
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<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;" 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><br>
|
||||
<span><strong>web: </strong>www.Sidharthindustries.com<!-- <?php echo $companyWebsit; ?> --> </span>
|
||||
|
||||
<span><strong> PAN:</strong>BCHP6184J <!-- <?php echo $companyPan; ?> --></span><br>
|
||||
|
||||
<span><strong>Email: </strong>purchase@sidharthindustries.com<!-- <?php echo $companyEmail; ?> --> </span>
|
||||
<span><strong> GSTIN: </strong>33BCHPS1840J1ZJ<!-- <?php echo $companyGst; ?> --></span>
|
||||
</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>
|
||||
|
||||
</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 $supRef; ?></td> </tr>
|
||||
<tr>
|
||||
<td colspan="4" rowspan="2"><u><strong style="font-size:16px;">Shipped From:</strong></u> Vendor code: Sup008 <!--data will come--><br /><?php echo $SuplierName?><br/><?php echo $SuplierAddress ?> <br/><br /><strong>Email ID:</strong>DR@dr.com<!-- <?php echo $supplierEmail; ?> --> <strong>PAN:</strong>DDDDD1234D<!-- <?php echo $supplierPan; ?> --><br ><strong>Contact :</strong>1111111111<!-- <?php echo $supplierContact; ?> --> <strong>GSTIN:</strong>33AADCR1792G1Z1<!-- <?php echo $supplierGst; ?> --></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>33 </td><!--data should be come-->
|
||||
<td colspan="6"><strong>Delivery</strong> :<br><?php echo $DeliveryDate.$DeliverySchedule;?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
foreach($RequistionDetails as $ReqDetails)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><strong>Indent :</strong></td>
|
||||
<td><?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:</strong><?php echo $finCap; ?></td>
|
||||
</tr>
|
||||
<?php } } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="page" style="font-size:12px;">
|
||||
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
|
||||
foreach($RequistionDetails as $ReqDetails)
|
||||
{
|
||||
|
||||
?>
|
||||
<div class="page" style="height:98%;border:2px solid;font-size:12px;border-bottom:0px;">
|
||||
<p><strong>Mode of Shipment</strong>:<?php echo $modeofshipment;?> </p>
|
||||
<p><strong>Insurance : </strong><?php echo $insuranceno;?></p>
|
||||
<p>Please arrange to deliver the materials listed below as per schedule to our works</p>
|
||||
|
||||
<p>Indent ref: <?php echo $ReqDetails['RequistionNo']; ?>/<?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("Y-m-d"); echo $date; ?>/ dept:<?php echo $ReqDetails['RequestedDept']; ?> / ccd:<?php echo $ReqDetails['CostCenterCode']; ?> </p>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!-- <table style="border-collapse: collapse;" border="1" width="50%%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<!-- <tr style="background:#8c8c8c;color:#fff;">
|
||||
<td style="text-align: center;">Requisition Number</td>
|
||||
<td style="text-align: center;">Requisition Date</td>
|
||||
<td style="text-align: center;">Requested Department</td>
|
||||
<td style="text-align: center;">Cost Center</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($RequistionDetails))
|
||||
{
|
||||
//print_r($RequistionDetails);die();
|
||||
foreach($RequistionDetails as $ReqDetails)
|
||||
{
|
||||
|
||||
?>
|
||||
<tr style="">
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
|
||||
<td style="text-align: right;"><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("Y-m-d"); echo $date; ?></td>
|
||||
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
|
||||
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
|
||||
</tr>
|
||||
<table style="border-collapse: collapse; height: 36px; width: 100%;" border="1" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;"><strong> SNo</strong></td>
|
||||
<td style="text-align: center;"><strong>ITEM CODE</strong></td>
|
||||
<td style="text-align: center;"><strong> ITEM DESCRIPTION</strong></td>
|
||||
<td style="text-align: center;"><strong>HSN</strong></td>
|
||||
<td style="text-align: center;"> <strong>UOM</strong></td>
|
||||
<td style="text-align: center;"><strong> QTY</strong></td>
|
||||
<td style="text-align: center;"> <strong>RATE Rs</strong></td>
|
||||
<td style="text-align: center;"> <strong>PER</strong></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table> -->
|
||||
|
||||
<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;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="background:#8c8c8c;color:#fff;">
|
||||
<td style="text-align: center;">S No</td>
|
||||
<td style="text-align: center;">Item code</td>
|
||||
<td style="text-align: center;">Item Name/ Description</td>
|
||||
<td style="text-align: center;">HSN Code</td>
|
||||
<td style="text-align: center;">UOM</td>
|
||||
|
||||
<td style="text-align: center;">Quanitity</td>
|
||||
<td style="text-align: center;">Unit Rate</td>
|
||||
<!-- <td style="text-align: center;">Basic Value In INR</td> -->
|
||||
<td style="text-align: center;">Discount</td>
|
||||
|
||||
<td style="text-align: center;">IGST%</td>
|
||||
<td style="text-align: center;">SGST%</td>
|
||||
<td style="text-align: center;">CGST%</td>
|
||||
<td style="text-align: center;">Packing</td>
|
||||
<!-- <td style="text-align: center;">Insurance In INR</td> -->
|
||||
<td style="text-align: center;">Freight</td>
|
||||
<!-- <td style="text-align: center;">Total Amount In INR</td> -->
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if(!empty($POItem))
|
||||
{
|
||||
|
||||
@ -243,26 +263,17 @@
|
||||
$index = $index + 1;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td style="text-align: center;"><?php echo $index ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td style="text-align: center;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td style="text-align: center;"><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";} ; ?></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 echo number_format($record->BasicValue,2,'.','') ; ?></td> -->
|
||||
|
||||
<td style="text-align: right;"><?php if($record->DiscountType == 'PERCENTAGE'){$type="%";}else if($record->DiscountType == 'LUMP SUM'){$type="LS";}else if($record->DiscountType == 'NIL'){$type='';} echo $record->DiscountValue . $type;?></td>
|
||||
|
||||
<td style="text-align: right;"><?php echo $record->IGST."%";?></td>
|
||||
<td style="text-align: right;"><?php echo $record->SGST."%";?></td>
|
||||
<td style="text-align: right;"><?php echo $record->CGST."%";?></td>
|
||||
<td style="text-align: right;"><?php if($record->PackagingType == 'PERCENTAGE'){$type="%";}else if($record->PackagingType == 'LUMP SUM'){$type="LS";}else if($record->PackagingType == 'NIL'){$type='';} echo $record->PackagingValue . $type;?></td>
|
||||
<!-- <td style="text-align: right;"><?php echo $l->Insurance;?></td> -->
|
||||
<td style="text-align: right;"><?php if($record->FreightType == 'PER TRIP'){$type="TRIP"; echo $record->FreightValue ."*" . $record->NoOfTrip . $type;}else{ if($record->FreightType == 'LUMP SUM'){$type="LS";}else if($record->FreightType == 'NIL'){$type='';}else if($record->FreightType == 'PER UOM'){$type='UOM';}else if($record->FreightType == 'PERCENTAGE'){$type='%';} echo $record->PackagingValue . $type;}?></td>
|
||||
<!-- <td style="text-align: right;"><?php echo number_format((($l->BasicValue + $tax)-($l->AfterDiscount)),2,'.','');?></td> -->
|
||||
<tr style="text-align: center;line-height: 1em;">
|
||||
<td><?php echo $index ; ?></td>
|
||||
<td style="text-align: left;"><?php echo $record->MaterialCode ; ?></td>
|
||||
<td style="text-align: left;"><?php echo $record->MaterialName ; ?></td>
|
||||
<td><?php if(!empty($record->HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";} ; ?></td>
|
||||
<td><?php echo $record->UOM ; ?></td>
|
||||
<td><?php echo $record->Quantity ; ?></td>
|
||||
<td><?php echo $record->Rate ; ?></td>
|
||||
<td><?php echo $record->Per ; ?></td><!--per data should be come-->
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$SubTotalAmount = $SubTotalAmount + $record->BasicValue;
|
||||
|
||||
@ -274,18 +285,16 @@
|
||||
$AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue;
|
||||
$AfterDiscount = $AfterDiscount + $record->AfterDiscount ;
|
||||
$AfterPackaging=$AfterPackaging+$record->AfterPackagingValue;
|
||||
$totaltaxonly=($AfterCGST+$AfterSGST+$AfterIGST+$Insurance+$AfterFreightValue+$AfterPackaging);
|
||||
$totaltaxonly=($AfterCGST+$AfterSGST+$AfterIGST);
|
||||
$others=$Insurance+$AfterFreightValue+$AfterPackaging;
|
||||
}
|
||||
|
||||
$OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insurance +$AfterFreightValue+$AfterPackaging) - $AfterDiscount) ;
|
||||
}?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
$i=0;
|
||||
if(!empty($POItem))
|
||||
@ -329,91 +338,86 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insuranc
|
||||
<?php if(!empty($POItem))
|
||||
{
|
||||
|
||||
foreach($POItem as $record)
|
||||
foreach($POItem as $rec)
|
||||
{
|
||||
echo $record->LineAmend ;
|
||||
echo $rec->LineAmend ;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}?>
|
||||
|
||||
<p> <b>Payment Terms :</b> <?php echo $PaymentTerms ." ".$PaymentOtherDescription;?> </p>
|
||||
<div> <b>Special Instruction:</b><br/><?php echo $ServiceDescription;?></div>
|
||||
|
||||
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;" rowspan="5">
|
||||
<p><strong>Total Amount In Words :</strong><br /><br /><b><i><?php echo $TotalAmountInWords;?></i></b></p>
|
||||
<p> </p>
|
||||
</td>
|
||||
<td style="text-align: right;"> <strong>Total Amount Before Tax In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format(($SubTotalAmount-$AfterDiscount),2,'.',''); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"> <strong>Total Tax Amount In INR <strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($totaltaxonly,2,'.','');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td style="text-align: right;"> <strong>Total Amount After Tax In INR </strong></td>
|
||||
<td style="text-align: right;"> <?php echo number_format($OrderValue,2,'.','');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Advance Amount Paid In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format($advance,2,'.','');?></td>
|
||||
</tr>
|
||||
<p> </p>
|
||||
<span><strong>Tax and other details:</strong></span>
|
||||
<table style="border-collapse: collapse; height: 36px;" border="1" width="60%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;"><strong>ITEM CODE</strong></td>
|
||||
<td style="text-align: center;"><strong>DIS</strong></td>
|
||||
<td style="text-align: center;"><strong>PACKING</strong></td>
|
||||
<td style="text-align: center;"><strong>CGST%</strong></td>
|
||||
<td style="text-align: center;"><strong>SGST%</strong></td>
|
||||
<td style="text-align: center;"><strong>IGST%</strong></td>
|
||||
<td style="text-align: center;"><strong>FREIGHT</strong></td>
|
||||
</tr>
|
||||
<?php if(!empty($reveuetax))
|
||||
{
|
||||
|
||||
foreach($reveuetax as $r)
|
||||
{ ?>
|
||||
<tr style="text-align: center;">
|
||||
<td style="text-align: left;"><?php echo $r->Itemcode ; ?></td>
|
||||
<!--<td><?php if($r->DiscountType == 'PERCENTAGE'){$type="%";}else if($r->DiscountType == 'LUMP SUM'){$type="LS";}else if($r->DiscountType == 'NIL'){$type='';} echo $r->DiscountValue . $type;?></td>-->
|
||||
<!--<td><?php if($r->PackagingType == 'PERCENTAGE'){$type="%";}else if($r->PackagingType == 'LUMP SUM'){$type="LS";}else if($r->PackagingType == 'NIL'){$type='';} echo $r->PackagingValue . $type;?></td>-->
|
||||
<td><?php echo $r->DiscountValue;?></td>
|
||||
<td><?php echo $r->PackagingValue;?></td>
|
||||
<td><?php echo $r->CGST."%";?></td>
|
||||
<td><?php echo $r->SGST."%";?></td>
|
||||
<td><?php echo $r->IGST."%";?></td>
|
||||
<td><?php echo $r->FreightValue;?></td>
|
||||
<!-- <td><?php if($r->FreightType == 'PER TRIP'){$type="TRIP"; echo $r->FreightValue ."*" . $r->NoOfTrip . $type;}else{ if($r->FreightType == 'LUMP SUM'){$type="LS";}else if($r->FreightType == 'NIL'){$type='';}else if($r->FreightType == 'PER UOM'){$type='UOM';}else if($r->FreightType == 'PERCENTAGE'){$type='%';} echo $r->FreightValue . $type;}?></td>-->
|
||||
</tr><?php }
|
||||
}?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="text-align: left;"><strong>Special instructions:</strong></p>
|
||||
<p style="text-align: left;"><?php echo $ServiceDescription;?></p>
|
||||
|
||||
<table style="border-collapse: collapse;position:fixed;bottom:110px;" border="1" width="100.3%" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: right;"><strong>Balance Needs to be pay In INR </strong></td>
|
||||
<td style="text-align: right;"><?php echo number_format(($OrderValue-$advance),2,'.','');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<td colspan="4" rowspan="3" width="50%">
|
||||
<span><strong>Payment terms</strong> :<br><?php echo $PaymentTerms ." ".$PaymentOtherDescription;?></span>
|
||||
</td>
|
||||
<td style="text-align: center;"><strong>Total Amount in Rs</strong></td>
|
||||
<td style="text-align: center;"><strong>Total CGST Amount in Rs</strong></td>
|
||||
<td style="text-align: center;"><strong>Total SGST Amount in RS</strong></td>
|
||||
<td style="text-align: center;"><strong>Total IGST Amount in RS</strong></td>
|
||||
<td style="text-align: center;"><strong>Others in Rs</strong></td>
|
||||
<td style="text-align: center;"><strong>Total Tax Amount in Rs</strong></td>
|
||||
<td style="text-align: center;"><strong>Order value in Rs</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: right;"><?php echo number_format($OrderValue,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: right;"><?php echo number_format($AfterCGST,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: right;"><?php echo number_format($AfterSGST,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: right;"><?php echo number_format($AfterIGST,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: center;"><?php echo number_format($others,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: right;"><?php echo number_format($totaltaxonly,2,'.','');?></td><!--data should be come-->
|
||||
<td style="text-align: right;"><?php echo number_format($SubTotalAmount,2,'.','');?></td><!--data should be come-->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<p><strong>Order value in words:</strong> <?php echo $TotalAmountInWords;?></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($releasedetails)){
|
||||
$releasedOn = '';
|
||||
foreach($releasedetails as $detail){
|
||||
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<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>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p></p>
|
||||
|
||||
<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>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user