Latest Activity

B. Rymbai updated their profile
3 hours ago
Sathishkumar and Vijay Kumar Pagidikathula are now friends
3 hours ago
Nidhi kushwaha updated their profile
19 hours ago
Bidyut Bikash Kalita posted a blog post
yesterday
Evana Mukherjee updated their profile
Thursday
Amit joined Dr. Badan Barman's group
Wednesday
Amit joined Dr. Badan Barman's group
Wednesday
S. Jaffer Basha shared a profile on Facebook
Jun 21
Babita Kumari updated their profile
Jun 19
Vijay Anand Thorat updated their profile
Jun 18
Rajesh Chandra Das updated their profile
Jun 17
DR*(MRS)BALVINDER KUMARI is now friends with Rohit Jangra and Amit
Jun 16
N.KAPILESH updated their profile
Jun 16
Dr. U. PRAMANATHAN posted a blog post
Jun 15
ARUN PRASAD posted a blog post
Jun 15
Poonam posted a blog post
Jun 15
Kinnera Mukesh posted a discussion
Jun 15
Nagappa Veerappa Bakkannanavar posted an event
Jun 15
Dr. U. PRAMANATHAN posted an event

The Fr. Arrupe Central Library, St. Xavier's University, Kolkata, is organizing a Two-Day National Conference on “Bridging Knowledge, Technology, and Society through Libraries” at Fr. Albert Huart Hall (Auditorium), St. Xavier's University, Kolkata.

September 25, 2026 at 9am to September 26, 2026 at 5:30pm
Jun 15
Prohlad Basumatary updated their profile
Jun 14

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: 1948

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