LIS Links

First and Largest Academic Social Network of LIS Professionals in India

LIS Links Becoming More Social

Latest Activity

Bidyut Bikash Kalita posted an event

7 Days Faculty Development Programme (FDP) on AI IN EDUCATION AND RESEARCH at Assam

October 9, 2026 at 6pm to October 15, 2026 at 7pm
12 hours ago
Namita Bayan is attending Paradip Sen Roy's event
Thumbnail

Two-Day Online National Workshop on "Library Automation Using Koha" at Online

October 2, 2026 at 11am to October 3, 2026 at 5pm
yesterday
Hemanta Kumar Biswal posted an event
Thumbnail

National Conference on “Intelligent and Smart Digital Library (ISDL-2026)” at IIT Kharagpur at IIT Kharagpur

December 21, 2026 at 9am to December 22, 2026 at 6pm
yesterday
S. Jaffer Basha left a comment for Sanjana Saini
Saturday
Sanjana Saini and S. Jaffer Basha are now friends
Friday
Shariyan Ahmed and INDU ROHILLA are now friends
Friday
S. Jaffer Basha joined Dr. Badan Barman's group
Friday
Dr.S.Raonak Salim left a comment for S. Jaffer Basha
Thursday
Dr.S.Raonak Salim updated their profile
Thursday
Dr. U. PRAMANATHAN and Dr. Anjaneya Naik are now friends
Thursday
Raj Tilak posted an event

6th LISACON 2026 at Bangalore. India

November 12, 2026 at 9am to November 14, 2026 at 5pm
Thursday
Paradip Sen Roy shared their event on Facebook
Thursday
Dr. Manoj Das posted an event
Thumbnail

Two-Day Online National Workshop on Library Automation Using Koha at Cooch Behar, West Bengal

October 2, 2026 at 11am to October 3, 2026 at 5pm
Thursday
Paradip Sen Roy posted an event
Thumbnail

Two-Day Online National Workshop on "Library Automation Using Koha" at Online

October 2, 2026 at 11am to October 3, 2026 at 5pm
Thursday
Dr. Anil Kumar Jharotia posted discussions
Thursday
PINKEY RAI updated their profile
Sep 22
Dr. Mohan Laxman Jamdade updated their profile
Sep 21
Sanjana Saini and Paradip Sen Roy are now friends
Sep 20
Dr. Gulshan Kumar Sachdeva replied to Dr. Gulshan Kumar Sachdeva's discussion Call for Paper - LPF Global Journal of Social Sciences and Management
Sep 20
OSS Prasad shared their event on Facebook
Sep 20

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

▶ 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