Lines 137-142
Link Here
|
137 |
return false; |
137 |
return false; |
138 |
|
138 |
|
139 |
} |
139 |
} |
|
|
140 |
if (! $("#all_budget_id").val() ) { |
141 |
// If there is no default fund |
142 |
var error = 0; |
143 |
$(".selected [name='budget_id']").each(function(){ |
144 |
if (!$(this).val()) { |
145 |
error++; |
146 |
} |
147 |
}); |
148 |
if ( error > 0 ) { |
149 |
alert(_("Some budgets are not defined in item records")); |
150 |
return false; |
151 |
} |
152 |
} |
140 |
|
153 |
|
141 |
return disableUnchecked($(this)); |
154 |
return disableUnchecked($(this)); |
142 |
}); |
155 |
}); |
143 |
- |
|
|