Bug 33137: Add Home library to pay-fines-table and table settings
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 8 Mar 2023 16:24:26 +0000 (16:24 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 09:29:58 +0000 (11:29 +0200)
To test:
1. Apply patch and restart_All
2. From a patron's Accounting tab add some invoices that are related to an item.
3. From the 'Make a payemnt' notice the new Home library column. Make sure it displays correctly and is the same as what you see on the 'Transactions' tab.
4. Using Table settings, make sure you can properly hide the column.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt

index aa29dfd..0783724 100644 (file)
@@ -972,6 +972,8 @@ modules:
             -
               columnname: checked_out_from
             -
+              columnname: homebranch
+            -
               columnname: note
             -
               columnname: amount
index 392344b..cd2bb5f 100644 (file)
@@ -86,6 +86,7 @@
     <th>Checkin date</th>
     <th>Checkout date</th>
     <th class="checked_out_from">Checked out from</th>
+    <th>Home library</th>
     <th class="NoSort">Payment note</th>
     <th>Amount</th>
     <th>Amount outstanding</th>
             [% line.checkout.library.branchname | html %]
         [% END %]
     </td>
+    <td>
+        [% IF line.itemnumber %]
+            [% Branches.GetName( line.item.homebranch ) | html %]
+        [% END %]
+    </td>
     <td class="actions">
         <a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]"><i class="fa fa-plus"></i> Add note</a>
         <span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" style="display:none"><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="" /> <a href="#" class="cancel-note"><i class="fa fa-remove"></i></a></span>