Edit PO - Rate : ps
This commit is contained in:
parent
c4c378fb4c
commit
ebb6265626
@ -500,6 +500,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
$("#ItemName").val(obj.MaterialName);
|
$("#ItemName").val(obj.MaterialName);
|
||||||
$("#UOM").val(obj.UOM);
|
$("#UOM").val(obj.UOM);
|
||||||
$("#Quantity").val(obj.Quantity);
|
$("#Quantity").val(obj.Quantity);
|
||||||
|
$("#Rate").val(obj.material_rate);
|
||||||
RequistQuantity = obj.Quantity;
|
RequistQuantity = obj.Quantity;
|
||||||
|
|
||||||
var materialn = obj.MaterialName;
|
var materialn = obj.MaterialName;
|
||||||
@ -510,6 +511,10 @@ if (!empty($getlogpodtl)) {
|
|||||||
$('#OtheritemDescription').val(obj.MaterialDescription);
|
$('#OtheritemDescription').val(obj.MaterialDescription);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(obj.material_rate != 0){
|
||||||
|
Ratechange();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3935,6 +3935,7 @@ if (!empty($getlogpodtl)) {
|
|||||||
$("#CPUOM").val('');
|
$("#CPUOM").val('');
|
||||||
$("#CPQuantity").val('');
|
$("#CPQuantity").val('');
|
||||||
$("#CPTotalAmount").val('');
|
$("#CPTotalAmount").val('');
|
||||||
|
$("#CPRate").val('');
|
||||||
RequistQuantity = '';
|
RequistQuantity = '';
|
||||||
clearTaxField();
|
clearTaxField();
|
||||||
if (id != '0') {
|
if (id != '0') {
|
||||||
@ -3946,12 +3947,16 @@ if (!empty($getlogpodtl)) {
|
|||||||
$("#CapitalItemName").val(obj.MaterialName);
|
$("#CapitalItemName").val(obj.MaterialName);
|
||||||
$("#CPUOM").val(obj.UOM);
|
$("#CPUOM").val(obj.UOM);
|
||||||
$("#CPQuantity").val(obj.Quantity);
|
$("#CPQuantity").val(obj.Quantity);
|
||||||
|
$("#CPRate").val(obj.material_rate);
|
||||||
RequistQuantity = obj.Quantity;
|
RequistQuantity = obj.Quantity;
|
||||||
|
|
||||||
var CPUOMDisplay = obj.UOM;
|
var CPUOMDisplay = obj.UOM;
|
||||||
|
|
||||||
$('#RateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
$('#RateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||||
$('#EditRateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
$('#EditRateIn').html('Rate(in' + " " + DisplayCurrencySymbol + '/' + CPUOMDisplay + ')');
|
||||||
|
if(obj.material_rate != 0){
|
||||||
|
Ratechange();calculateFreight(3);calculateFreightlocaddper();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -541,6 +541,10 @@ if (!empty($getlogpodtl)) {
|
|||||||
$("#ItemName").val(obj.MaterialName);
|
$("#ItemName").val(obj.MaterialName);
|
||||||
$("#UOM").val(obj.UOM);
|
$("#UOM").val(obj.UOM);
|
||||||
$("#Quantity").val(obj.Quantity);
|
$("#Quantity").val(obj.Quantity);
|
||||||
|
$("#Rate").val(obj.material_rate);
|
||||||
|
if(obj.material_rate != 0){
|
||||||
|
change();
|
||||||
|
}
|
||||||
RequistQuantity = obj.Quantity;
|
RequistQuantity = obj.Quantity;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3375,6 +3375,12 @@ if (!empty($getlogpodtl)) {
|
|||||||
$("#ItemName").val(obj.MaterialName);
|
$("#ItemName").val(obj.MaterialName);
|
||||||
$("#UOM").val(obj.UOM);
|
$("#UOM").val(obj.UOM);
|
||||||
$("#Quantity").val(obj.Quantity).trigger('change');
|
$("#Quantity").val(obj.Quantity).trigger('change');
|
||||||
|
$("#Rate").val(obj.material_rate);
|
||||||
|
if(obj.material_rate != 0){
|
||||||
|
Ratechange();
|
||||||
|
validateExceedLimit();
|
||||||
|
calculateFreight(0);
|
||||||
|
}
|
||||||
RequistQuantity = obj.Quantity;
|
RequistQuantity = obj.Quantity;
|
||||||
reqq = RequistQuantity;
|
reqq = RequistQuantity;
|
||||||
//RequistQuantity=parseFloat($('#Quantity').val());
|
//RequistQuantity=parseFloat($('#Quantity').val());
|
||||||
|
|||||||
@ -1052,7 +1052,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</div><!-- 6. form-row div closed here -->
|
</div><!-- 6. form-row div closed here -->
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="table-responsive" style="padding-bottom: 30px;">
|
<div class="table-responsive" style="padding-bottom: 30px;">
|
||||||
<table id="serviceTax" class="table nowrap table-bordered table-hover mb-0" style="font-size:12px;">
|
<table id="ServiceTable" class="table nowrap table-bordered table-hover mb-0" style="font-size:12px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="white-space: nowrap !important;">SNo</th>
|
<th style="white-space: nowrap !important;">SNo</th>
|
||||||
@ -1071,7 +1071,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id='ServiceAppend'>
|
<tbody id='ServiceAppend'>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table><!-- serviceTax table closed here -->
|
</table><!-- ServiceTable table closed here -->
|
||||||
</div>
|
</div>
|
||||||
</div><!-- 7. form-row div closed here -->
|
</div><!-- 7. form-row div closed here -->
|
||||||
|
|
||||||
@ -2101,7 +2101,7 @@ if (!empty($INRSYMBOL)) {
|
|||||||
|
|
||||||
function populateValueMainFormForEditServiceTax() {
|
function populateValueMainFormForEditServiceTax() {
|
||||||
|
|
||||||
var rows = $('#serviceTax tbody tr').length;
|
var rows = $('#ServiceTable tbody tr').length;
|
||||||
|
|
||||||
var TotCgst = 0;
|
var TotCgst = 0;
|
||||||
var TotSgst = 0;
|
var TotSgst = 0;
|
||||||
|
|||||||
@ -145,7 +145,7 @@ function serviceValidate(){
|
|||||||
alert('Please Select Budget Type');
|
alert('Please Select Budget Type');
|
||||||
$('#BudgetType').focus();
|
$('#BudgetType').focus();
|
||||||
return false;
|
return false;
|
||||||
}else if ($('#serviceTax tbody tr').length < 1) {
|
}else if ($('#ServiceTable tbody tr').length < 1) {
|
||||||
alert('Atleast One Line needed');
|
alert('Atleast One Line needed');
|
||||||
return false;
|
return false;
|
||||||
} else if ($('#descofpo').val().trim() == '') {
|
} else if ($('#descofpo').val().trim() == '') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user