LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Prakash Singh Thakur and Dr. Badan Barman are now friends
Friday
Santosh Kumar Kori is now friends with DEVENDER and pankaj mishra
Friday
Santosh Kumar Kori is attending neema shukla's event
Thumbnail

International Conference on Libraries and Emerging Technologies for Smart Knowledge Ecosystems (ICLET 2025), at Jaipur,Rajasthan

November 14, 2025 at 9am to November 15, 2025 at 6pm
Friday
Nayana Nair updated their profile
Thursday
PRASANNA R updated their profile
Sep 14
Kanika sharma might attend Dr. U. PRAMANATHAN's event
Sep 12
Dr. Asha Peter updated their profile
Sep 10
Dr. Asha Peter is now friends with ANILKUMAR.R and VIJAYAKUMAR V
Sep 10
jai prakash kumar updated their profile
Sep 9
Saradhambal V updated their profile
Sep 7
neema shukla updated their profile
Sep 7
Dr. Bhakti Gala and KUMAR RAJ are now friends
Sep 6
Sebastine Robert updated their profile
Sep 3
MAYUR JAIN left a comment for Dev prajapati
Sep 2
Shivaganga salotagi updated their profile
Aug 30
Ankit Jaiswal updated their profile
Aug 26
S RAVI posted a status
Aug 24
S RAVI posted a status
""Call for Chapter Contribution in Editorial Book "…"
Aug 24
M Vineesh Kumar joined Dr. Badan Barman's group
Aug 15
Dr. REKHRAJ SAHU updated their profile
Aug 15

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

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