import validations

This commit is contained in:
venbatechnologies@gmail.com 2017-08-12 14:55:46 +05:30
parent c7c9e2aa73
commit b48ec59a01

View File

@ -144,10 +144,19 @@ function vaildateBeforeOpenModal()
} }
else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '') else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '')
{ {
alert('Please Enter the Dispatch Instruction'); if(document.getElementById("Schedule").checked)
$('#Dispatch').focus(); {
alert('Please Enter Schedule By');
return false; return false;
} }
else if(document.getElementById("Date").checked)
{
alert('Please Enter Dispatch Instruction');
return false;
}
}
else if($('#currencytype').val() == '0') else if($('#currencytype').val() == '0')
{ {
alert('Please Select the Currency Type'); alert('Please Select the Currency Type');