payment terms in emergency po
This commit is contained in:
parent
6e7f51fbc9
commit
d29c8db87e
@ -2215,6 +2215,17 @@ Editchange();
|
||||
$('#drpSupplier').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
else if($('#PoTypeOptions').val()== "0")
|
||||
{
|
||||
alert('Please Select POType');
|
||||
$('#PoTypeOptions').focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
else if(input=='REVENUE' && $('#Deliverydate').val()=='' && radioValue==0){
|
||||
alert('Please Select the Delivery Date');
|
||||
$('#Deliverydate').focus();
|
||||
@ -2796,7 +2807,7 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
|
||||
<?php
|
||||
|
||||
//$optionsWork = array("0"=>'Select Work Status');
|
||||
$optionsPO = array("0"=>'Select');
|
||||
|
||||
|
||||
if(!empty($PoTypeOptions))
|
||||
@ -6232,6 +6243,63 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#PoTypeOptions').change(function()
|
||||
{
|
||||
|
||||
var potypeval=$('#PoTypeOptions').val();
|
||||
var poopt= <?php echo json_encode($PoTypeOptions, JSON_PRETTY_PRINT) ?>;
|
||||
var config=poopt[0].ConfigValue;
|
||||
var Payment = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
|
||||
var default1=Payment[4].PaymentTerms;
|
||||
|
||||
|
||||
if(potypeval==config)
|
||||
{
|
||||
$('#PaymentMethod').empty();
|
||||
$.each(Payment,function(idx,obj)
|
||||
{
|
||||
if(obj.PaymentID=='PT05')
|
||||
{
|
||||
// console.log(obj.PaymentID);
|
||||
// console.log(obj.PaymentTerms)
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentID).html(obj.PaymentTerms));
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$.each(Payment,function(idx,obj)
|
||||
{
|
||||
if(obj.PaymentID=='PT05')
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
$("#PaymentMethod").append( $('<option></option>').val(obj.PaymentID).html(obj.PaymentTerms));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$('#drpSupplier').change(function() {
|
||||
|
||||
var id = $('#drpSupplier').val();
|
||||
@ -6874,6 +6942,8 @@ function populateValueMainFormForDeleteItem(rowid)
|
||||
$('#ServiceRate').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
return true;
|
||||
@ -7411,6 +7481,17 @@ $('#content').loader('hide');
|
||||
$('#emergdescofpo').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
else if($('#PoTypeOptions').val()== "0")
|
||||
{
|
||||
alert('Please Select POType');
|
||||
$('#PoTypeOptions').focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
@ -7520,6 +7601,16 @@ $('#SpcialInstruction').val(splinstr);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// else if($('#PoTypeOptions').val()== "0")
|
||||
// {
|
||||
// alert('Please Select POType');
|
||||
// $('#PoTypeOptions').focus();
|
||||
// return false;
|
||||
|
||||
// }
|
||||
|
||||
else
|
||||
{
|
||||
// $('#content').loader('show');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user