https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10874
jessedhammu <jessedha...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Seeking developer OS|All |Linux Priority|P5 - low |P4 Component|Circulation |Fines and fees --- Comment #5 from jessedhammu <jessedha...@gmail.com> --- 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 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/