Latest Activity

Profile IconAyushi kushwaha, Shyamghan Nayak, Raja Rajeshwari G and 1 more joined LIS Links
1 hour ago
Profile IconRamachandran K, KASTHURI PRIYA, Ashutosh Panigrahi and 1 more joined LIS Links
yesterday
Dr. T. Raja updated their profile
yesterday
N.Harilakshmi posted a discussion
yesterday
Dr. U. PRAMANATHAN posted blog posts
Saturday
Dr. U. PRAMANATHAN posted discussions
Saturday
Dr. Ashis Biswas posted events
Saturday
Profile IconAshwini C, PILLI HARSHA, Uchenna Okafor and 3 more joined LIS Links
Saturday
Dr. Ashis Biswas might attend Dr. Ashis Biswas's event
Thumbnail

RESCOMM 2025: Research Communication Conclave at Ashoka University

December 17, 2025 at 9am to December 19, 2025 at 6pm
Friday
Parthasarathivamanan.K posted an event

International Conference at Hybrid Mode (Offline and Online)

December 12, 2025 at 9am to December 13, 2025 at 6pm
Friday
Dr. Ashis Biswas updated their profile
Wednesday
KUNAL GAURAV updated their profile
Wednesday
Profile IconRajasri Jayavel, SHEEBA S, MD NEYAZ HUSSAIN and 1 more joined LIS Links
Wednesday
A. A. T. Hasan posted a discussion
Nov 9
SWAPNA SOURAV is now a member of LIS Links
Nov 9
Dr. Yogesh Subhashrao Kantale updated their profile
Nov 8
Dr. U. PRAMANATHAN posted blog posts
Nov 7
Dr.T.Sureshkumar shared their event on Facebook
Nov 7
Dr.T.Sureshkumar shared their event on Facebook
Nov 7
Dr.T.Sureshkumar posted an event
Nov 6

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

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