stock module - 19-03-2025
This commit is contained in:
parent
8e25ea3841
commit
2185a95176
@ -204,6 +204,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
function vaildateBeforeOpenModal() {
|
||||
var radioValue = parseInt($("input[name='DateRange']:checked").val());
|
||||
var scheduleBy = $('#Scheduleby').val();
|
||||
|
||||
if ($('#drpSupplier').val() == "0") {
|
||||
alert('Please Select the Supplier details');
|
||||
@ -221,13 +222,12 @@ if (!empty($INRSYMBOL)) {
|
||||
alert('Please Select the Delivery Date');
|
||||
$('#Deliverydt').focus();
|
||||
return false;
|
||||
}else if (radioValue == 1) {
|
||||
var scheduleBy = $('#Scheduleby').val(); // Get the value
|
||||
if (!scheduleBy || scheduleBy.trim() == '') { // Check if it's empty or undefined
|
||||
}else if ( radioValue == 1 && (scheduleBy.trim() == '' || scheduleBy == false))
|
||||
{
|
||||
alert('Please Enter the Schedule By');
|
||||
$('#Scheduleby').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
}else if ($('#PoTypeOptions').val() == "0") {
|
||||
alert('Please Select Revenue Type');
|
||||
$('#PoTypeOptions').focus();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user