Latest Activity

A Raghuveer Kumar joined Dr. Badan Barman's group
Wednesday
AREPALLI MADHAVI posted a status
"Dear Professional Collogues,I need the APSET 2026 question paper along with the answer key.Thanking you"
Wednesday
Arun Thilak S updated their profile
Wednesday
Rohit Kumar updated their profile
May 28
Konala Sangeeth shared a profile on Facebook
May 27
Anil Singh Yadav and Krishna kumar yadav are now friends
May 27
sukham romen singh left a comment for Khundrakpam Premoda Devi
May 27
Prakhar Dixit updated their profile
May 26
Mr. K. Kanipriyan and Kannan G are now friends
May 26
Rohan Gupta updated their profile
May 26
Profile IconN.KAPILESH, Bhamare Rhishikesh Suresh, piyush dhekale and 26 more joined LIS Links
May 25
Madhu E S posted a blog post
May 25
Shompa Das (Chaudhury) posted a blog post
May 25
Shaheen Momin posted a discussion
May 25
MD KAIYUM SHAIKH posted an event

International Conference on “Transforming Libraries through AI for a Smarter Knowledge Future” (ICTL–2026) at Kalinga University, Naya Raipur, Mode: Hybrid (Online & Offline)

June 19, 2026 at 9am to June 20, 2026 at 5pm
May 25
Nagappa Veerappa Bakkannanavar posted an event
May 25
Dr. SUDHI S VIJAYAN posted a discussion
May 25
Oriental Library Association posted a discussion
May 25
Dr. Chittaranjan Nayak posted a discussion
May 25
Suresh Vyas posted a discussion
May 25

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

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