LIS Links

First and Largest Academic Social Network of LIS Professionals in India

LIS Links Becoming More Social

Latest Activity

Dr. Mohan Laxman Jamdade updated their profile
9 hours ago
Sanjana Saini and Paradip Sen Roy are now friends
13 hours ago
Dr. Gulshan Kumar Sachdeva replied to Dr. Gulshan Kumar Sachdeva's discussion Call for Paper - LPF Global Journal of Social Sciences and Management
18 hours ago
OSS Prasad shared their event on Facebook
yesterday
ANKITA GUPTA replied to Dr. Gulshan Kumar Sachdeva's discussion Call for Paper - LPF Global Journal of Social Sciences and Management
Saturday
OSS Prasad updated an event

72nd ILA Annual Conference – International Conference on “Future Libraries: Advancing Research and Excellence (FLARE 2027)” at Indira Gandhi Memorial Library, University of Hyderabad, Gachibowli

January 7, 2027 to January 9, 2027
Saturday
Samit Mondal replied to Dr. U. PRAMANATHAN's discussion Call for Book Chapters: Digital Leadership in Library & Information Centers (Innovative Strategies in Library Management) by Ess Ess Publications.
Friday
Mr.Vipul Kumar updated their profile
Friday
Rakesh Sehrawat might attend Dr. Sandip Pathak's event
Thumbnail

13th Convention Planner 2026 at Gauhati University,  Guwahati, Assam.

September 18, 2026 at 9am to September 20, 2026 at 7pm
Thursday
Mrinal khare is attending Sumedha Singh's event
Thursday
Dr. Anil Kumar Jharotia left a comment for Munmi Saikia
Wednesday
Dr. Anil Kumar Jharotia left a comment for Jasveer Kaur
Wednesday
Dr. Anil Kumar Jharotia left a comment for Asha v madabhavi
Wednesday
Dr. Anil Kumar Jharotia left a comment for ASHMITA VERMA
Wednesday
Dr. Chiranjeevi L M updated their profile
Wednesday
Dr. Bhopendra Kumar updated their profile
Wednesday
SALAM BINOY SINGH is attending Dr. Sandip Pathak's event
Thumbnail

13th Convention Planner 2026 at Gauhati University,  Guwahati, Assam.

September 18, 2026 at 9am to September 20, 2026 at 7pm
Sep 15
Paradip Sen Roy updated their profile
Sep 15
vandana mittal replied to hem chandra's discussion Updating Shelf Location in Bulk in Egranthalaya 3.0
Sep 14
vandana mittal updated their profile
Sep 14

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

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

© 2026   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

LIS Links whatsApp