@@ -462,8 +462,7 @@ $(function() {
<%=BudgetType%> |
<%=BudgetYear%> |
-
-
<%=BudgetAmount%> |
+
<%=BudgetAmount%> |
<%=Remarks%> |
@@ -494,12 +493,12 @@ function OpenModal()
$('#selectDistriList').focus();
return false;
}
- else if($('#ApprovedBy').val() == "-1")
- {
- alert('Please Select the Approver');
- $('#ApprovedBy').focus();
- return false;
- }
+ // else if($('#ApprovedBy').val() == "-1")
+ // {
+ // alert('Please Select the Approver');
+ // $('#ApprovedBy').focus();
+ // return false;
+ // }
else
{
$('#addbudgetmodel').modal('show');
@@ -514,7 +513,7 @@ $("#Edit").on("shown.bs.modal", function(e) {
$('#Editbudget').val($('#BudgetTable tr:eq('+ userid +') td:eq(0)').text());
$('#EditYear').val($('#BudgetTable tr:eq('+ userid +') td:eq(1)').text());
- $('#EditAmout').val($('#BudgetTable tr:eq('+ userid +') td:eq(2)').text());
+ $('#EditAmout').val($('#BudgetTable tr:eq('+ userid +') td:eq(2)').text()).hide();
$('#EditRemarks').val($('#BudgetTable tr:eq('+ userid +') td:eq(3)').text());
});
@@ -536,11 +535,11 @@ var iflag = 0;
alert('Please Enter the Budget Year');
//return;
}
- if(document.getElementById('AddAmout').value == '' )
- {
- alert('Please Enter the Budget Amount');
- // return;
- }
+ // if(document.getElementById('AddAmout').value == '' )
+ // {
+ // alert('Please Enter the Budget Amount');
+ // // return;
+ // }
if ($("#Addbudget option:selected").val() !='-1' && $('#AddYear').val() != '0' && $('#AddAmout').val() != '' )
@@ -550,7 +549,7 @@ var iflag = 0;
var temp = index;
var BudType = $("#Addbudget option:selected").val();
var BudYear = $("#AddYear").val();
- var BudAmount = $("#AddAmout").val();
+ var BudAmount = $("#AddAmout").val() ? $("#AddAmout").val() : 0;
//$('#Addbudget option[value='+BudType+']').remove();
var BudRemarks = $('#AddRemarks').val();
$('#AddYear').val('');
@@ -626,11 +625,11 @@ $('.tempClickEdit').click(function(){
alert('Please Enter the Budget Year');
//return;
}
- if(document.getElementById('EditAmout').value == '' )
- {
- alert('Please Enter the Budget Amount');
- // return;
- }
+ // if(document.getElementById('EditAmout').value == '' )
+ // {
+ // alert('Please Enter the Budget Amount');
+ // // return;
+ // }
if ( $('#EditAmout').val() != '' && $('#EditYear').val() != '' )
@@ -644,11 +643,11 @@ $('.tempClickEdit').click(function(){
$('#BudgetTable tr:eq('+ temp +') td:eq(1)').text(BudYear);
- $('#BudgetTable tr:eq('+ temp +') td:eq(2)').text(BudAmount);
+ $('#BudgetTable tr:eq('+ temp +') td:eq(2)').text(BudAmount).hide();
$('#BudgetTable tr:eq('+ temp +') td:eq(3)').text(BudRemarks);
$('#BudgetYear'+temp).val(BudYear);
- $('#BudgetAmount'+temp).val(BudAmount);
+ $('#BudgetAmount'+temp).val(BudAmount).hide();
$('#Remarks'+temp).val(BudRemarks);
@@ -857,11 +856,11 @@ function validate()
alert('Please Add Budget');
return false;
}
- else if($("option:selected", $("#ApprovedBy")).val() == '-1')
- {
- alert('Please Select Approver Names');
- return false;
- }
+ // else if($("option:selected", $("#ApprovedBy")).val() == '-1')
+ // {
+ // alert('Please Select Approver Names');
+ // return false;
+ // }
else
{
return true;
diff --git a/app/Views/editCostCenter.php b/app/Views/editCostCenter.php
index 15d8cc0e..958679d9 100644
--- a/app/Views/editCostCenter.php
+++ b/app/Views/editCostCenter.php
@@ -237,7 +237,7 @@ for ($i = 1; $i < 5; $i++) {
-
+
@@ -402,18 +402,18 @@ for ($i = 1; $i < 5; $i++) {
-
+
+
+
-
+
+
+
|