store issues fixed

This commit is contained in:
gandhimathi 2017-08-24 18:48:17 +05:30
parent 5a8a78cfc6
commit 8b905a60d5
2 changed files with 6 additions and 7 deletions

View File

@ -712,11 +712,7 @@ function validate()
return false;
}
else if($("option:selected", $("#MaterialCode")).val() == '-1')
{
alert('Please Select MaterialCode');
return false;
}
else if($("#txtRowCount").val().length < 1)
{
@ -752,3 +748,4 @@ function validate()
});
});
</script>

View File

@ -552,7 +552,8 @@ $("#mypo").on("shown.bs.modal", function(e) {
$('.addClick').click(function()
{
if ($("#MaterialCode option:selected").val() =='-1' )
if ($("#MaterialCode option:selected").val() =='-1' || $("#MaterialCode").val() == "0" )
{
alert('Please Select the MaterialCode ');
return false;
@ -607,7 +608,7 @@ $("#mypo").on("shown.bs.modal", function(e) {
function clear()
{
$('#MaterialCode').val('');
$('#Description').val('');
$('#UOM').val('');
$('#Quantity').val('');
@ -1003,3 +1004,4 @@ function validate()
});
</script>