Bug 25499: Fix fund code column when closing a budget

When closing a budget the fund code column in the table is
always empty. This is due to a TT variable not being correct.

To test:
- Create a budget and fund
- Order anything, leave basket open or not, but don't receive
- Duplicate your existing budget
- Close the first budget in order to move the pending orders
- Verify the fund code is not showing in the table
- Apply patch and reload the patch
- Verify fund codes are now showing correctly

Bonus: Changes the column heading Fund id to Fund ID.

Signed-off-by: Abbey Holt <aholt@dubuque.lib.ia.us>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Katrin Fischer 2020-05-23 01:12:22 +02:00 committed by Jonathan Druart
parent 58be086a18
commit ab015f04dc

View file

@ -312,7 +312,7 @@
<table id="budgeth"> <table id="budgeth">
<thead> <thead>
<tr> <tr>
<th>Fund id</th> <th>Fund ID</th>
<th>Fund code</th> <th>Fund code</th>
<th>Fund name</th> <th>Fund name</th>
<th>Unreceived orders</th> <th>Unreceived orders</th>
@ -322,7 +322,7 @@
[% FOREACH budget IN budgets_to_move %] [% FOREACH budget IN budgets_to_move %]
<tr> <tr>
<td>[% budget.budget_id | html %]</td> <td>[% budget.budget_id | html %]</td>
<td>[% budget.budget_code_indent | html %]</td> <td>[% budget.budget_code | html %]</td>
<td>[% budget.budget_name | html %]</td> <td>[% budget.budget_name | html %]</td>
<td>[% budget.unreceived_orders.size | html %]</td> <td>[% budget.unreceived_orders.size | html %]</td>
</tr> </tr>