Bug 33137: Add call number to pay-fines-table and table settings
authorLucas Gass <lucas@bywatersolutions.com>
Wed, 8 Mar 2023 16:40:24 +0000 (16:40 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 09:29:59 +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 Call number column.
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 0783724..567be75 100644 (file)
@@ -964,6 +964,8 @@ modules:
             -
               columnname: barcode
             -
+              columnname: callnumber
+            -
               columnname: date_due
             -
               columnname: returndate
index cd2bb5f..6c809b1 100644 (file)
@@ -82,6 +82,7 @@
     <th>Description</th>
     <th>Date</th>
     <th>Barcode</th>
+    <th>Call number</th>
     <th>Due date</th>
     <th>Checkin date</th>
     <th>Checkout date</th>
         [% END %]
     </td>
     <td>
+        [% IF line.itemnumber %]
+            [% line.item.itemcallnumber | html %]
+        [% END %]
+    </td>
+    <td>
         [% IF line.issue_id %]
             [% line.checkout.date_due | $KohaDates as_due_date => 1 %]
         [% END %]