Bug 25499: Fix fund code column when closing a budget
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 22 May 2020 23:12:22 +0000 (01:12 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:44:27 +0000 (17:44 +0200)
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>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt

index 3af0868..d270976 100644 (file)
     <table id="budgeth">
       <thead>
         <tr>
-            <th>Fund id</th>
+            <th>Fund ID</th>
             <th>Fund code</th>
             <th>Fund name</th>
             <th>Unreceived orders</th>
         [% FOREACH budget IN budgets_to_move %]
           <tr>
             <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.unreceived_orders.size | html %]</td>
           </tr>