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