[Koha-bugs] [Bug 17483] Forgiving charge should apply to item's last fine.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 21 17:59:11 CEST 2016


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

--- Comment #1 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 56725
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56725&action=edit
Bug 17483 - Forgiving charge should apply to item's last fine.

When returning an item with a fine, if the Forgive checkbox is clicked, this
forgives
the first accountline associated to the item/user, not the current/latest as it
should.

Scenario (Real world):
- A patron returns a book late, ensuring a 5$ fine.  Does not pay it.
- The patron borrows the book again 3 months later.  Gets late again, and fined
2$.
- Great timing: The library offers amnesty for a week.  Bring back your book
and we'll forget that they're late.
- On checkin, the librarian clicks "Forgive overdue charges" and scan the book.
- Koha cancels the 3-months-ago 5$ fine.

Test scenario:
- Find a user with an unpaid fine (accounttype = 'FU' in db) on a returned
item.
- Checkout the same item for the same user.
- CHOICE 1: - Force it being late by modifying the date_due to last year.
            - Run fines.pl to generate another fine.
- CHOICE 2: - Create directly another accountlines entry in the DB with the
same info
            - You may change the amounts to help differentiate
- Go to the returns.pl screen, check the Forgive checkbox.  Return the item.
- Look at the DB, the first line got paid.  Not the latest one.
- APPLY THE PATCH
- Redo scenario, this time the latest entry (by the timestamp column) is paid.

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


More information about the Koha-bugs mailing list