Revenue AmendmentPO Change

This commit is contained in:
gandhimathi Bharathirajan 2017-07-20 14:41:09 +05:30
parent 1ce1ed91b6
commit cf8c4a042d
2 changed files with 34 additions and 26 deletions

View File

@ -53,10 +53,16 @@
$PaymentTerms = $PO->PaymentTerms;
$PaymentDays=$PO->PaymentDays;
$PayableAT=$PO->PayableAT;
}
}
$currencyName='INR';
$currencyName='INR';
$currencyCode ='';
if(!empty($CurrencySymbol))
{
@ -106,7 +112,7 @@
?>
</div>
<div>&nbsp;</div>
<center> <span style="font-size:24px;">SIDDHARTH INDUSTRIES - PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
<center> <span style="font-size:24px;">SIDDHARTH INDUSTRIES - PURCHASE ORDER </span><br><span style="font-size:18px;">PO NO : <?php echo $PONO?></span></center>
<div style="border:1px solid;">
<table width="100%">
<tbody>
@ -268,12 +274,12 @@ $OrderValue = (( $SubTotalAmount + $AfterVAT +$AfterGST+$AfterOtherTaxes +$Insu
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" colspan="4">
<td style="text-align: center;" colspan="3">
<p>Amended Details</p>
</td>
</tr>
<tr>
<td colspan="4">
<td colspan="3">
<?php
if(!empty($POItem))
{
@ -287,15 +293,17 @@ $OrderValue = (( $SubTotalAmount + $AfterVAT +$AfterGST+$AfterOtherTaxes +$Insu
</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;" colspan="2">Current Details</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->lineamd ;?>
<?php }
echo $record->LineAmend ;
}
} ?>
</tbody>
</table>
@ -303,18 +311,18 @@ $OrderValue = (( $SubTotalAmount + $AfterVAT +$AfterGST+$AfterOtherTaxes +$Insu
<table style="border-collapse: collapse;font-size:12px;" 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 /><b><i><?php echo $TotalAmountInWords." "."Only.";?></i></b></td>
<td style="text-align: right;">&nbsp;<strong>Total Amount Before Tax In INR&nbsp;&nbsp; <?php echo number_format($SubTotalAmount,2); ?></strong></td>
<td style="text-align: center;" rowspan="3"><strong>Total Amount In Words :</strong><br /><br /><b><i><?php echo $TotalAmountInWords." "."Only.";?></i></b></td>
<td style="text-align: right;">&nbsp;<strong>Total Amount Before Tax In INR : <?php echo number_format($SubTotalAmount,2); ?></strong></td>
</tr>
<tr>
<td style="text-align: right;">&nbsp;<strong>Total Tax Amount In INR&nbsp;&nbsp;<?php echo number_format(($OrderValue - $SubTotalAmount),2);?><strong></td>
<td style="text-align: right;">&nbsp;<strong>Total Tax Amount In INR :<?php echo number_format(($OrderValue - $SubTotalAmount),2);?><strong></td>
</tr>
<tr>
<td style="text-align: right;">&nbsp;<strong>Total Amount After Tax In INR&nbsp;&nbsp; <?php echo number_format($OrderValue,2);?></strong></td>
<td style="text-align: right;">&nbsp;<strong>Total Amount After Tax In INR : <?php echo number_format($OrderValue,2);?></strong></td>
</tr>
<tr>
<td>
<p>&nbsp;Payment Terms</p>
<p> <b>Payment Terms :</b> </p>
<p><?php echo $PaymentTerms;?></p>
</td>
<td style="text-align: center;">

View File

@ -72,7 +72,7 @@ if(!empty($POMaster))
$Pdt = new DateTime($Req->PODate);
$PODate = $Pdt->format('Y-m-d');
$DeliverOption = $Req->DeliveryOption;
$DeliverSchedule = $Req->DeliverySchedule;
$DeliverSchedule = $Req->DeliverySchedule;
$Ddt = new DateTime($Req->DeliveryDate);
$Deliverydt = $Ddt->format('Y-m-d');
@ -95,7 +95,7 @@ if(!empty($RequistionDetails))
//$Status=$ReqDet->Status;
}
}
//echo $ServiceDescription;
foreach ($POSTATUS as $PST )
{
@ -128,15 +128,14 @@ foreach ($POSTATUS as $PST )
</style>
<!-- Latest compiled and minified CSS -->
<script src="<?php echo base_url() ?>assets/tinymce/js/tinymce/tinymce.min.js"></script>
<script src="<?php echo base_url()?>assets/tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea#txtSpcialInstruction",
selector: "textarea#txtSpcialInstruction"//,
plugins: "link image"
//plugins: "link image"
});
</script>
@ -1611,9 +1610,10 @@ body {
<div class="col-md-12">
<div class="col-md-12">
<label>Special Instructions </label> <?php
$data = array('name' => 'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription),'id'=>'txtSpcialInstruction', 'class' => 'form-control','rows' => '3', 'cols' => '40' );
$data = array('name' => 'txtSpcialInstruction','id'=>'txtSpcialInstruction','value' => set_value('txtSpcialInstruction',$ServiceDescription), 'rows'=>'8','class' => 'form-control' );
echo form_textarea($data);
?> <input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="<?php echo $ServiceDescription;?>">
?>
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="<?php echo $ServiceDescription;?>">
</div>
</div>
<div class="row" style="padding: 2% 0%">
@ -2112,11 +2112,11 @@ function Save(status)
//alert('Inside else');
stat = '<?php echo PO_RELEASED; ?>';
var splinstr = $('#txtSpcialInstruction').val();
var deladd = $('#DeliveryAddr').val();
$('#txtStatus').val(stat);
tinyMCE.triggerSave();
var splinstr = $('#txtSpcialInstruction').val();
$('#SpcialInstruction').val(splinstr);
$('#txtDeliveryAddress').val(deladd);
@ -2155,7 +2155,7 @@ $('#txtDeliveryAddress').val(deladd);
$('#txtStatus').val('');
$('#SpcialInstruction').val('');
$('#txtDeliveryAddress').val('')
window.location = "amendmentpurchaseorder";
//window.location = "amendmentpurchaseorder";
}
else