Browse Source

Bug 21882: Show price information in acqusitions tab on staff detail page

This adds a new 'Price' column to the acqusition details tab.

To test:
- Apply patch
- Add one or more orders for a record.
- Before closing the basket: go to the detail page in the catalog
- Verify that the price estimated/budgetet price now shows in a new column
- Add actual cost to the basket or close the basket and receive the item
- Verify the column now shows the updated actual cost
- Verfy the tooltip on the table heading works
- Verify the column configuration for the new column works as well

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Katrin Fischer 1 year ago
committed by Jonathan Druart
parent
commit
d1f412bd76
  1. 2
      admin/columns_settings.yml
  2. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

2
admin/columns_settings.yml

@ -402,6 +402,8 @@ modules:
columnname: status
-
columnname: quantity
-
columnname: price
-
columnname: order_internalnote
-

3
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

@ -5,6 +5,7 @@
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Biblio %]
[% USE Price %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
@ -717,6 +718,7 @@ Note that permanent location is a code, and location may be an authval.
<th class="title-string">Receive date</th>
<th>Status</th>
<th>Quantity</th>
<th title="Estimated cost tax incl. while pending, actual cost tax incl. once received">Price</th>
<th>Internal note</th>
<th>Subscription</th>
<th>Subscription callnumber</th>
@ -769,6 +771,7 @@ Note that permanent location is a code, and location may be an authval.
[% END %]
</td>
<td>[% order.quantity | html %]</td>
<td>[% IF ( order.unitprice_tax_included > 0 ) %][% order.unitprice_tax_included | $Price %][% ELSE %][% order.ecost_tax_included | $Price %][% END %]
<td>[% order.order_internalnote | html %]</td>
<td>
[% IF order.subscriptionid %]

Loading…
Cancel
Save