Latest Activity

AYYAPPAN .Z replied to SUNNY JOSEPH's discussion Academic Status to Librarian: UGC Letter and Court Order
7 hours ago
Suresh Vyas shared a profile on Facebook
yesterday
Suresh Vyas shared a profile on Facebook
yesterday
NADIM AHAMAD KHAN posted an event

hort Term Course on Koha and DSpace at Central Library deen dayal upadhyaya Gorakhpur University

April 30, 2026 to May 6, 2026
Tuesday
Dr. Sandip Pathak posted an event
Thumbnail

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

September 18, 2026 at 9am to September 20, 2026 at 7pm
Tuesday
Profile IconKannan G, Otturu pedapapaiah, Ardas Singh and 6 more joined LIS Links
Tuesday
Sanjana saini and Akshay Subhash Gadade are now friends
Saturday
Dr. U. PRAMANATHAN 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.
Apr 23
Dr.Rajeshwar kumar G 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.
Apr 23
Arunima Giri might attend Dr. U. PRAMANATHAN's event
Apr 23
Shruthi updated their profile
Apr 23
Mahesh B. updated their profile
Apr 21
Akshay Subhash Gadade joined Dr. Badan Barman's group
Apr 20
Dr. U. PRAMANATHAN posted blog posts
Apr 20
K Chiyuh commented on Hema Thakur's event 'One Day National Seminar on the Future of Libraries in the Era of Artificial Intelligence'
Apr 20
K Chiyuh might attend Hema Thakur's event
Apr 20
Mr.Vipul Kumar updated their profile
Apr 19
Mr.Vipul Kumar shared a profile on Facebook
Apr 19
Profile IconUmasankar mahata, Nikita Medhi, Prohlad Basumatary and 81 more joined LIS Links
Apr 19
Dr. SUDHI S VIJAYAN posted a discussion
Apr 19

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

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