Latest Activity

Dr. Mahabaleshwara Rao Baikady posted an event

7th National Conference on Management of Modern Libraries (NACML)-2027) at Manipal Academy of Higher Education (MAHE), Manipal

January 29, 2027 at 9am to January 30, 2027 at 5pm
8 hours ago
Nandeesha B posted an event
Thumbnail

One-Day Workshop on "AI for Library Services" at Mysuru, Karnataka

August 8, 2026 all day
8 hours ago
Dr.Kiran Malavade updated their profile
Friday
ABHISHEK KUMAR GAUD updated their profile
Friday
DP left a comment for P.MEENA PRIYA DHARSHINI
Friday
Shivaganga salotagi updated their profile
Thursday
Charushila Ramkrishna Chinchkar updated their profile
Jul 21
Satbir Chauhan posted an event
Thumbnail

ETD - 2026 : 29th International Symposium of Electronic Theses and Dissertations (ETDs) at IIT Delhi

October 23, 2026 at 9am to October 25, 2026 at 6pm
Jul 21
Moin Raza posted a blog post
Jul 18
Sanjeev Kumar updated their profile
Jul 15
S. Jaffer Basha left a comment for Pallavi Sushant Sapkal
Jul 15
Syed Abdal Ahmad Khan updated their profile
Jul 14
ASHWINI KULKARNI and KUMAR RAJ are now friends
Jul 12
Salauddeen khan posted a blog post
Jul 12
Anuj Kumar Singh posted a blog post
Jul 11
Dr. Saurabh Prajapati updated their profile
Jul 11
Nagender Singh updated their profile
Jul 10
Sunita Pareek posted an event
Jul 7
Dr. U. PRAMANATHAN and Akshay Subhash Gadade are now friends
Jul 6
Dr. U. PRAMANATHAN posted a discussion
Jul 6

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

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