service po pdf billing

This commit is contained in:
venbatechnologies@gmail.com 2017-08-18 14:56:43 +05:30
parent 88b01d0582
commit c9312de3cc
4 changed files with 15 additions and 8 deletions

View File

@ -250,13 +250,17 @@ class purchaseorder extends BaseController
function CreatePOPrint()
{
$PONO = $_GET['PONO'];
$ReqType = $_GET['ReqType'];
$ReqType = $_GET['ReqType'];
if($ReqType == SERVICE)
{
$this ->servicepoprint($PONO);
}
else if($ReqType == REVENUE)
{
$this ->revenuepoprint($PONO);

View File

@ -24,7 +24,8 @@
$totaltaxamount=0.00;
$PaymentOtherDescription='';
$NoOfServices=0;
$advance=0;
$advance=0;
$AdvanceAmount=0.00;
if(!empty($CompanyDetails))
{
@ -86,7 +87,7 @@
if($PaymentTerms=='Others'){
$PaymentOtherDescription=$PO->PaymentOtherDescription;
}
$AdvanceAmount=$PO->AdvanceAmount;
}
}
@ -337,7 +338,7 @@
<p><strong>Payment Terms:</strong>&nbsp;<?php echo $PaymentTerms ."&nbsp;&nbsp;".$PaymentOtherDescription;?></p>
<div align="Left"> <b>Scope Of Work As Annixture :</b><br/><?php echo $ServiceDescription;?></div>
<div align="Left"> <b>Scope Of Work As Annexure :</b><br/><?php echo $ServiceDescription;?></div>
<div align="right">
@ -360,11 +361,11 @@
</tr>
<tr>
<td style="text-align: right;"><strong>Advance Amount Paid In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format($advance,2,'.','');?></td>
<td style="text-align: right;"><?php echo number_format($AdvanceAmount,2,'.','');?></td>
</tr>
<tr>
<td style="text-align: right;"><strong>Balance Needs to be pay In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format(($OrderValue-$advance),2,'.','');?></td>
<td style="text-align: right;"><?php echo number_format(($OrderValue-$AdvanceAmount),2,'.','');?></td>
</tr>
<tr>
<td>

View File

@ -78,7 +78,9 @@ $Adv='';
?>
<tr>
<td><?php echo $SNo?></td>
<td><a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreateMRIRPOPrint?PONO='.$record->PONO.'&POType='.SERVICE ?>" style="color:<?php echo $color?>" target="new"><?php echo $record->PONO?></a></td>
<!-- <td><a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreateMRIRPOPrint?PONO='.$record->PONO.'&POType='.SERVICE ?>" style="color:<?php echo $color?>" target="new"><?php echo $record->PONO?></a></td> -->
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo SERVICE ?>" data-id="<%=index%>" style="color:<?php echo $color?>" data-userid="<?php echo $record->PONO ?>" ><?php echo $record->PONO ?> </a></td>
<!-- <td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreateMRIRPOPrint?PONO=<?php echo $record->PONO ?>&POType=<?php echo $record->POType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><?php echo $d->PONO ?> </a></td> -->
<td><?php echo $record->SupplierName?></td>

View File

@ -1,4 +1,4 @@
<?php
s<?php
$Adv='';
$color='';