Latest Activity

Dr.W.Vijaya Shoba shared a profile on Facebook
10 hours ago
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
Dr. Badan Barman updated an event

3rd One Week National Workshop on Open-Source Software: Koha and DSpace at Aligarh Muslim University

February 9, 2026 to February 14, 2026
Dec 30, 2025
AMAN SAHU is attending Dr shraddha kalla's event
Thumbnail

RTLA 11th Conference on Knowledge Commons Libraries as Catalysts for Viksit Bharat 2047 at IIHMR University, , Rajasthan

February 21, 2026 to February 22, 2026
Dec 28, 2025
Dr shraddha kalla posted an event
Thumbnail

RTLA 11th Conference on Knowledge Commons Libraries as Catalysts for Viksit Bharat 2047 at IIHMR University, , Rajasthan

February 21, 2026 to February 22, 2026
Dec 26, 2025
SYED SHAZ HUSAIN posted an event

3rd One Week National Workshop on Open-Source Software: Koha and DSpace at Aligarh Muslim University

February 9, 2026 to February 14, 2026
Dec 26, 2025
Profile IconMikaila Rodrigues, Rags P, Randeep Singh and 14 more joined LIS Links
Dec 26, 2025
SURYA PRATAP SINGH updated their profile
Dec 25, 2025
LAITHANGBAM NEPOLEAN SINGH is attending Dr. Ashis Biswas's event

I-KOAL 2026 Conference on Preserving Traditional Agriculture Knowledge via Digital Rural Libraries at Rajiv Gandhi University, Arunachal Pradesh

January 30, 2026 at 9am to January 31, 2026 at 6pm
Dec 24, 2025
LAITHANGBAM NEPOLEAN SINGH might attend Dr. Ashis Biswas's event

IASLIC 34th All India Conference 2025 at Department of Library & Information Science,

January 5, 2026 at 9am to January 7, 2026 at 4pm
Dec 24, 2025
Debprasad Dutta is attending RAMESH's event
Dec 20, 2025
Sumedha Singh updated their profile
Dec 19, 2025
Azmit Begum Chowdhary replied to Pushpanjali Shriram Patil's discussion Call for Book Chapters – Volume 6 (2026) Emerging Perspectives in Library and Information Science: Digital Libraries and Knowledge Management
Dec 19, 2025
Yogesh Modi updated their profile
Dec 18, 2025
Dr.Anil Duboliya posted a status
"Adoption and Utilization of Digital Repositories in Medical College Libraries: An Empirical Study"
Dec 16, 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: 1836

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