service and Revenue po pdf done

This commit is contained in:
gandhimathi 2017-11-02 17:19:09 +05:30
parent d0b16714ce
commit 96e2cfce64
4 changed files with 3306 additions and 3275 deletions

3
application/views/EditservicePurchaseorder.php Executable file → Normal file
View File

@ -2112,7 +2112,10 @@ $(document).ready(function () {
</div> </div>
<label>Request On : </label><?php echo $Reqon;?><br/> <label>Request On : </label><?php echo $Reqon;?><br/>
<?php if($RequesterName!='' || $RequesterName!=null){ ?>
<label>Request By : </label><?php echo $RequesterName;?><br/> <label>Request By : </label><?php echo $RequesterName;?><br/>
<?php
} ?>
<label>Status : </label><?php echo $StatusName;?> <label>Status : </label><?php echo $StatusName;?>
</div> </div>

34
application/views/editRevenuepurchaseorder.php Executable file → Normal file
View File

@ -2088,13 +2088,22 @@ function validateEditExceedLimit()
var AfterSgst = $("#EditAfterSgst").val(); var AfterSgst = $("#EditAfterSgst").val();
var AfterIgst = $("#EditAfterIgst").val(); var AfterIgst = $("#EditAfterIgst").val();
// alert(AfterIgst);
// alert(AfterSgst);
// alert(AfterCgst);
var Freight = $('#txtEditAfterFreight').val() == '' ? '0.00' : $('#txtEditAfterFreight').val(); var Freight = $('#txtEditAfterFreight').val() == '' ? '0.00' : $('#txtEditAfterFreight').val();
var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val(); var Insurance = $('#txtEditInsurance').val() == '' ? '0.00' : $('#txtEditInsurance').val();
var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val(); var Discount = $('#txtEditAfterDiscount').val() == '' ? '0.00' : $('#txtEditAfterDiscount').val();
var BasicVal = $('#txtEditBasicValue').val() == '' ? '0.00' : $('#txtEditBasicValue').val(); var BasicVal = $('#txtEditBasicValue').val() == '' ? '0.00' : $('#txtEditBasicValue').val();
var getrange= $("input:radio[name='Range']:checked").val();
var totvalue = ( parseFloat(BasicVal) + parseFloat(Packaging)+ parseFloat(AfterCgst)+ parseFloat(AfterSgst) + parseFloat(AfterIgst) + parseFloat(Freight) + parseFloat(Insurance)) - parseFloat(Discount); 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); var tot = parseFloat(totvalue).toFixed(2);
$('#txtEditTotalOrderValue').val(tot); $('#txtEditTotalOrderValue').val(tot);
@ -2106,16 +2115,25 @@ function validateEditExceedLimit()
{ {
var Packaging = $('#txtViewAfterPackaging').val() == '' ? '0.00' : $('#txtViewAfterPackaging').val(); var Packaging = $('#txtViewAfterPackaging').val() == '' ? '0.00' : $('#txtViewAfterPackaging').val();
var AfterCgst = $("#ViewAfterCGST").val(); var AfterCgst = $("#ViewAfterCGST").val();
var AfterSgst = $("#ViewAfterSGST").val(); var AfterSgst = $("#ViewAfterSGST").val();
var AfterIgst = $("#ViewAfterIGST").val(); var AfterIgst = $("#ViewAfterIGST").val();
// alert(AfterIgst);
// alert(AfterSgst);
// alert(AfterCgst);
var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val(); var Freight = $('#txtViewAfterFreight').val() == '' ? '0.00' : $('#txtViewAfterFreight').val();
var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val(); var Insurance = $('#txtViewInsurance').val() == '' ? '0.00' : $('#txtViewInsurance').val();
var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val(); var Discount = $('#txtViewAfterDiscount').val() == '' ? '0.00' : $('#txtViewAfterDiscount').val();
var BasicVal = $('#txtViewBasicValue').val() == '' ? '0.00' : $('#txtViewBasicValue').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); 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); var tot = parseFloat(totvalue).toFixed(2);
@ -4051,7 +4069,11 @@ function calculateEditTaxValue()
</div> </div>
<label>Request On : </label><?php echo $Reqon;?><br/> <label>Request On : </label><?php echo $Reqon;?><br/>
<?php if($RequesterName!='' || $RequesterName!=null){ ?>
<label>Request By : </label><?php echo $RequesterName;?><br/> <label>Request By : </label><?php echo $RequesterName;?><br/>
<?php
} ?>
<label>Status : </label><?php echo $StatusName;?> <label>Status : </label><?php echo $StatusName;?>
</div> </div>
</div> </div>

View File

@ -103,6 +103,10 @@
} }
else{
$PaymentOtherDescription=$PO->PaymentTerms;
}

View File

@ -107,12 +107,14 @@
} }
} }
// if($DeliveryDate == '30-11--0001' || $DeliveryDate == '0001-11-30'){$DeliveryDate='';} // if($DeliveryDate == '30-11--0001' || $DeliveryDate == '0001-11-30'){$DeliveryDate='';}
$ServiceDescription =$PO->ServiceDescription; $ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms; $PaymentTerms = $PO->PaymentTerms;
if($PaymentTerms=='Others'){ if($PaymentTerms=='Others'){
$PaymentOtherDescription=$PO->PaymentOtherDescription; $PaymentTerms=$PO->PaymentOtherDescription;
} }
$advance=$PO->AdvanceAmount; $advance=$PO->AdvanceAmount;
$finCap=$PO->Fincap; $finCap=$PO->Fincap;
$modShp=$PO->Mode_Of_Shipment; $modShp=$PO->Mode_Of_Shipment;
@ -372,7 +374,7 @@
<tbody> <tbody>
<tr> <tr>
<td colspan="4" rowspan="3" width="35%"> <td colspan="4" rowspan="3" width="35%">
<span><strong>&nbsp;Payment terms :</strong><br>&nbsp;<?php echo $PaymentOtherDescription;?></span> <span><strong>&nbsp;Payment terms :</strong><br>&nbsp;<?php echo $PaymentTerms;?></span>
</td> </td>
<td style="text-align: center;background-color: #d2d2d2;"><strong>Total Amount <span style="font-family: DejaVu Sans; sans-serif;">&#8377;</span></strong></td> <td style="text-align: center;background-color: #d2d2d2;"><strong>Total Amount <span style="font-family: DejaVu Sans; sans-serif;">&#8377;</span></strong></td>
<td style="text-align: center;background-color: #d2d2d2;"><strong>Total CGST Amount <span style="font-family: DejaVu Sans; sans-serif;">&#8377;</span></strong></td> <td style="text-align: center;background-color: #d2d2d2;"><strong>Total CGST Amount <span style="font-family: DejaVu Sans; sans-serif;">&#8377;</span></strong></td>