service and Revenue po pdf done
This commit is contained in:
parent
d0b16714ce
commit
96e2cfce64
6521
application/views/EditservicePurchaseorder.php
Executable file → Normal file
6521
application/views/EditservicePurchaseorder.php
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
48
application/views/editRevenuepurchaseorder.php
Executable file → Normal file
48
application/views/editRevenuepurchaseorder.php
Executable file → Normal file
@ -2088,13 +2088,22 @@ function validateEditExceedLimit()
|
||||
var AfterSgst = $("#EditAfterSgst").val();
|
||||
|
||||
var AfterIgst = $("#EditAfterIgst").val();
|
||||
// alert(AfterIgst);
|
||||
// alert(AfterSgst);
|
||||
// alert(AfterCgst);
|
||||
var Freight = $('#txtEditAfterFreight').val() == '' ? '0.00' : $('#txtEditAfterFreight').val();
|
||||
var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val();
|
||||
var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val();
|
||||
var BasicVal = $('#txtEditBasicValue').val() == '' ? '0.00' : $('#txtEditBasicValue').val();
|
||||
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
|
||||
var getrange= $("input:radio[name='Range']:checked").val();
|
||||
if(getrange==1)
|
||||
{
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
}
|
||||
else
|
||||
{
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterSgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
}
|
||||
var tot = parseFloat(totvalue).toFixed(2);
|
||||
|
||||
$('#txtEditTotalOrderValue').val(tot);
|
||||
@ -2106,16 +2115,25 @@ function validateEditExceedLimit()
|
||||
{
|
||||
var Packaging = $('#txtViewAfterPackaging').val() == '' ? '0.00' : $('#txtViewAfterPackaging').val();
|
||||
var AfterCgst = $("#ViewAfterCGST").val();
|
||||
|
||||
var AfterSgst = $("#ViewAfterSGST").val();
|
||||
|
||||
var AfterIgst = $("#ViewAfterIGST").val();
|
||||
var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val();
|
||||
var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val();
|
||||
var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val();
|
||||
var BasicVal = $('#txtViewBasicValue').val() == '' ? '0.00' : $('#txtViewBasicValue').val();
|
||||
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
var AfterSgst = $("#ViewAfterSGST").val();
|
||||
var AfterIgst = $("#ViewAfterIGST").val();
|
||||
// alert(AfterIgst);
|
||||
// alert(AfterSgst);
|
||||
// alert(AfterCgst);
|
||||
var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val();
|
||||
var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val();
|
||||
var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val();
|
||||
var BasicVal = $('#txtViewBasicValue').val() == '' ? '0.00' : $('#txtViewBasicValue').val();
|
||||
var getrange= $("input:radio[name='Range']:checked").val();
|
||||
if (getrange==1)
|
||||
{
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
}
|
||||
else
|
||||
{
|
||||
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+parseFloat(AfterSgst)+ parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount);
|
||||
}
|
||||
|
||||
|
||||
var tot = parseFloat(totvalue).toFixed(2);
|
||||
|
||||
@ -4051,7 +4069,11 @@ function calculateEditTaxValue()
|
||||
</div>
|
||||
|
||||
<label>Request On : </label><?php echo $Reqon;?><br/>
|
||||
<?php if($RequesterName!='' || $RequesterName!=null){ ?>
|
||||
<label>Request By : </label><?php echo $RequesterName;?><br/>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
<label>Status : </label><?php echo $StatusName;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -102,6 +102,10 @@
|
||||
$PaymentOtherDescription=$PO->PaymentOtherDescription;
|
||||
|
||||
}
|
||||
|
||||
else{
|
||||
$PaymentOtherDescription=$PO->PaymentTerms;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -107,11 +107,13 @@
|
||||
}
|
||||
}
|
||||
// if($DeliveryDate == '30-11--0001' || $DeliveryDate == '0001-11-30'){$DeliveryDate='';}
|
||||
$ServiceDescription =$PO->ServiceDescription;
|
||||
|
||||
$ServiceDescription =$PO->ServiceDescription;
|
||||
$PaymentTerms = $PO->PaymentTerms;
|
||||
if($PaymentTerms=='Others'){
|
||||
$PaymentOtherDescription=$PO->PaymentOtherDescription;
|
||||
$PaymentTerms=$PO->PaymentOtherDescription;
|
||||
}
|
||||
|
||||
|
||||
$advance=$PO->AdvanceAmount;
|
||||
$finCap=$PO->Fincap;
|
||||
@ -372,7 +374,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="4" rowspan="3" width="35%">
|
||||
<span><strong> Payment terms :</strong><br> <?php echo $PaymentOtherDescription;?></span>
|
||||
<span><strong> Payment terms :</strong><br> <?php echo $PaymentTerms;?></span>
|
||||
</td>
|
||||
<td style="text-align: center;background-color: #d2d2d2;"><strong>Total Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></strong></td>
|
||||
<td style="text-align: center;background-color: #d2d2d2;"><strong>Total CGST Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></strong></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user