LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Dr. N. Kadiresan left a comment for Dr. Badan Barman
17 hours ago
Chavda Jitendra Kumar Ambalal updated their profile
yesterday
Chavda Jitendra Kumar Ambalal joined Dr. Badan Barman's group
yesterday
Chavda Jitendra Kumar Ambalal joined Dr. Badan Barman's group
Saturday
Jeffrey Epstein commented on Jeffrey Epstein's album
Friday
Jeffrey Epstein commented on Jeffrey Epstein's album
Friday
S RAVI posted a status
""Call for Chapter Contribution in Editorial Book…"
Friday
S RAVI posted a status
Friday
S RAVI posted a status
"Call for Chapter Contribution in Editorial Book "Introduction to Metrics Studies" https://drive.google.com/drive/home"
Friday
Jeffrey Epstein commented on Jeffrey Epstein's album
Friday
LAITHANGBAM NEPOLEAN SINGH is attending Dr. U. PRAMANATHAN's event
Wednesday
SHWETHA KV updated their profile
Wednesday
Dr. Tarvinder Singh Handa updated their profile
Wednesday
RP Raaj updated their profile
Wednesday
LAITHANGBAM NEPOLEAN SINGH is attending Dr. A. Madhava Rao's event

Online-Lecture on "AI Tools for Academic Research Writing and Publishing" at Microsoft Teams (Online)

August 4, 2025 from 2pm to 4pm
Tuesday
Misbah Ul Huda is attending Dr. A. Madhava Rao's event

Online-Lecture on "AI Tools for Academic Research Writing and Publishing" at Microsoft Teams (Online)

August 4, 2025 from 2pm to 4pm
Jul 28
Dr. N. Kadiresan updated their profile
Jul 28
Mukesh Baboo updated their profile
Jul 28
Abdur Rouf B updated their profile
Jul 28
Archanagita Saikia updated their profile
Jul 26

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

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