Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
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
..
csv Bug 10935: (follow-up) adding a line break to fix first list item 2013-10-17 17:03:41 +00:00
acqui-home.tt Bug 10792: fix sorting of funds table on acquisitions home page 2013-09-16 15:30:33 +00:00
addorderiso2709.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
ajax.tt
basket.tt Bug 5349: (follow-up) tweak order transfer form 2013-09-16 15:21:07 +00:00
basketgroup.tt Bug 7469: put focus on 1st field of creation form instead of search box (Acquisition) 2013-09-16 15:53:17 +00:00
basketheader.tt Bug 7469: put focus on 1st field of creation form instead of search box (Acquisition) 2013-09-16 15:53:17 +00:00
booksellers.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
histsearch.tt Bug 5336: (follow-up) multiple QA fixes 2013-10-22 13:30:34 +00:00
invoice.tt Bug 10705: change 'shipment cost' to 'shipping cost' 2013-10-09 04:59:43 +00:00
invoices.tt Bug 10401: Add ability to merge invoices 2013-10-21 19:08:03 +00:00
lateorders.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
modordernotes.tt Bug 7469: put focus on 1st field of creation form instead of search box (Acquisition) 2013-09-16 15:53:17 +00:00
neworderbiblio.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
neworderempty.tt Bug 8821: make receive shipment page hide inactive funds like new order form 2013-09-16 16:26:12 +00:00
neworderempty_duplicate.tt
newordersubscription.tt Bug 10689: make subscription public note appear when making a new order from a subscription 2013-10-11 04:23:24 +00:00
newordersuggestion.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
ordered.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
orderreceive.tt Bug 10403: Show inactive but unlocked budgets on orderreceive 2013-10-22 12:57:41 +00:00
parcel.tt Bug 10724: Pending orders: add basket group name in filters 2013-10-21 18:54:03 +00:00
parcels.tt Bug 10705: change 'shipment cost' to 'shipping cost' 2013-10-09 04:59:43 +00:00
spent.tt Bug 10705: follow-up - change one more instance of "shippment cost" 2013-10-09 05:00:37 +00:00
supplier.tt Bug 10847: Open link to vendor's website in new window 2013-09-23 16:10:33 +00:00
transferorder.tt Bug 5349: (follow-up) tweak order transfer form 2013-09-16 15:21:07 +00:00
uncertainprice.tt Bug 10649 - Upgrade DataTables and move scripts out of theme directory 2013-09-05 15:43:36 +00:00
z3950_search.tt Bug 9747: sorting z3950 search results in acquisition 2013-10-09 04:22:28 +00:00