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