https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36957

--- Comment #1 from Emmi Takkinen <[email protected]> ---
Created attachment 180757
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180757&action=edit
Bug 36957: Add new syspref CancelTransitWhenItemFloats and
branchtransfers.cancelation_reason ItemArrivedToFloatBranch

When item is in transfer and it is checked in in a library
where it could float, a notification/pop-up about transport
will appear on the screen. User must end the transfer by
clicking “Cancel transfer”-button. Only then will the item
end the transport and start floating in the holding library.

This patch adds new system preference "CancelTransitWhenItemFloats".
If it's enabled and item is checked in in a library where it
can float Koha no longer asks user to cancel transfer. Instead
transfer is automatically cancelled and column
branchtransfers.cancelation_reason is filled with a new value
"ItemArrivedToFloatBranch".

To test:
1. Create a new floating group and add libraries A and B to it.
2. Find an item which is in transit to branch A.
3. Change your library as library B.
4. Attempt to check in item you found.
=> Wrong transfer notification is displayed.
5. Apply this patch, run perl installer/data/mysql/updatedatabase.pl
and restart services.
6. Enable new systempreference "CancelTransitWhenItemFloats".
7. Check in same item you found (or find new one to check in).
=> Notification isn't displayed.
=> Check your database and confirm that trasfer was cancelled with
cancelation_reason as "ItemArrivedToFloatBranch" by running following
query in your database:
select * from branchtransfers where itemnumber = (select itemnumber
from items where barcode = "[barcode of checked in item]");
8. Change your library as library C (that isn't in the same float
group as A and B).
9. Attempt to check in an item in transit to branch A.
=> Wrong transfer notification is displayed.
10 Disable systempreference "CancelTransitWhenItemFloats".
11. Change your libary as library B and attempt to check in an item
in transit to library A.
=> Wrong transfer notification is displayed.

Also prove t/db_dependent/Circulation.t

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to