Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 489d480042 Bug 5336: (follow-up) multiple QA fixes
- add a message if the search returns no result
- keep selected values if the search returns no result (for fund and
  order status)
- remove plurals in order status
- move the order status column in the search results table

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
New tests also pass:
    t/db_dependent/Acquisition/close_reopen_basket.t

1) Database update - I end up with too many partials. My test cases:

 - New orders, basket still open
   OK Expected: new, Result: partial
 - Ordered orders, basket and basketgroup closed
   OK Expected: ordered, Result: partial
 - Partially received orders
   OK Expected: partial/complete, Result: partial/complete
 - Received orders
   OK: Expected: complete, Result: complete
 - Cancelled orders
   * cancelled from open basket before order
   OK: Expected: cancelled, Result: cancelled
   * cancelled from closed basket before receive
   OK: Expected: cancelled, Result: cancelled

All aqorders where updated with the correct status.

I have saved my 'pre-updatedatabase' and can repeat the test anytime you have a follow up.

2) Testing search functionality

  a) Order search - result list
  Order search shows a new column, I think it would be a bit better if the
  status there was singular instead of plural - new order, partially received
  order etc. - maybe we could even leave out the 'order'? (minor)

  The column seems a bit lost in the middle, not sure where it would make more
  sense (just saying)

  b) Order search - advanced search form
  The advanced search form now shows a new filter: Order status

  All new status can be searched.
  - an "empty" search will find all but cancelled orders
  - searching for cancelled orders works correctly and shows results
  Search works correctly, no regressions found.

  If no result is found a message is shown.
  All search input is kept, so you can modify your search terms easily.

3) Testing setting of status after applying the patch

   a) Create a new order with 2 items - status is new. OK
   b) Close the basket - status is ordered. OK
   c) Receive both items - status is completed. OK
   d) Undo receipt - status is ordered. OK
   e) Receive only 1 item - order is split up into 2 orders:
       - status is partial OK
       - status is completed OK
   f) Undo receipt of received item - order is combined into 1 again
       - status is ordered OK!
   g) Receive only 1 item again - status ordered/partial.
   h) Delete order.
       - status is completed
       - status is cancelled
      OK!

   i) Undo receipt of 1 item again.
      Refresh page.

This results in the following behaviour, that has been reported as
bug 10984. After refreshing the page follow message is shown:
  Cannot cancel receipt. Possible reasons :
    - The order line you trying to cancel was created from a partial
    receipt of another order line which is already received.
    Try to cancel this one first and retry.
    - The order line you trying to cancel was created from a partial
    receipt of another order line which has been deleted.
    Cancellation is not possible.
  BUT: The receipt is undone, but you are left with a
    line with 2 items, a cancellation date and the status ordered.
    Because of the cancellation date the order is not visible in pending orders.

The status is correct - so I feel this should not stop this patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-22 13:30:34 +00:00
..
acqui Bug 5336: (follow-up) multiple QA fixes 2013-10-22 13:30:34 +00:00
admin Bug 10038: fix doubled 'default' entry when creating a new authority type 2013-10-18 04:43:28 +00:00
authorities bug 5202: (follow-up) adjust for the move of the merge record Javascript 2013-10-10 21:50:08 +00:00
basket Bug 11003: fix JS error on the staff cart page 2013-10-22 01:47:02 +00:00
batch
catalogue Bug 8070: improve MARC preview display for RTL languages 2013-10-21 16:04:53 +00:00
cataloguing Bug 10982: fix link to IFLA UNIMARC documentation in Cataloging 2013-10-22 05:23:51 +00:00
circ Bug 10785: (follow-up) fix one last bit of capitalization 2013-10-22 05:43:00 +00:00
course_reserves
errors
help Bug 10785: (follow-up) fix one last bit of capitalization 2013-10-22 05:43:00 +00:00
installer
labels Bug 10850 - give quick spine label template page its own ID 2013-10-18 04:51:14 +00:00
members Bug 11002: (follow-up) use jQuery validator plugin 2013-10-22 05:19:08 +00:00
offline_circ
patron_lists Bug 10565: (follow-up) improve navigation aids 2013-10-14 22:43:03 +00:00
patroncards
plugins
reports
reserve Bug 10917: allow staff to update hold pickup location without modify_holds_priority 2013-10-08 14:23:07 +00:00
reviews
rotating_collections
serials Bug 10689: make public note appear in subscriptions search 2013-10-11 04:21:47 +00:00
services
sms
suggestion Bug 10668 - Improve suggestion detail page - QA Followup 2013-10-04 03:15:59 +00:00
tags Bug 10730: (follow-up) restore background color for cells 2013-09-25 16:48:21 +00:00
test
tools Bug 10565: (follow-up) add new user permission for patron list management 2013-10-14 22:43:03 +00:00
virtualshelves
z3950
about.tt Bug 10915: (QA followup) warn if cannot read history.txt 2013-09-20 17:25:57 +00:00
auth.tt
intranet-main.tt Bug 10888: Don't hide authorities module from users who lack permission to edit authorities 2013-09-21 17:59:05 +00:00