Latest Activity

Dr. U. PRAMANATHAN posted blog posts
20 hours ago
Bidyut Bikash Kalita posted blog posts
22 hours ago
Profile IconBidyut Bikash Kalita, SANTHOSHA M, Pooja devi and 7 more joined LIS Links
yesterday
Dr. Badan Barman posted a blog post
Friday
Praveen Kumar and Dr. Badan Barman are now friends
Thursday
Praveen Kumar updated their profile
Thursday
Anandanayaka S G updated their profile
Wednesday
Dr.W.Vijaya Shoba shared their event on Facebook
Jan 24
Dr.W.Vijaya Shoba posted an event
Thumbnail

Stress and Stress Management for College Students at Kaliakkavilai

January 30, 2026 from 3pm to 4pm
Jan 22
Dr. U. PRAMANATHAN posted a discussion
Jan 22
Sachin Chourasia updated their profile
Jan 20
Dr. U. PRAMANATHAN posted an event

RRRLF-sponsored National Conference on Information Landscape: Trends and Innovations in Public and Academic Libraries (NCILTIPAL 2026) at Kasthurba Kalaiarangam, Vellalar College for Women (Autonomous), Thindal, Erode.

February 13, 2026 at 9am to February 14, 2026 at 5pm
Jan 20
Profile Iconsanthosh kumar, D.Seshu Kumari, Shruthi and 4 more joined LIS Links
Jan 20
Dr.W.Vijaya Shoba shared a profile on Facebook
Jan 12
Accutek Packaging Machine updated their profile
Jan 6
Gurwinder Singh updated their profile
Jan 5
Adithya updated their profile
Jan 5
Parthasarathivamanan.K and Pushpanjali Shriram Patil are now friends
Jan 4
Dr Shiva Kumara SU updated their profile
Jan 4
Profile IconPushpa sahu, Abhishek Gupta, Shikha Pandey and 2 more joined LIS Links
Dec 30, 2025

I wants to know how to take monthly fine report in Koha software with the following details

date, name of patron, patrons number, fine amount????

Views: 1842

Reply to This

Replies to This Forum

you click on the link

http://wiki.koha-community.org/wiki/SQL_Reports_Library#Fines_w.2F_...

or

you can copy this and save and run sql command

SELECT      (SELECT CONCAT('<a href=\"/cgi-bin/koha/members/boraccount.pl?borrowernumber=',b.borrowernumber,'\">', b.surname,', ', b.firstname,'</a>')      FROM borrowers b WHERE b.borrowernumber = a.borrowernumber) AS Patron,      format(sum(amountoutstanding),2) AS 'Outstanding',     (SELECT count(i.itemnumber) FROM issues i WHERE b.borrowernumber = i.borrowernumber) AS 'Checkouts' FROM      accountlines a, borrowers b WHERE      (SELECT sum(amountoutstanding) FROM accountlines a2 WHERE a2.borrowernumber = a.borrowernumber)  > '0.00'     AND a.borrowernumber = b.borrowernumber GROUP BY      a.borrowernumber ORDER BY b.surname, b.firstname, Outstanding ASC

 

thank you sir

Hello Sir,

Which SQL Command will be used for Daily Fine Report in KOHA 

SELECT
b.surname, b.cardnumber,b.categorycode,b.Sort1, bib.title, i.barcode,
a.amountoutstanding, ni.issuedate, ni.date_due,
IF ( ni.returndate IS NULL , " ", ni.returndate ) AS returndate
FROM accountlines a
LEFT JOIN borrowers b ON ( b.borrowernumber = a.borrowernumber )
LEFT JOIN items i ON ( a.itemnumber = i.itemnumber )
LEFT JOIN biblio bib ON ( i.biblionumber = bib.biblionumber )
LEFT JOIN ( SELECT * FROM issues UNION SELECT * FROM old_issues ) ni ON ( ni.itemnumber = i.itemnumber AND ni.borrowernumber = a.borrowernumber )
WHERE
a.amountoutstanding > 0
GROUP BY a.description
ORDER BY b.surname, b.firstname, ni.timestamp DESC

RSS

© 2026   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

LIS Links whatsApp