Latest Activity

Chetan Hegde M updated their profile
6 hours ago
AREPALLI MADHAVI joined Dr. Badan Barman's group
yesterday
Dr.P.KRISHNAN updated their profile
yesterday
Dhruven Ponkiya updated their profile
Mar 30
sangeeta sharma is attending Dr. Shamim Aktar Munshi's event
Mar 28
Kanika sharma and Ankit Jaiswal are now friends
Mar 27
Nagendra N updated their profile
Mar 25
Pallavi Sushant Sapkal and S. Jaffer Basha are now friends
Mar 22
Dr. Divyanshu Gupta updated their profile
Mar 20
Nilesh and Dr. Badan Barman are now friends
Mar 19
Dr. Gulshan Kumar Sachdeva updated their profile
Mar 17
Dr. Gulshan Kumar Sachdeva and sandeep shukla are now friends
Mar 17
Devendra Parker joined Dr. Badan Barman's group
Mar 17
Manoj Kumar updated their profile
Mar 15
Ranjansen Shende updated their profile
Mar 15
Ku. Dipti Lodwal joined Dr. Badan Barman's group
Mar 13
Ku. Dipti Lodwal joined Dr. Badan Barman's group
Mar 13
Ku. Dipti Lodwal left a comment for Arun kumar Sirla
Mar 13
Ku. Dipti Lodwal left a comment for Vikrant Dubey
Mar 13
Ku. Dipti Lodwal posted a status
Mar 13

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

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

© 2026   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

LIS Links whatsApp