LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

J VASANTHI left a comment for Dr. Badan Barman
22 hours ago
savitha replied to SHWETHA KV's discussion CBSE Inspection of School Libraries
yesterday
Deepak Singh commented on Deepak Singh's status
Thursday
Deepak Singh posted a status
"Call for Papers"
Thursday
PRAVEEN KUMAR DEWANGAN is attending Dr. Mahabaleshwara Rao Baikady's event

6th NACML (National Conference on Management of Modern Libraries) - 2025 at Dr. TMA Pai Hall

February 21, 2025 at 8am to February 22, 2025 at 5pm
Sunday
Sanjay Kumar Mishra updated their profile
Sunday
Saanvi Singh posted a status
"Library and Information Assistant for 22 Post at CRE AIIMS 2025. Apply Online: https://tinyurl.com/3zu8dfan"
Jan 9
Saanvi Singh posted a status
"Library and Information Assistant for 22 Post at CRE AIIMS 2025. Apply Online: https://tinyurl.com/3zu8dfan"
Jan 9
sandeep kumar rout posted a status
"My contact sandeeprout1983@gmail.com, whatsapp no-9776842694"
Jan 8
sandeep kumar rout posted a status
"If anyone knows or use this Delplus software. Would you share your experience regarding the software Delplus 2.0."
Jan 8
sandeep kumar rout posted a status
"Delnet lMS Delplus is good for medium library.is it any problems in using the software"
Jan 8
KHRITISH SWARGIARY updated their profile
Jan 5
Dola Ghosh might attend Dr. U. Pramanathan's event
Thumbnail

RRLF Sponsored Two-Day International Conference on 'Building Sustainable Libraries in Connecting Communities: Librarianship, Technology, and Collaboration' at DLIS, Bharathidasan University, Tiruchirappalli, Tamilnadu

February 7, 2025 at 6pm to February 8, 2025 at 7pm
Jan 4
Nandeesha L updated their profile
Jan 3
Md Sohail updated their profile
Jan 3
Md Sohail and Dr Jolly Varghese U are now friends
Jan 3
KHRITISH SWARGIARY posted a status
"Check out "DEVELOPMENT OF EDUCATION IN INDIA: Gauhati University FYUGP BOOK for Education subject students. https://play.google.com/store/b"
Jan 3
KHRITISH SWARGIARY posted a status
"Check out "DEVELOPMENT OF EDUCATION IN INDIA: Gauhati University…"
Jan 3
J VASANTHI left a comment for Dr. Badan Barman
Jan 2
Bikash Barman and Dr. U. Pramanathan are now friends
Dec 27, 2024

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

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