Cost center issue fixed
This commit is contained in:
parent
e8ae7d72af
commit
0c2443562c
@ -527,7 +527,8 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(document.getElementById('AddYear').value == '' )
|
//if ($("#AddYear option:selected").val() =='0' )
|
||||||
|
if($('#AddYear').val() == '0' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
alert('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
@ -539,7 +540,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($("#Addbudget option:selected").val() !='-1' && $('#AddYear').val() && $('#AddAmout').val() )
|
if ($("#Addbudget option:selected").val() !='-1' && $('#AddYear').val() != '0' && $('#AddAmout').val() != '' )
|
||||||
{
|
{
|
||||||
|
|
||||||
$('#BudgetTable').show();
|
$('#BudgetTable').show();
|
||||||
@ -575,11 +576,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
|
|
||||||
CountRows();
|
CountRows();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
alert('Please enter all the values');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -627,7 +627,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(document.getElementById('AddYear').value == '' )
|
if($('#AddYear').val() == '0' )
|
||||||
{
|
{
|
||||||
alert('Please Enter the Budget Year');
|
alert('Please Enter the Budget Year');
|
||||||
//return;
|
//return;
|
||||||
@ -639,7 +639,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($("#Addbudget option:selected").val() !='-1' && $('#AddYear').val() && $('#AddAmout').val() )
|
if ($("#Addbudget option:selected").val() !='-1' && $('#AddYear').val() != '0' && $('#AddAmout').val() != '' )
|
||||||
{
|
{
|
||||||
|
|
||||||
// $('#BudgetTable').show();
|
// $('#BudgetTable').show();
|
||||||
@ -675,10 +675,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
|
|||||||
$('#txtRowCount').val(temp);
|
$('#txtRowCount').val(temp);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
alert('Please enter all the values');
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user