diff --git a/application/views/alterpurchaseorder.php b/application/views/alterpurchaseorder.php index 2e9cd205..42c470cf 100755 --- a/application/views/alterpurchaseorder.php +++ b/application/views/alterpurchaseorder.php @@ -1830,10 +1830,11 @@ function SetExciseCalculationCancel() var avaBud=document.getElementById('AvalBuget').value; var getLocal = document.getElementById('Local').value; StateTaxCheck = $("input:radio[name='Range']:checked").val(); - + var radioValue = $("input[name='DateRange']:checked").val(); + // $('#txtPoRange').val(StateTaxCheck) ; //alert('Radio clicke:'+StateTaxCheck); - + if (input == -1) { alert ("Select Request Type"); @@ -1847,14 +1848,14 @@ function SetExciseCalculationCancel() $('#drpSupplier').focus(); return false; } - else if(input=='REVENUE' && $('#Deliverydate').val()==''){ + else if(input=='REVENUE' && $('#Deliverydate').val()=='' && radioValue==0){ alert('Please Select the Delivery Date'); $('#Deliverydate').focus(); return false; } - else if(input=='REVENUE' && $('#Scheduleby').val().trim()==''){ + else if(input=='REVENUE' && $('#Scheduleby').val().trim()=='' && radioValue==1){ alert('Please Enter the Schedule By'); - $('#Deliverydate').focus(); + $('#Scheduleby').focus(); return false; } else