Bug 13962: Add vendor to acq details tab in staff

Implementing some feedback from our user meeting:
The acquisition details tab on the detail page
in staff should also show the vendor of the
order.

To test:
- Make sure AcquisitionDetails is active.
- Create an order or look up an order in the
  acqusition module.
- Go to the ordered record and check the
  'Acquisition details' tab
- Verify the vendor shows up there as first
  column now
- Check that sorting and display of the other
  columns are still working correctly

Note: Also fixes a </th> that should be a </td>
Signed-off-by: Aleisha <aleishaamohia@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2015-06-10 00:34:50 +02:00 committed by Tomas Cohen Arazi
parent 198e6669ee
commit 55103ad860

View file

@ -295,9 +295,9 @@ function verify_images() {
'sDom': 't',
'bPaginate': false,
'bAutoWidth': false,
"aaSorting": [[ 3, "desc" ]],
"aaSorting": [[ 4, "desc" ]],
"aoColumnDefs": [
{ "aTargets": [ 3, 4 ], "sType": "title-string" }
{ "aTargets": [ 4, 5 ], "sType": "title-string" }
]
}));
@ -932,6 +932,7 @@ function verify_images() {
<table id="orders">
<thead>
<tr>
<th>Vendor</th>
<th>Basket group</th>
<th>Basket</th>
<th>Order number</th>
@ -944,6 +945,11 @@ function verify_images() {
<tbody>
[% FOR order IN orders %]
<tr>
<td>
[% IF (order.id) %]
[% order.name %]
[% END %]
</td>
<td>
[% IF (order.basketgroupid) %]
[% IF CAN_user_acquisition_group_manage %]
@ -970,7 +976,7 @@ function verify_images() {
[% CASE 'cancelled' %]Cancelled
[% END %]
</td>
<td>[% order.quantity %]</th>
<td>[% order.quantity %]</td>
</tr>
[% END %]
</tbody>