Latest Activity

Dr MANIKANDAN T updated their profile
16 hours ago
DHARITRI DEORI and vasudev tiwari are now friends
19 hours ago
vasudev tiwari updated their profile
20 hours ago
Satbir Chauhan updated an event
Thumbnail

ETD - 2026 : 29th International Symposium of Electronic Theses and Dissertations (ETDs) at IIT Delhi

October 23, 2026 at 9am to October 25, 2026 at 6pm
yesterday
Dr. Bebi updated their profile
yesterday
Santosh Kumar Kori updated their profile
Thursday
DHARITRI DEORI and Ramakrishnan are now friends
Thursday
Dr. Anil Kumar Jharotia shared their photo on Facebook
Wednesday
Rajesh Meshram updated their profile
Wednesday
Ramakrishnan updated their profile
Wednesday
ANKITA GUPTA and PRASANNA R are now friends
Monday
Debabrat Senapati updated their profile
Sunday
Anasua Ghosh joined Dr. Badan Barman's group
Aug 15
Barsa Patnaik updated their profile
Aug 15
ajit kumar updated their profile
Aug 15
OSS Prasad updated their profile
Aug 14
Profile IconPrem prakash Shukla, Sunitkumar, Shivam Tanwar and 25 more joined LIS Links
Aug 13
melvin jebaraj posted an event
Aug 13
Puneet Kumar posted a blog post
Aug 13
Dr. Badan Barman and THAKKAR VIVEK RAJESHKUMAR are now friends
Aug 13

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

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