Latest Activity

Prashant Kumar Ganta is now a member of LIS Links
yesterday
Shubhangi M Vedak posted an event
Thumbnail

17th Annual One Week Training Programme for Library Support Staff at Ramniranjan Jhunjhunwala College, Ghatkopar, Mumbai

December 26, 2025 to December 31, 2025
yesterday
UTTAM PRADHAN updated their profile
Thursday
Sandip Gaikwad posted an event
Wednesday
Dr. U. PRAMANATHAN posted blog posts
Wednesday
Dr. Hema Thakur posted an event
Wednesday
RAMESH posted an event

One Day National Seminar on Emerging Technologies and Future Libraries at Venue: 1st Floor, Training Hall, Academic Block, NITHM Campus, Gachibowli, Hyderabad – 500032 www.nithm.ac.in

December 7, 2025 all day
Wednesday
Profile IconKapil Kathuria and Ravikant tiwari joined LIS Links
Wednesday
Tapas Mandal is now a member of LIS Links
Monday
Amar Rithe is now a member of LIS Links
Nov 29
NAVEEN SATAPPANAVAR updated their profile
Nov 29
Manjunatha N is attending Parthasarathivamanan.K's event
Nov 28
Manjunatha N updated their profile
Nov 28
Dr. Bhakti Gala posted a discussion
Nov 27
Profile IconRupam Tamuli and Manashi Devi joined LIS Links
Nov 27
Dr. Bhakti Gala and Geetanjali Tiwari are now friends
Nov 27
Profile IconPallavi Sushant Sapkal, Gorti kartik mahadev and shrddha thomare joined LIS Links
Nov 25
Profile IconShubham Verma, Ranjit Das, Adari P N Lalitha Devi and 1 more joined LIS Links
Nov 23
Surendra Singh is attending Dr. Ashis Biswas's event
Nov 21
Dr. Ashis Biswas posted an event
Nov 21

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

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

LIS Links whatsApp