Latest Activity

Yogesh Modi updated their profile
19 hours ago
Dr.Anil Duboliya posted a status
"Adoption and Utilization of Digital Repositories in Medical College Libraries: An Empirical Study"
yesterday
Mr REYAZ AHMAD KHAN is attending Dr.K.S.SHIVRAJ's event

A One-day National Workshop on Smart Citations Using Scite.ai at Online

December 17, 2025 from 11:30am to 12:30pm
Wednesday
Dr.K.S.SHIVRAJ posted an event

A One-day National Workshop on Smart Citations Using Scite.ai at Online

December 17, 2025 from 11:30am to 12:30pm
Tuesday
melvin jebaraj posted an event
Tuesday
Somaraya B Tallolli posted an event
Thumbnail

VTU National Conference on Engineering Librarianship (VTUNCEL 2025) at Visvesvaraya Technlogical University

January 22, 2026 to January 24, 2026
Tuesday
BANDI YUGANDHAR posted an event
Tuesday
Dr. Shamim Aktar Munshi posted an event
Tuesday
RAMESH posted an event

ICSSR Sponsored Two Days National Seminar on Role of University Libraries towards Realizing Viksit Bharat @ 2047 (RULVB@2047)’ at Dept. of Library and Information Science & Central Library Dravidian University, Kuppam, Andhra Pradesh

January 23, 2026 at 9am to January 24, 2026 at 5pm
Tuesday
Anil Kumar Gupta is now a member of LIS Links
Tuesday
Samidha Sandeep Yadav updated their profile
Monday
Sajad Ahmad Kumar updated their profile
Saturday
SANJEET SEHRAWAT might attend Dr. Ashis Biswas's event
Dec 12
Sunny Sharma updated their profile
Dec 12
Sunny Sharma left a comment for lata sharma
Dec 12
Parthasarathivamanan.K commented on Parthasarathivamanan.K's event 'International Conference on Transforming Libraries: Innovation, Management, Smart Technologies and Creative Knowledge of Society for the Future'
Dec 11
Parthasarathivamanan.K commented on Parthasarathivamanan.K's event 'International Conference on Transforming Libraries: Innovation, Management, Smart Technologies and Creative Knowledge of Society for the Future'
Dec 11
Parthasarathivamanan.K left a comment for Narendra Bhattacharya
Dec 11
Sunita Pareek posted an event
Thumbnail

Webinar on AI for Libraries at https://meet.google.com/fey-fjee-mdr

December 12, 2025 from 12pm to 2pm
Dec 11
Mr REYAZ AHMAD KHAN updated their profile
Dec 11

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

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

© 2025   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

LIS Links whatsApp