LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Laxman Prasad updated their profile
13 hours ago
Dr. U. PRAMANATHAN posted an event

Final Call for Papers: CALIBER-2025. at Sri Venkateswara University, Tirupati, Andhra Pradesh

November 17, 2025 at 9am to November 19, 2025 at 5pm
13 hours ago
Dr. U. PRAMANATHAN posted blog posts
13 hours ago
Dr. U. PRAMANATHAN posted a discussion
13 hours ago
Profile Iconsrinivas cherukupalli, Dr. R. Vijaya Kumar, Williams Demello and 88 more joined LIS Links
15 hours ago
Alekha Karadia posted a blog post
yesterday
Profile IconRAMAKANTA SAHU, Rajendra Dhiman, Dr H Nayana and 6 more joined LIS Links
Monday
Pradeep Kumar Singh posted a discussion
Monday
Rathod Pradip J. joined Dr. Badan Barman's group
Monday
Rathod Pradip J. joined Dr. Badan Barman's group
Monday
Dr. Anil Kumar Jharotia left a comment for Bibhuti Nath Jha
Monday
Dr. Anil Kumar Jharotia left a comment for ANEETA SAXENA
Monday
Dr. Anil Kumar Jharotia updated their profile
Monday
Dr. Anil Kumar Jharotia is now friends with T VINAY GOUTHAM, santosh kumar srivastava, kashif and 7
Monday
Dr. Anil Kumar Jharotia replied to Dr. Anil Kumar Jharotia's discussion BEST PRACTICING LIBRARIAN AWARD
Monday
Sanjay Kumar Gola and M.MANI are now friends
Saturday
Misal Pravin Raya updated their profile
Saturday
Pravin Misal updated their profile
Saturday
ALOK KUMAR is attending Sourav Debnath's event
Thumbnail

Online National workshop on Library Management using Open Source Software at Dhanbad

June 16, 2025 at 10am to June 20, 2025 at 5pm
Jun 12
RAMESH replied to Dr. Anil Kumar Jharotia's discussion BEST PRACTICING LIBRARIAN AWARD
Jun 12

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

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