Bug 11027: Add a column for basketgroups in late orders table and improve other columns
authorMathieu Saby <mathieu.saby@univ-rennes2.fr>
Wed, 18 Dec 2013 21:09:50 +0000 (22:09 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 21 Apr 2014 04:33:00 +0000 (04:33 +0000)
commit4d80cc0ec729d40bf8f89242eb2449df763e4d93
treee22a04bf7caa7e4e06b9a81c0906018c8e0b5f6b
parentdaebb78b4e5fdd595e0d16d505c9fa31a8639da8
Bug 11027: Add a column for basketgroups in late orders table and improve other columns

This patch makes 4 changes in late orders page :
- adding a new column for basketgroup, displaying
  the name and number of the basketgroup
- displaying the name of the basket as well as its
  number, with a hyperlink to this basket
- displaying fund in a separate column to make
  sorting easier, and renaming it from "budget" to
  "fund" (the confusion can be found elsewhere in Koha...)
- displaying branch in a separate column to make
  sorting easier (this column could be improved later,
  by getting branch from basketgroup if there is one)

For that, in Aquisition.pm, I made some changes to GetLateOrders:
- 3 new columns in SELECT
- 1 new join

To test :
1. Display the list of late orders of your instance.
2. Check you have 3 new columns for basketgroups, fund and branch
3. In basketgroup column you should have "name of basket group (number)"
4. In basket column you should have "name of basket (number)"
5. Check the links for basketgroups. They should send you to the
   page displaying information for each basketgroup
   (without possibiliy of editing them if they are closed)

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patches pass QA script and all tests.
Works as described. Also checked sorting and orders which
are not in a basketgroup display correctly.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Acquisition.pm
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt