https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 --- Comment #220 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211712&action=edit Bug 42383: (QA follow-up) Make "Cancel transfer" explicit when the transfer already exists When AutomaticItemReturn is enabled (or a wrong transfer is replaced) Koha creates the transfer, and sets it in transit, before the check-in dialog is shown. The Vue dialog nevertheless asked "Yes, transfer (Y)" and "No, don't transfer (N)", as if nothing had been done yet. Choosing "No" in fact cancels the transfer after the fact: it is kept in the transfers table with a cancellation date and the reason "Manual". The wording hid that, and it could not be reached with a cancel-specific shortcut. The legacy wrong-transfer dialog already uses "Cancel transfer (X)", so the same wording and access key are used here. When the check-in already has a transfer the dialog now reads: OK (Y) / Print slip (P) / Cancel transfer (X) with a note explaining that cancelling records the cancellation in the item's transfer history. When there is no transfer yet (the item "needs a transfer", AutomaticItemReturn disabled) the dialog asks "Transfer now?" with "Yes, transfer (Y)", "Yes, print slip and transfer (P)" and "No, don't transfer (N)", where "No" simply creates nothing. The print button used to read "Print slip and transfer"; it keeps the "Yes," of the legacy "Yes, print slip" so that it reads as the answer to the question. Test plan: 1. Apply the patch and rebuild the JS (yarn js:build) 2. Item belongs to library B, check it in at library A with AutomaticItemReturn on => The dialog says OK (Y) / Print slip (P) / Cancel transfer (X) 3. Press X => The item is Available, and the transfer is listed as cancelled (reason Manual) in the item's transfer history 4. Set AutomaticItemReturn to Don't automatically transfer, repeat => "Transfer now?" with Yes/No, "No" creates no transfer 5. Run: $ yarn cypress run --spec t/cypress/integration/Circulation/Checkin_spec.ts => SUCCESS: Tests pass! Assisted-by: Sonnet 5.5 (Anthropic) Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.