Koha/t/db_dependent/Circulation
Aleisha Amohia 390e67a748 Bug 35587: Do not trigger transfer if lost item returned and BlockReturnOfLostItems enabled
This fixes current buggy behaviour - when BlockReturnOfLostItems is enabled, no transfer should be triggered and the lost status should be retained.

To test:

1. Go to Koha Administration -> Global system preferences
2. Set the BlockReturnOfLostItems system preference to Block
3. Enable the AutomaticItemReturn system preference (this is simply to make testing a bit faster)
4. Take note of your logged in library
5. Search for an item where the home library is NOT the same as your logged in library
6. Edit this item and give it a lost status
7. Check in the item
8. Notice the item is returned and a transfer is automatically triggered
9. If you go to the item record page, the lost status has been remove

10. Apply the patch and restart services

11. Edit the item again and give it a lost status. This will also cancel the transfer
12. Check in the item
13. Confirm the transfer is NOT triggered and the lost status is retained as expected.
14. Go back to system preferences and disable the BlockReturnOfLostItems system preference (set to "Don't block")
15. Check in the item
16. Confirm the transfer is triggered and lost status is removed

17. Confirm tests pass

prove t/db_dependent/Circulation/Returns.t
prove t/db_dependent/Circulation/Branch.t

Sponsored-by: Pymble Ladies' College
Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Kelly <kelly@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 930ad0178d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit fc777d84a4)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-01-12 22:26:58 +00:00
..
_CalculateAndUpdateFine.t Bug 27259: Test HomeOrHoldingBranch usage in _CalculateAndUpdateFine() 2022-11-04 19:04:18 -03:00
Branch.t Bug 25426: (QA follow-up) Make subtest stand on its own 2022-10-18 09:35:17 -03:00
CalcDateDue.t Bug 31120: Add unit tests 2022-07-27 10:03:12 -03:00
CalcFine.t Bug 34279: Don't enforce overduefinescap unless it is greater than 0 2023-08-07 20:05:46 -10:00
CheckIfIssuedToPatron.t
CheckValidBarcode.t
dateexpiry.t
GetHardDueDate.t Bug 29144: Remove opac_info from a few tests 2022-09-16 09:55:20 -03:00
GetPendingOnSiteCheckouts.t
GetTopIssues.t
IsItemIssued.t Bug 29788: Make Koha::Item->safe_to_delete use Koha::Result::Boolean 2022-01-11 12:38:35 -10:00
issue.t Bug 30403: (QA follow-up) Fix warning in unit test 2023-04-06 10:45:05 -03:00
MarkIssueReturned.t Bug 31095: Remove GetDebarments from MarkIssueReturned.t 2023-01-31 10:19:39 -03:00
maxsuspensiondays.t Bug 31095: Remove GetDebarments from maxsuspensiondays.t 2023-01-31 10:19:39 -03:00
NoIssuesChargeGuarantees.t Bug 32351: Fix t/db_dependent/Circulation/NoIssuesChargeGuarantees.t 2022-11-30 15:58:20 -03:00
OfflineCirculation.t Bug 30114: Add Unit Tests 2022-04-04 16:23:45 +02:00
OfflineOperation.t Bug 29144: Remove opac_info from a few tests 2022-09-16 09:55:20 -03:00
ReturnClaims.t
Returns.t Bug 35587: Do not trigger transfer if lost item returned and BlockReturnOfLostItems enabled 2024-01-12 22:26:58 +00:00
StoreLastBorrower.t Bug 32894: (follow-up) Koha::Item->last_returned_by 2023-07-12 07:50:41 +01:00
SwitchOnSiteCheckouts.t
TooMany.t Bug 27259: Test HomeOrHoldingBranch usage in TooMany() 2022-11-04 19:04:17 -03:00
transferbook.t Bug 31735: Avoid re-fetcing objects from database by passing them directly instead of ids to various subroutines 2023-05-12 12:40:21 -03:00
transfers.t Bug 24295: Finally remove GetTransfers from C4/Circulation 2022-08-26 15:42:56 -03:00