Bug 10874 - Incremental fine system for various types of documents and patron categories
Summary: Incremental fine system for various types of documents and patron categories
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: Main
Hardware: All Linux
: P4 enhancement
Assignee: Amit Gupta
QA Contact: Testopia
URL:
Keywords:
: 6873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-11 04:12 UTC by Chitralekha Chitale
Modified: 2024-12-12 19:27 UTC (History)
6 users (show)

See Also:
GIT URL:
Change sponsored?: Seeking developer
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chitralekha Chitale 2013-09-11 04:12:39 UTC
bug 6873 (16 Sept 2011) is similar but not resolved till date.

 our library use this rules for fines and circulation:

Circulation periods:
books period: 30 days with 2 renewals max
journals period: 14 days with 2 renewals max

Fines:
1. fine after period, price A
2. fine 30th day after 1. fine, price B
3. fine 14th day after 2. fine, price C (2x price B)
4. fine 14th day after 3. fine, price D (3x price B)
5. next fines we count per day and item.

Fine rates varies for patron categories as well as type of documnet.

also bug 8776 and 10027 need to be solved as they are related to fine calculation.
Comment 1 Katrin Fischer 2014-11-02 11:23:13 UTC
*** Bug 6873 has been marked as a duplicate of this bug. ***
Comment 2 Katrin Fischer 2014-11-02 11:24:47 UTC
Maybe take a look at the staticfine.pl script in current Koha - it might be helpful.
Comment 3 Amit Gupta 2015-06-15 15:02:39 UTC
I would like to work on this feature will try to complete this feature in next release of Koha (3.22).
Comment 4 Katrin Fischer 2015-06-15 15:27:04 UTC
Amit, there are currently some other patches pending about fines/overdues - some information to the related bugs can be found on the wiki: http://wiki.koha-community.org/wiki/Overdue_Notice_Enhancement 

Could you maybe add some description on how you want to add this feature and where it would be configured?
Comment 5 jessedhammu 2024-12-12 18:16:58 UTC
i am using koha 24; last time I was on koha 23.05, i made some changes in my overdue.pm file so it calculates the fines on an incremental basis. like Rs25/Day for 1st week, then Rs50/Day from 2nd week and Rs75/Day if the book is late for 3rd consecutive week.
My server crashed today, and I had to install koha afresh and restore the database. Everything is working fine, but except for this incremental fine thing, because this change was made in the code. and now when I try to put the same code in the overdues.pm file of my koha 24.05 it just doesn't work.
Can anyone tell me if anything has changed with the koha code? From where does it calculate the fines?
How can I implement this incremental fine again. ? Our Library Fine Policy is
 

Fine after Due Date : 

First week after the due date of return: Rs. 25/- per day

Second week after the due date of return: Rs. 50/- per day

Third week after the due date of return: Rs. 75/- per day

Fourth week after the due date of return: Rs. 100/- per day



I the change i made in the was in overdue.pm file was

Open the /usr/share/koha/lib/C4/Overdues.pm file and locate the following line      

  $amount = $charge_periods * $issuing_rule->{fine};
Comment this line with # and add the following lines for custom rule preference

        # $amount = $charge_periods * $issuing_rule->{fine};
        #Custom fine rule for CUP Library by Rupinder Singh
        if ($charge_periods < 8){
        $amount = $charge_periods * 25;
        } else {
        if ($charge_periods < 15){
        $amount = 175 + ($charge_periods - 7) * 50;
        } else {
if ($charge_periods < 22){
        $amount = 525 + ($charge_periods - 14) * 75;
        } else {
 $amount = 1050 + ($charge_periods - 21) * 100;
    }
    }
} # else { # a zero (or null) chargeperiod or negative units_minus_grace value means no charge. 

after making this change, my patrons were charged as per the library fine policy. 
but it is not working in koha 24.05
Comment 6 Katrin Fischer 2024-12-12 19:27:00 UTC
Hi jessedhammu, please consider asking your question in chat (https://chat.koha-community.org) or on the mailing list. These are the right channels for a support request like yours.