https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38787
Bug ID: 38787
Summary: "Paid for?" message in item info lists patrons who did
not pay for item
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Fines and fees
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Depends on: 19919
To confirm:
- have an item checked out
- mark it lost, generating a fee on the patron account
- check it in, generating a full refund on the patron account
- mark the item lost again (it doesn't matter if it's checked out to another
patron or not)
- go to moredetail.pl, see your item shows "Paid for: [your patron]"
Bug 19919 introduced logic to determine whether or not an item had previously
been lost and then paid for. It will show the "Paid for" message and a patron's
name and barcode if:
- the item is currently lost
- there is an accountlines entry linked to that item number with the following
qualities:
-- accountlines.debit_type_code = LOST
-- accountlines.status != 'RETURNED'
-- accountlines.amountoutstanding = 0
So, show this if the item has an associated charge that reached $0 via means
other than a return. But when a lost item gets checked in we update that status
to "FOUND" and anyway the debit for a lost item that gets paid off has a NULL
status, so it won't be found by looking for status != "FOUND".
Would it work to look for lines with debit_type_code='LOST',
amoundoutstanding=0, and status IS NULL? I don't have a good enough handle on
accountlines statuses to be sure.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19919
[Bug 19919] Writing off a Lost Item Fee marks as "Paid for by patron"
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/