|
Lines 4-10
Link Here
|
| 4 |
function uncheckbox(form, field) { |
4 |
function uncheckbox(form, field) { |
| 5 |
var price = new Number(form.elements['price' + field].value); |
5 |
var price = new Number(form.elements['price' + field].value); |
| 6 |
var tmpprice = ""; |
6 |
var tmpprice = ""; |
| 7 |
var errmsg = MSG_INVALIDPRICE; |
7 |
var errmsg = __("ERROR: Price is not a valid number, please check the price and try again!"); |
| 8 |
if (isNaN(price)) { |
8 |
if (isNaN(price)) { |
| 9 |
alert(errmsg); |
9 |
alert(errmsg); |
| 10 |
for(var i=0; i<form.elements['price' + field].value.length; ++i) { |
10 |
for(var i=0; i<form.elements['price' + field].value.length; ++i) { |
|
Lines 304-312
if ( newBudgetParent ) { url += '&parent_id=' + newBudgetParent};
Link Here
|
| 304 |
var result = eval ( xmlhttp.responseText ); |
304 |
var result = eval ( xmlhttp.responseText ); |
| 305 |
|
305 |
|
| 306 |
if (result == '1') { |
306 |
if (result == '1') { |
| 307 |
return MSG_BUDGET_PARENT_ALLOCATION; |
307 |
return "- " + __("Fund amount exceeds parent allocation") + "\n"; |
| 308 |
} else if (result == '2') { |
308 |
} else if (result == '2') { |
| 309 |
return MSG_BUDGET_PERIOD_ALLOCATION; |
309 |
return "- " + __("Fund amount exceeds period allocation") + "\n"; |
| 310 |
} else { |
310 |
} else { |
| 311 |
return false; |
311 |
return false; |
| 312 |
} |
312 |
} |
|
Lines 338-344
function checkBudgetParent(budgetId, newBudgetParent) {
Link Here
|
| 338 |
var result = eval ( xmlhttp.responseText ); |
338 |
var result = eval ( xmlhttp.responseText ); |
| 339 |
|
339 |
|
| 340 |
if (result == '1') { |
340 |
if (result == '1') { |
| 341 |
return MSG_PARENT_BENEATH_BUDGET; |
341 |
return "- " + __("New budget-parent is beneath budget") + "\n"; |
| 342 |
// } else if (result == '2') { |
342 |
// } else if (result == '2') { |
| 343 |
// return "- New budget-parent has insufficent funds\n"; |
343 |
// return "- New budget-parent has insufficent funds\n"; |
| 344 |
// } else { |
344 |
// } else { |
| 345 |
- |
|
|