From 2853119efb120336ba89af7aa857973312ad4866 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Sat, 19 Aug 2017 17:31:38 +0530 Subject: [PATCH] while creating emergency po comments instruction changes done --- application/views/alterpurchaseorder.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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