importpo pdf fixed

This commit is contained in:
venbatechnologies@gmail.com 2017-06-21 16:36:46 +05:30
parent 7270630a16
commit 9b07daabe5
4 changed files with 23 additions and 12 deletions

View File

@ -302,8 +302,6 @@ class purchaseorder extends BaseController
$exRate=$Rate->ExchangeRate; $exRate=$Rate->ExchangeRate;
// $data[$Rate->ExchangeRate]=$Rate->ExchangeRate; // $data[$Rate->ExchangeRate]=$Rate->ExchangeRate;
} }
$data['ExchangeRate']=$exRate; $data['ExchangeRate']=$exRate;

View File

@ -1833,6 +1833,10 @@ $('#drpSupplier').change(function() {
}); });
$('#currencytype').change(function(){
$('#ExchangeRate').val('');
});
$('#ReqNo').change(function() { $('#ReqNo').change(function() {

View File

@ -1589,8 +1589,7 @@ $('#drpSupplier').change(function() {
} }
}); });
}
}
else else
{ {
alert('Please select the SupplierID'); alert('Please select the SupplierID');
@ -1600,6 +1599,10 @@ $('#drpSupplier').change(function() {
}); });
$('#currencytype').change(function(){
$('#ExchangeRate').val('');
});
$('#ReqNo').change(function() { $('#ReqNo').change(function() {

View File

@ -10,6 +10,7 @@
$Podt = ''; $Podt = '';
$DeliveryDate =''; $DeliveryDate ='';
$ServiceDescription = ''; $ServiceDescription = '';
$index=0;
if(!empty($CompanyDetails)) if(!empty($CompanyDetails))
{ {
@ -45,18 +46,20 @@
<div><center> <div><center>
<h2>IMPORT PURCHASE ORDER</h2> <h2>IMPORT PURCHASE ORDER</h2>
<a style="color:#515151">#PO0001</a></center> <a style="color:#515151">PO NO:<?php echo $PONO?> </a></center>
</div> </div>
<div align="right"> <?php echo $Podt?> </div>
<p> <p>
<b style="color:#3c8dbc">Siddharth Industries</b><br/> Survey No: 168/1C3,Pennalur Pet Road,<br/>Goonipalyam village,Uthukottai Taluk,<br/>Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.</p> <b style="color:#3c8dbc"><?php echo $CompanyName; ?></b><br/> <?php echo $CompanyAddress; ?></p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%"> <table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr> <tr>
<td> <td>
<p><a style="color:#3c8dbc">Vendor Address</a> <br/> DR Enterprices <br/>Uthukottai Taluk,Tiruvallur Dist,<br/> Chennai,Tamilnadu,Pin code : 602026.</p></td> <p><a style="color:#3c8dbc">Vendor Address : </a> <br/> <?php echo $SuplierName?> <br/><?php echo $SuplierAddress ?></p></td>
<td> <td>
<p><a style="color:#3c8dbc">Delivery To</a><br/> Siddharth Industries<br/> Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, <br/> Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.<p></td> <p><a style="color:#3c8dbc">Delivery To :</a><br/> <?php echo $DeliveryAddress?><p></td></td>
<td>PO Date :2/5/2017 <br/> Delivery Date :10/5/2017</td> <td><div align="right"> Delivery Date :<?php echo $DeliveryDate?></div></p>
</tr> </tr>
</table> </table>
@ -108,6 +111,9 @@
$RMCIncludingCustomersPerKG=0; $RMCIncludingCustomersPerKG=0;
$AfterExciseDutySHCess=0; $AfterExciseDutySHCess=0;
$TotalOrderValue=0; $TotalOrderValue=0;
$index=0;
foreach($POItem as $record) foreach($POItem as $record)
{ {
@ -128,7 +134,9 @@
<td align="right"><?php echo $record->AfterCustomDuty ; ?></td> <td align="right"><?php echo $record->AfterCustomDuty ; ?></td>
<td align="right"><?php echo $record->AfterExciseDuty ; ?></td> <td align="right"><?php echo $record->AfterExciseDuty ; ?></td>
<td align="right"><?php echo $record->AfterExciseDutyEdCess ; ?></td> <td align="right"><?php echo $record->AfterExciseDutyEdCess ; ?></td>
<td align="right"><?php echo $record->AfterExciseDutySHCess ; ?></td>
<td align="right"><?php echo $record->AfterCustomEdCess ; ?></td> <td align="right"><?php echo $record->AfterCustomEdCess ; ?></td>
<td align="right"><?php echo $record->AfterCustomSHCess ; ?></td>
<td align="right"><?php echo $record->AfterAddlExciseDuty ; ?></td> <td align="right"><?php echo $record->AfterAddlExciseDuty ; ?></td>
<td align="right"><?php echo $record->Grossdutypayable ; ?></td> <td align="right"><?php echo $record->Grossdutypayable ; ?></td>
<td align="right"><?php echo $record->AvailableModvat ; ?></td> <td align="right"><?php echo $record->AvailableModvat ; ?></td>
@ -136,8 +144,6 @@
<td align="right"><?php echo $record->purchaseratePerKG ; ?></td> <td align="right"><?php echo $record->purchaseratePerKG ; ?></td>
<td align="right"><?php echo $record->CustomDutyExpensesPerKG ; ?></td> <td align="right"><?php echo $record->CustomDutyExpensesPerKG ; ?></td>
<td align="right"><?php echo $record->RMCIncludingCustomersPerKG ; ?></td> <td align="right"><?php echo $record->RMCIncludingCustomersPerKG ; ?></td>
<td align="right"><?php echo $record->AfterCustomSHCess ; ?></td>
<td align="right"><?php echo $record->AfterExciseDutySHCess ; ?></td>
<td align="right"><?php echo $record->QuantityKG ; ?></td> <td align="right"><?php echo $record->QuantityKG ; ?></td>
<td align="right"><?php echo $record->TotalOrderValue; ?></td> <td align="right"><?php echo $record->TotalOrderValue; ?></td>
</tr> </tr>