po subtype validation

This commit is contained in:
venbatechnologies@gmail.com 2017-12-05 17:44:26 +05:30
parent 07ced663c4
commit 2f87aa9cc2
4 changed files with 38 additions and 1 deletions

View File

@ -4691,6 +4691,14 @@ var basicAmountRate = parseFloat($('#CapitalToatlOrder').val());
alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.'); alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
return false; return false;
}
else if($('#PoTypeOptions').val()== "0")
{
alert('Please Select POType');
$('#PoTypeOptions').focus();
return false;
} }
else else
{ {

View File

@ -4539,6 +4539,18 @@ if(validate()&&Budgetcheck())
alert('Please Select Line item to Create PO'); alert('Please Select Line item to Create PO');
$('#Deliverydt').focus(); $('#Deliverydt').focus();
return false; return false;
}
else if($('#Importoption').val()== "0")
{
alert('Please Select POType');
$('#Importoption').focus();
return false;
} }
else else
{ {

View File

@ -175,7 +175,7 @@ function vaildateBeforeOpenModal()
} }
else if($('#PoTypeOptions').val()=='') else if($('#PoTypeOptions').val()=="0")
{ {
alert('Please Select POType'); alert('Please Select POType');
$('#PoTypeOptions').focus(); $('#PoTypeOptions').focus();
@ -4292,6 +4292,14 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
alert('Please Enter Insurance No..!'); alert('Please Enter Insurance No..!');
$('#insurance').focus(); $('#insurance').focus();
return false; return false;
}
else if($('#PoTypeOptions').val()=="0")
{
alert('Please Select POType');
$('#PoTypeOptions').focus();
return false;
} }
else else
{ {

View File

@ -2375,6 +2375,15 @@ var AvlBudAmt = '<?php echo $AvlAmount ?>';
alert('Please Enter Description Of Service'); alert('Please Enter Description Of Service');
$('#descofpo').focus(); $('#descofpo').focus();
return false; return false;
}
else if($('#PoTypeOptions').val()=="0")
{
alert('Please Select POType');
$('#PoTypeOptions').focus();
return false;
} }
else else
{ {