Bug 22498: Rename variable for budgets loop for invoice adjustments
authorNick Clemens <nick@bywatersolutions.com>
Tue, 12 Mar 2019 13:15:34 +0000 (13:15 +0000)
committerroot <root@f1ebe1bec408>
Fri, 15 Mar 2019 11:33:38 +0000 (11:33 +0000)
To test:
1 - Try to add some adjustments to an invoice (receive shipments, create invoice, click 'finish receiving')
2 - Note the fund dropdown has only 'No fund'
3 - Apply patch
4 - Refresh page
5 - Note you can now select funds, hooray!

Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt

index 1351676..6498f42 100644 (file)
                                   <td>
                                       <select id="budget_id_[% adjustment.adjustment_id | html %]" name="budget_id">
                                               <option value="">No fund</option>
-                                          [% FOREACH budget IN budgets_loop %]
-                                              [% IF ( budget.budget_id == adjustment.budget_id ) %]
-                                                  <option selected="selected" value="[% budget.budget_id | html %]">
+                                          [% FOREACH budget IN budgets %]
+                                              [% IF ( budget.b_id == adjustment.budget_id ) %]
+                                                  <option selected="selected" value="[% budget.b_id | html %]">
                                               [% ELSE %]
-                                                  <option value="[% budget.budget_id | html %]">
+                                                  <option value="[% budget.b_id | html %]">
                                               [% END %]
-                                              [% budget.budget_name | html %]
+                                              [% budget.b_txt | html %]
                                               </option>
                                           [% END %]
                                       </select>
                                   <label for="budget_id_new">Fund: </label>
                                   <select id="budget_id_new" name="budget_id">
                                       <option selected="selected" value="">No fund</option>
-                                      [% FOREACH budget IN budgets_loop %]
-                                          <option value="[% budget.budget_id | html %]">
-                                          [% budget.budget_name | html %]
+                                      [% FOREACH budget IN budgets %]
+                                          <option value="[% budget.b_id | html %]">
+                                          [% budget.b_txt | html %]
                                           </option>
                                       [% END %]
                                   </select>