LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Vinod Kumar Jain posted a status
"Required Library paid Intern @ 8000 PM for 6 Months for “Indexing Database”- in Delhi, 9818180051"
6 hours ago
Vinod Kumar Jain posted a status
"Required Library Intern for “Indexing Database”- in Delhi"
6 hours ago
Dr.Stephen.G commented on Dr.Stephen.G's event 'International Conference on Digital and Innovative Advancements for Sustainable Library Services'
20 hours ago
Dr.Stephen.G posted an event

International Conference on Digital and Innovative Advancements for Sustainable Library Services at Bharati Vidyapeeth’s Institute of Computer Applications & Management (BVICAM), New Delhi

August 29, 2025 at 10am to August 31, 2025 at 5pm
20 hours ago
Dr.Stephen.G posted a discussion
20 hours ago
Yogesh Kawale updated their profile
Thursday
Peeyush Dwivedi posted a blog post
Thursday
Ravithimmegowda posted a discussion
Thursday
Ashok Singh updated their profile
Thursday
jai prakash kumar posted a status
"What are you up to?"
Wednesday
Abhisekh Chetry joined Dr. Badan Barman's group
Wednesday
Abhisekh Chetry joined Dr. Badan Barman's group
Wednesday
Sidhartha Batsya joined Dr. Badan Barman's group
Jun 29
Sidhartha Batsya joined Dr. Badan Barman's group
Jun 29
Dr. U. PRAMANATHAN posted blog posts
Jun 27
Dr. U. PRAMANATHAN posted an event

Gyanotsav-2025: National Conference on Re-imagining Libraries as Engines of Viksit Bharat at Gyan Mandir at the National Law Institute University, Bhopal.

August 29, 2025 at 9am to August 30, 2025 at 5pm
Jun 26
Dr. U. PRAMANATHAN posted discussions
Jun 26
komal patel posted an event
Thumbnail

National Conference on Re-Imagining Libraries of Viksit Bharat 29-30 AUGUST 2025 at Bhopal

August 29, 2025 at 10am to August 30, 2025 at 5pm
Jun 26
komal patel updated their profile
Jun 26
Dr. U. PRAMANATHAN posted blog posts
Jun 25

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????

Facebook

Views: 1690

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