while creating emergency po comments instruction changes done

This commit is contained in:
gandhimathi 2017-08-19 17:31:38 +05:30
parent 9e61828308
commit 2853119efb

View File

@ -1830,6 +1830,7 @@ function SetExciseCalculationCancel()
var avaBud=document.getElementById('AvalBuget').value; var avaBud=document.getElementById('AvalBuget').value;
var getLocal = document.getElementById('Local').value; var getLocal = document.getElementById('Local').value;
StateTaxCheck = $("input:radio[name='Range']:checked").val(); StateTaxCheck = $("input:radio[name='Range']:checked").val();
var radioValue = $("input[name='DateRange']:checked").val();
// $('#txtPoRange').val(StateTaxCheck) ; // $('#txtPoRange').val(StateTaxCheck) ;
//alert('Radio clicke:'+StateTaxCheck); //alert('Radio clicke:'+StateTaxCheck);
@ -1847,14 +1848,14 @@ function SetExciseCalculationCancel()
$('#drpSupplier').focus(); $('#drpSupplier').focus();
return false; return false;
} }
else if(input=='REVENUE' && $('#Deliverydate').val()==''){ else if(input=='REVENUE' && $('#Deliverydate').val()=='' && radioValue==0){
alert('Please Select the Delivery Date'); alert('Please Select the Delivery Date');
$('#Deliverydate').focus(); $('#Deliverydate').focus();
return false; return false;
} }
else if(input=='REVENUE' && $('#Scheduleby').val().trim()==''){ else if(input=='REVENUE' && $('#Scheduleby').val().trim()=='' && radioValue==1){
alert('Please Enter the Schedule By'); alert('Please Enter the Schedule By');
$('#Deliverydate').focus(); $('#Scheduleby').focus();
return false; return false;
} }
else else