// var actTotal ="";
if (!(isNotNull(f.budget_code,1))) {
- _alertString += _("- Budget code cannot be blank\n");
+ _alertString += _("- Budget code cannot be blank") + "\n";
}
if (!(isNotNull(f.budget_name,1))) {
- _alertString += _("- Budget name cannot be blank\n");
+ _alertString += _("- Budget name cannot be blank") + "\n";
}
if (!(isNotNull(f.budget_amount,1))) {
- _alertString += _("- Budget amount cannot be blank\n");
+ _alertString += _("- Budget amount cannot be blank") + "\n";
}
var budgetId;
if (budgetId > 0) { ; //its a mod ...
// if parent eq curent-budget, fail...
if ( newBudgetParent == budgetId ) {
- _alertString += _("- Budget parent is current budget\n");
+ _alertString += _("- Budget parent is current budget") + "\n";
}
else if (newBudgetParent) {
if (_alertString.length==0) {
document.Aform.submit();
} else {
- alertString2 = _("Form not submitted because of the following problem(s)\n");
- alertString2 += "------------------------------------------------------------------------------------\n\n";
+ alertString2 = _("Form not submitted because of the following problem(s)");
+ alertString2 += "\n------------------------------------------------------------------------------------\n\n";
alertString2 += _alertString;
alert(alertString2);
}
<th>Total<br />allocated</th>
<th>Base-level<br />allocated</th>
<th>Base-level<br />spent</th>
+ <th>Total sublevels<br />spent</th>
<th>Base-level<br />remaining</th>
<th class="tooltipcontent"> </th>
<th>Actions</th>
<th nowrap="nowrap" class="data"> <!-- TMPL_VAR NAME="period_alloc_total"--></th>
<th nowrap="nowrap" class="data"> <!-- TMPL_VAR NAME="base_alloc_total"--></th>
<th class="data"><!-- TMPL_VAR NAME="base_spent_total"--></th>
+ <th class="data"><!-- TMPL_VAR NAME="base_spent_total"--></th>
<th class="data"><!-- TMPL_VAR NAME="base_remaining_total"--></th>
<th class="tooltipcontent"></th>
<th></th>
<td class="data"><!-- TMPL_VAR NAME="budget_amount_total" --></td>
<td class="data"><!-- TMPL_VAR NAME="budget_amount" --> </td>
<td class="data"><!-- TMPL_VAR NAME="budget_spent" --> </td>
- <td class="data"
- <!-- TMPL_IF NAME="remaining_pos" --> style="color: green;" <!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="remaining_neg" --> style="color: red;" <!-- /TMPL_IF --> >
- <!-- TMPL_VAR NAME="budget_remaining" --> </td>
-
- <td class="tooltipcontent"><!-- TMPL_IF NAME="budget_owner_id" --><strong>Owner: </strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="budget_owner_id" -->"><!-- TMPL_VAR NAME="budget_owner_name" --></a><!-- /TMPL_IF --><!-- TMPL_IF NAME="budget_branchcode" --><br /><strong>Library: </strong><!-- TMPL_VAR NAME="budget_branchcode" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="budget_notes" --><br /><strong>Notes: </strong><!-- TMPL_VAR NAME="budget_notes" --><!-- /TMPL_IF --></td>
+ <td class="data"><!-- TMPL_VAR NAME="total_levels_spent" --></td>
+ <!-- TMPL_IF NAME="remaining_pos" -->
+ <td class="data" style="color: green;">
+ <!-- TMPL_ELSIF NAME="remaining_neg" -->
+ <td class="data" style="color: red;">
+ <!-- TMPL_ELSE -->
+ <td class="data">
+ <!-- /TMPL_IF -->
+ <!-- TMPL_VAR NAME="budget_remaining" --> </td>
+
+ <td class="tooltipcontent"><!-- TMPL_IF NAME="budget_owner_id" --><strong>Owner: </strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="budget_owner_id" -->"><!-- TMPL_VAR NAME="budget_owner_name" --></a><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="budget_branchcode" --><br /><strong>Library: </strong><!-- TMPL_VAR NAME="budget_branchcode" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="budget_notes" --><br /><strong>Notes: </strong><!-- TMPL_VAR NAME="budget_notes" --><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="budget_hierarchy" -->
+ <ul class="budget_hierarchy"><!-- TMPL_LOOP name="budget_hierarchy" -->
+ <!-- TMPL_IF NAME="element_id" -->
+ <li><a href="?op=add_form&budget_id=<!-- TMPL_VAR NAME="element_id" -->&budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->"><!-- TMPL_VAR NAME="element_name" --></a></li>
+ <!-- TMPL_ELSE -->
+ <li><strong><!-- TMPL_VAR NAME="element_name" --> : </strong></li>
+ <!-- /TMPL_IF -->
+ <!-- /TMPL_LOOP -->
+ </ul>
+ <!-- /TMPL_IF --></td>
<!-- TMPL_IF NAME="budget_lock"-->
<td> <span style="color: gray;" > Edit Delete </span> </td>
<!-- TMPL_ELSE -->
<select name="budget_branchcode" id="budget_branchcode">
<option value=""></option>
<!-- TMPL_LOOP name="branchloop_select" -->
- <!-- TMPL_IF name="selected" --> <option value="<!-- TMPL_VAR name="value" -->" > <!--TMPL_ELSE--> <option value="<!-- TMPL_VAR name="value" -->" selected="selected"> <!-- /TMPL_IF --> <!-- TMPL_VAR name="branchname" --></option>
+ <!-- TMPL_UNLESS name="selected" --> <option value="<!-- TMPL_VAR name="value" -->" > <!--TMPL_ELSE--> <option value="<!-- TMPL_VAR name="value" -->" selected="selected"> <!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="value" -->-<!-- TMPL_VAR name="branchname" --></option>
<!-- /TMPL_LOOP -->
</select>
</li>