LIS Links

First and Largest Academic Social Network of LIS Professionals in India

Latest Activity

Narendra Pal shared a profile on Facebook
yesterday
Profile IconLIS Links now has birthdays
yesterday
Dr. U. Pramanathan posted blog posts
yesterday
Dr. U. Pramanathan posted events
yesterday
Dr. U. Pramanathan updated their profile
Wednesday
Urvashi kaushik replied to Sunil K Upneja's discussion Clarification regarding CAS promotion of College Librarian
Wednesday
S. Jaffer Basha left a comment for Dr Jolly Varghese U
Tuesday
Dr. U. Pramanathan posted blog posts
Tuesday
Dr. U. Pramanathan posted events
Tuesday
ASHOKKUMAR SINGH commented on Dr. U. Pramanathan's blog post Recruitment of Librarian Gr.II/Librarian Senior, Assistant Librarian, Library Restorer & Documentist @ Baba Farid University of Health Sciences (BFUHS), Faridkot, Punjab.
Tuesday
ASHOKKUMAR SINGH commented on Dr. U. Pramanathan's blog post Recruitment of Librarian Gr.II/Librarian Senior, Assistant Librarian, Library Restorer & Documentist @ Baba Farid University of Health Sciences (BFUHS), Faridkot, Punjab.
Tuesday
Sanraj Roy posted an event
Thumbnail

Advanced Training programme on Bibliometrics and Research Output Analysis at Library Network Centre, Infocity, Gandhinagar382007, Gujarat, India.

December 2, 2024 to December 6, 2024
Monday
SHWETHA KV posted a discussion
Monday
Sunil K Upneja posted a discussion
Monday
Dr. Mahabaleshwara Rao Baikady posted an 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
Monday
Saanvi Singh posted a status
"School Librarian Vacancy for 125 Post in Tripura: https://shorturl.at/GEgWl"
Nov 16
Urvashi kaushik and Vikram Jain are now friends
Nov 15
Urvashi kaushik replied to Mrs. Vishakha R. Rajguru's discussion Evidence for CBSE Librarians Status in Maharashtra or Maharashtra govt.
Nov 15
Urvashi kaushik replied to Mrs. Vishakha R. Rajguru's discussion Evidence for CBSE Librarians Status in Maharashtra or Maharashtra govt.
Nov 15
Profile IconRenuka M Yalamali, SAMEER SAI PAINKRA, Annanya and 6 more joined LIS Links
Nov 15

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

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

© 2024   Created by Dr. Badan Barman.   Powered by

Badges  |  Report an Issue  |  Terms of Service

Koha Workshop