diff --git a/application/views/importpo.php b/application/views/importpo.php index 4980720d..104896a3 100755 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -144,9 +144,18 @@ function vaildateBeforeOpenModal() } else if($('#Dispatch').val() == '' && $('#Scheduleby').val() == '') { - alert('Please Enter the Dispatch Instruction'); - $('#Dispatch').focus(); - return false; + if(document.getElementById("Schedule").checked) + { + alert('Please Enter Schedule By'); + return false; + } + + else if(document.getElementById("Date").checked) + { + alert('Please Enter Dispatch Instruction'); + return false; + } + } else if($('#currencytype').val() == '0') {