LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

papanna s Abi Dore replied to Velmurugan.C's discussion Librarian Designation-Sending Feedback to UGC-reg
1 hour ago
Millan Krushna Dutta updated their profile
2 hours ago
Reshma Rana joined Dr. Badan Barman's group
2 hours ago
Reshma Rana updated their profile
2 hours ago
Dr. U. Pramanathan posted an event
19 hours ago
Ravi. posted a blog post
19 hours ago
Dr. U. Pramanathan posted blog posts
19 hours ago
Velmurugan.C replied to Velmurugan.C's discussion Librarian Designation-Sending Feedback to UGC-reg
20 hours ago
Profile IconMADHAVI KANNAM, MANJULA, KOKATE JOTIRAM AUDUMBER and 2 more joined LIS Links
23 hours ago
Dr MANIKANDAN T updated their profile
yesterday
papanna s Abi Dore replied to Velmurugan.C's discussion Librarian Designation-Sending Feedback to UGC-reg
yesterday
Dr.Stephen.G posted blog posts
yesterday
papanna s Abi Dore replied to Velmurugan.C's discussion Librarian Designation-Sending Feedback to UGC-reg
yesterday
Surendra Singh left a comment for Ashwani Kumar
yesterday
Rohit Jangra updated their profile
Tuesday
Dr.Stephen.G posted discussions
Tuesday
Dr.Stephen.G posted blog posts
Tuesday
Gurmeet Singh posted an event
Monday
Dr. U. Pramanathan posted an event
Thumbnail

International Data Week 2025: Benefits and Opportunities – A Webinar at Online

February 25, 2025 from 10:30am to 11:30am
Monday
Dr. U. Pramanathan posted blog posts
Monday

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

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