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

--- Comment #228 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211720
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211720&action=edit
Bug 42383: (QA follow-up) Resolve a return claim in the same modal, and name
"Ignore" for what it does

Checking in an item with a return claim needed two consecutive modals: the
"Return claim" modal, with "Resolve claim" and "Ignore", then a second
"Resolve return claim" modal asking for the resolution. The first one only
asked staff to open the second. The "Ignore (I)" button did not say what is
being ignored: the item is already checked in, it only leaves the claim
unresolved.

The resolution fields are now in the return claim modal:

 - the resolution (required) and the optional new lost status, under the
   messages about the check-in. Opening the claim from the row of the
   checked-in items shows the same modal
 - "Resolve claim (Y)", disabled until a resolution is chosen, resolves the
   claim and closes the modal; an error is shown in the modal
 - "Ignore (I)" is "Resolve later (L)"

The fee messages of the modal ("lost item fees will remain on the patron's
account"...) are the outcome of the check-in itself, which already found the
item and applied the lost item refund rules. They stay correct after the
claim is resolved: resolving only records the resolution, and the new lost
status only sets the status of the item, nothing is charged or refunded when
it changes. The modal now says so under the lost status.

The second modal is removed.

Test plan:
1. Apply the patch and rebuild the JS (yarn js:build)
2. Set ClaimReturnedLostValue, and claim an item as returned by the patron
   it is checked out to
3. Check the item in
=> One "Return claim" modal, with the resolution fields, "Resolve claim
   (Y)" (disabled) and "Resolve later (L)"
4. Choose a resolution and press Y
=> The claim is resolved, the row is marked resolved, no second modal
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 <[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/

Reply via email to