[Koha-bugs] [Bug 31060] Fine duplicates when returning item with accountline status marked as lost

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 28 21:59:36 CEST 2022


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

--- Comment #1 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
Created attachment 136694
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136694&action=edit
Bug 31060: Fine duplicates when returning item with accountline status marked
as lost

Fine duplicates when returning an overdue item with Fine(Lost) fee.

To test:
1- System preferences:
    finesMode:                    Calculate and charge
    CalculateFinesOnReturn:       Do
    WhenLostChargeReplacementFee: Don't charge
    MarkLostItemsAsReturned:      uncheck from the items tab of the catalog
module
2- Have a circulation rule with defined non-zero Fine amount and Fine charging
interval. (Will have to use the patron category and item type associated to
this circulation rule to test)
3- Checkout a document from the patron with backdated due date (backdated
enough depending on the Fine charging interval set)
4- Run ./misc/cronjobs/fines.pl
5- There should be a Fine(Accruing) in accounting tab of the patron
6- Go to the checked out item detail and set Lost status: Long overdue (Lost)
and click Set status
7- Now, Fine(Accruing) changed to Fine(Lost) in the accounting tab of the
patron
8- In item detail, set Lost status: Choose and click Set status
9- Notice Fine(Lost) did not switch back to Fine(Accruing) in the accounting
tab
10- Check in the item
11- Notice there is a duplicate fee Fine(Returned) and Fine(Lost) is still
there
12- Apply the patch
13- Write off all fines of the patron
14- Repeat step 3 to 10
15- Notice there is only Fine(Lost) and no duplicate

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list