LIS Links Becoming More Social

Latest Activity


Rising Star
Bidyut Bikash Kalita posted a blog post
yesterday
Mali Hitendra Bhagwan is attending Bidyut Bikash Kalita's event

7 Days Faculty Development Programme (FDP) on AI IN EDUCATION AND RESEARCH at Assam

October 9, 2026 at 6pm to October 15, 2026 at 7pm
Saturday
Mali Hitendra Bhagwan is attending MD SAFIQUR RAHAMAN's event
Saturday
Mali Hitendra Bhagwan is attending Khadeeja Mohammed Nizam Ansari's event

Librarianship in the AI Era: A 5-Day Practical Skill Development Programme at Online

October 20, 2026 at 7pm to October 24, 2026 at 7pm
Saturday
Dr. S Pachauri posted a discussion
Friday
Ayushi Soni posted a discussion
Friday
Amit Suwal posted a discussion
Friday
Profile IconRahul Barman, Antoriksh Roy Choudhury, Dhaneshwar Paikra and 8 more joined LIS Links
Friday
Dr. V. Senthur Velmurugan and Rinku are now friends
Friday
Rinku commented on Dr. V. Senthur Velmurugan's event 'One-Day National Seminar on Artificial Intelligence and Academic Libraries: Issues and Opportunities in the 21st Century'
Friday
Rinku is attending Dr. V. Senthur Velmurugan's event
Friday
Rinku is attending Dr. Manoj Das's event
Thumbnail

Two-Day Online National Workshop on Library Automation Using Koha at Cooch Behar, West Bengal

October 2, 2026 at 11am to October 3, 2026 at 5pm
Friday

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

▶ 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