Koha/t/db_dependent/Circulation
Kyle M Hall 4c1ae53d86 Bug 13297 - Shelving location PROC does not work according to manual
According to the manual, "Items will stay in the PROC location until
they are checked in".

This is not the actual behavior. Right now items will only change from
PROC to CART, and that is only if InProcessingToShelvingCart is enabled.
Some libraries want to use the PROC to permanent location feature,
without using the CART.

Additionally, the location is only removed if using returns.pl, but
that is not what the manual says either. What if the library uses
SIP2 devices for handling returns? This should be taken into
account.

Test Plan:
1) Apply this patch
2) Set an item's current location to PROC, and it's permananet location
   to a different location.
3) Check the item in any way you wish
4) Note the shelving location is updated to the permanent location
5) prove t/db_dependent/Circulation/Returns.t

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

I tested this with items which had items.location set to 'PROC' and
items.permanent_location set to NULL, '', and a real value, and it
worked correctly in all cases. I tested with check-ins from returns.pl
and from the table of checkouts in circulation and the PROC location was
correctly removed in both cases.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-23 10:11:28 -03:00
..
IssuingRules Bug 12230: (follow-up) improve unit tests 2014-05-26 02:01:51 +00:00
CheckIfIssuedToPatron.t Bug 12470: (followup) License statement missing 2014-07-14 08:57:06 -03:00
CheckValidBarcode.t Bug 12470: (followup) License statement missing 2014-07-14 08:57:06 -03:00
GetIssues.t Bug 10859: (follow-up) GetIssues.t - Execute unit tests in a transaction 2014-04-21 05:30:25 +00:00
IsItemIssued.t Bug 11338: add unit tests for DelItemCheck 2013-12-25 17:07:53 +00:00
Returns.t Bug 13297 - Shelving location PROC does not work according to manual 2014-11-23 10:11:28 -03:00