https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 --- Comment #105 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 209765 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209765&action=edit Bug 42383: (QA follow-up) Show the new overdue charge message on lost returns With the lost item refund policy 'Refund lost item charge and charge new overdue fine', AddReturn reports both lost_item_fee_refunded and lost_item_fee_charged. The check-in page shows a single lost fee outcome, picking the first one found in a list that started with lost_item_fee_refunded, so the new overdue charge was never mentioned. This patch makes lost_item_fee_charged and lost_item_fee_restored take precedence over lost_item_fee_refunded. Their texts already state that the lost item charge was refunded. Test plan: 1. Set a circulation rule with an overdue fine and finesMode to 'Calculate and charge' 2. Set the lost item refund policy (Default lost item fee refund on return policy) to 'Refund lost item charge and charge new overdue fine' 3. Check out an item with a replacement cost and a due date in the past, then mark it lost 4. Check the item in on the check-in page => FAIL: Only 'A refund for the lost item charge has been applied to the borrowing patron's account.' is displayed 5. Apply this patch and rebuild the JS: $ ktd --shell k$ yarn build 6. Repeat steps 3 and 4 => SUCCESS: The message also says 'and new overdue charge has been calculated and applied', and it is displayed only once 7. Check the patron's account => SUCCESS: The lost fee was refunded and a new overdue fine created 8. Sign off :-D Assisted-by: Opus 5.5 (Anthropic) Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> -- You are receiving this mail because: You are watching all bug changes.