https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383
--- Comment #229 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211721 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211721&action=edit Bug 42383: (QA follow-up) Report a refused check-in in a red alert under the form, not in a modal When the module policy refuses a check-in (BlockReturnOfWithdrawnItems, BlockReturnOfLostItems, an item that must be checked in at another library), the Vue page opened a "Cannot check in" modal with an OK button to acknowledge. The legacy page showed a red alert for withdrawn and lost items. Nothing is decided in this modal: it only informs, and it costs a click before the next item can be scanned, in a page where the other outcomes (messages, fees, bundle changes) are shown in alerts under the form. The page now follows one rule: a modal is for a choice that changes what happens next, and an alert is for an outcome. A refused check-in is an outcome, so: - a red alert ("NOT CHECKED IN", then the reason) is shown under the form, like the other alerts of the page. It has role="alert" and plays the warning sound - the note about the accompanying materials, if the item has one, is shown with it - the row of the table stays marked "Blocked", and the next item can be scanned at once - a refused check-in no longer waits in the queue of the modals Test plan: 1. Apply the patch and rebuild the JS (yarn js:build) 2. Set BlockReturnOfWithdrawnItems, withdraw a checked out item and check it in => A red "NOT CHECKED IN: This item is withdrawn and cannot be checked in." alert under the form, no modal, and the barcode box is ready 3. Set BlockReturnOfLostItems, mark an item lost and check it in => The same, for a lost item 4. 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 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
