Latest Activity

GAURAV BHUSAN ARYA shared a profile on Facebook
23 hours ago
Bidyut Bikash Kalita posted a blog post
yesterday
Profile IconDhanu shri, Kumari Ankita, Arunima Giri and 2 more joined LIS Links
yesterday
Dr. Badan Barman posted a discussion
yesterday
Abhishek Chourasiya updated their profile
Thursday
Profile IconSweety Angelirie Kharumnuid and Alka Solanki joined LIS Links
Wednesday
Dr. SUDHI S VIJAYAN posted an event
Wednesday
A.Mahesh left a comment for Dr. Badan Barman
Tuesday
Dr. N K Pachauri posted a discussion
Tuesday
A.Mahesh posted a blog post
Tuesday
Profile IconKatie Rodgerson, Swapna Khandekar, Ajay parmar and 9 more joined LIS Links
Tuesday
Kirtisharma updated their profile
Feb 6
Dr. U. PRAMANATHAN posted blog posts
Feb 5
Dr. U. PRAMANATHAN posted events
Feb 5
Abhishek Pingale updated their profile
Feb 5
Noor Aziz and Dr. Badan Barman are now friends
Feb 5
Profile IconAman Pathe, Dhritima Kakati, Dr. Priyanka Suryavanshi and 3 more joined LIS Links
Feb 4
Devendra Singh Kotal updated their profile
Feb 4
Profile IconDevendra Singh Kotal, MANI THALAPATHI, Sanjeev Kumar and 2 more joined LIS Links
Feb 3
Dr. U. PRAMANATHAN posted events
Feb 3

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

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