Bug 17877: Add the order's notes to the table
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 Sep 2018 22:54:35 +0000 (19:54 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 13:56:30 +0000 (13:56 +0000)
This patch adds the vendor and internal note from the acquisition order
to the subscription detail page

Test plan:
- Create an order from a subscription, fill the internal and vendor
notes
- Go to the subscription's detail page
- Confirm that the columns are displayed in the "Acquisition details"
table and contain the correct values
- Make sure the "Home › Administration › Columns settings" admin page
let you hide them by default (for those who will not need them).

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt

index 0a4f66f..57bc399 100644 (file)
@@ -609,6 +609,10 @@ modules:
         -
           columnname: status
         -
+          columnname: order_internalnote
+        -
+          columnname: order_vendornote
+        -
           columnname: fund
         -
           columnname: ordered
index 498ceb2..0c6c3ef 100644 (file)
                         <th class="title-string">Creation date</th>
                         <th class="title-string">Receive date</th>
                         <th class="title-string">Status</th>
+                        <th>Internal note</th>
+                        <th>Vendor note</th>
                         <th>Fund</th>
                         <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
                         <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
                             [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
                           [% END %]
                         </td>
+                        <td>[% order.order_internalnote | html %]</td>
+                        <td>[% order.order_vendornote | html %]</td>
                         <td>[% order.fund.budget_name | html %]</td>
                         <td>
                             [% UNLESS order.datereceived %]