LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Dr. Yogesh Subhashrao Kantale updated their profile
22 hours ago
Dr. U. PRAMANATHAN posted blog posts
Friday
Dr.T.Sureshkumar shared their event on Facebook
Friday
Dr.T.Sureshkumar shared their event on Facebook
Friday
Dr.T.Sureshkumar posted an event
Friday
Profile IconAkash Pathave and Prangyasini Nayak are attending Dr. Jagadish Bujugundala's event

One Day National Workshop on One Nation One Subscription for Research Excellence at Government Degree College, Mulugu,

November 7, 2025 all day
Friday
Prangyasini Nayak is attending neema shukla's event
Thumbnail

International Conference on Libraries and Emerging Technologies for Smart Knowledge Ecosystems (ICLET 2025) at Jaipur,Rajasthan

November 14, 2025 at 9am to November 15, 2025 at 6pm
Thursday
Dr. U. PRAMANATHAN posted a blog post
Thursday
shekar.H.P posted an event
Thumbnail

International Conference on Readers are Leaders at Siddaganga Institute of Technology (SIT), Tumkur

February 26, 2026 at 3pm to February 28, 2026 at 6pm
Thursday
Dr. Badan Barman updated an event

28th National Convention on Knowledge, Library and Information Networking (NACLIN 2025) at Hotel Lemon Tree Premier, City Center, Pune

December 3, 2025 at 9pm to December 5, 2025 at 6pm
Thursday
Dr. Badan Barman updated an event
Thursday
Profile IconTakan Bhatt and Divya Sahu joined LIS Links
Thursday
shashi bisht and Dr. Badan Barman are now friends
Thursday
UMARKHAIYAM DULEMIYA MULANI updated their profile
Wednesday
Abid Hussain replied to Amarjit Kumar Singh's discussion CALL FOR CHAPTER IN AN EDITED BOOK ENTITLED, “Innovative Library Services, Implementation of ICT, and the Incorporation of Artificial Intelligence Tools”
Wednesday
Nishita Goswami updated their profile
Tuesday
Angel updated their profile
Tuesday
Profile IconThanga Tamilarasi, Dr Vijaykumar B Gopale, UMARKHAIYAM DULEMIYA MULANI and 16 more joined LIS Links
Tuesday
preeti verma is now friends with amit sana and mandhata pratap singh
Nov 2
MD SAFIQUR RAHAMAN and sandeep shukla are now friends
Nov 1

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

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