LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Dr.Stephen.G posted a blog post
17 hours ago
Dr.Stephen.G posted a discussion
18 hours ago
Gurmeet Singh posted an event
18 hours ago
Dr. U. Pramanathan posted an event
Thumbnail

International Data Week 2025: Benefits and Opportunities – A Webinar at Online

February 25, 2025 from 10:30am to 11:30am
21 hours ago
Dr. U. Pramanathan posted blog posts
22 hours ago
SANKU B ROY posted an event

One Day National Seminar on “Digital Transformation in Higher Education" at JADAVPUR UNIVERSITY

March 8, 2025 from 10am to 5pm
yesterday
Uttam Chatterjee updated their profile
yesterday
Uttam Chatterjee joined Dr. Badan Barman's group
yesterday
Uttam Chatterjee joined Dr. Badan Barman's group
yesterday
SANKU B ROY updated their profile
Sunday
Dr.Stephen.G posted a discussion
Saturday
Dr.Stephen.G posted a blog post
Saturday
Alka Gohel posted a discussion
Saturday
RAMESH posted an event

Workshop on "Redefining Libraries in the Era of AI at IMT Nagpur

March 21, 2025 at 9am to March 22, 2025 at 5:30pm
Saturday
Dr.Stephen.G and Dr Jolly Varghese U are now friends
Saturday
Dr.Stephen.G replied to Dr. U. Pramanathan's discussion Honored to Serve as LIS Links Administrator – Grateful for the Opportunity!
Saturday
Damodar Dashrath Waghmare posted a status
"Respected LIS Professionals, Please fill out my Ph.D. Questionnaire and cooperate with us for data collection. Thanks friends... Asso.P"
Saturday
Damodar Dashrath Waghmare posted a status
"What are youRespected LIS Professionals, Please fill out my Ph.D. Questionnaire and cooperate with us for data collection. Thanks friends."
Saturday
Alka Gohel updated their profile
Saturday
Dr. U. Pramanathan posted an event
Thumbnail

CALIBER-2025 "Library 2047: Democratizing Knowledge towards Viksit Bharat" at Sri Venkateswara University, Tirupati, Andhra Pradesh

November 17, 2025 at 6pm to November 19, 2025 at 7pm
Friday

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

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