diff --git a/app/Views/alterpurchaseorder.php b/app/Views/alterpurchaseorder.php index 01149d54..a25b9c91 100755 --- a/app/Views/alterpurchaseorder.php +++ b/app/Views/alterpurchaseorder.php @@ -1884,7 +1884,8 @@ if (!empty($INRSYMBOL)) { return false; } - else if( $('#Otherpayment').val() == ''){ + else if( $('#Otherpayment').length > 0 && $('#Otherpayment').is(':visible') && $('#Otherpayment').val() == ''){ + alert('Please Enter the Description of payable terms'); $('#Otherpayment').focus(); return false;