LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Dr. U. PRAMANATHAN replied to Dr. U. PRAMANATHAN's discussion INFLIBNET App & WhatsApp Service Launched: Unlock Academic Resources on the Go!
33 minutes ago
Alka Gohel replied to Dr. U. PRAMANATHAN's discussion INFLIBNET App & WhatsApp Service Launched: Unlock Academic Resources on the Go!
1 hour ago
Dr. U. PRAMANATHAN replied to Dr. U. PRAMANATHAN's discussion INFLIBNET App & WhatsApp Service Launched: Unlock Academic Resources on the Go!
2 hours ago
Alka Gohel replied to Dr. U. PRAMANATHAN's discussion INFLIBNET App & WhatsApp Service Launched: Unlock Academic Resources on the Go!
4 hours ago
shradhashesh commented on Dr. U. PRAMANATHAN's blog post Notice for Phase-XIII/2025/Selection Posts — MTS (Library Attendant), Senior Library Attendant, Library Clerk, Library and Information Assistant, Assistant Library Information Officer, and Librarian
yesterday
Pramod Kumar Sharma posted a blog post
yesterday
Dr. U. PRAMANATHAN posted discussions
Wednesday
Dr. U. PRAMANATHAN posted blog posts
Wednesday
Dr. U. PRAMANATHAN posted events
Wednesday
Dr. U. PRAMANATHAN posted a blog post
Tuesday
Dr. U. PRAMANATHAN posted an event
Monday
Sumit Chakraborty posted a discussion
Monday
Archanagita Saikia is attending Md Nasm Akhtar's event

Online workshop on KOHA at Online

June 1, 2025 from 10am to 1pm
Saturday
Md Nasm Akhtar shared their event on Facebook
Saturday
Sumit Chakraborty updated their profile
May 30
Sumit Chakraborty might attend Sourav Debnath's event
Thumbnail

Online National workshop on Library Management using Open Source Software at Dhanbad

June 16, 2025 at 10am to June 20, 2025 at 5pm
May 30
Dr. U. PRAMANATHAN posted blog posts
May 29
Dr. U. PRAMANATHAN posted discussions
May 29
Md Nasm Akhtar posted an event

Online workshop on KOHA at Online

June 1, 2025 from 10am to 1pm
May 29
B.VERMA updated their profile
May 29

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

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

Koha Workshop