Summary: | Wrong accruing Overdue Amount | ||
---|---|---|---|
Product: | Koha | Reporter: | hienpn <hien.pham> |
Component: | Fines and fees | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED INVALID | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P1 - high | CC: | hien.pham, josef.moravec, martin.renvoize, nick |
Version: | 18.11 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Accruing fine amount
Checkout transaction |
Created attachment 88952 [details]
Checkout transaction
(In reply to hienpn from comment #0) > Created attachment 88951 [details] > Accruing fine amount > > Hi All, > > I found an issue with fine function on koha 18.11.02. Please help to check. > > When the item is overdue, koha run fines.pl cronjob and update accruing fine > to patron account. But i think something wrong when koha run fines.pl > cronjob to update accruing fine. > > Example: I checked out two barcode for one patron account. The barcodes have > the same item type, checkout from same location and same time. > > System configuration: > - CalculateFinesOnReturn option is "Do" > - finesMode is "Calculate and charge" > - Loan period: 21 days > - Fine amount: RM0.5/day > - Overdue fines cap (amount): RM40 > > I checked out item on January 06, 2019 and item overdue on January 27, 2019. > By circulation rule, patron has RM40 accruing fine in his account for one > overdue item. But when i check accruing fine of patron, i see accruing fine > incorrectly and timestamp of action is not today. The attached file is > screenshot of this issue. > > Besides, this issue don't happen with all patron account in koha. Please > help to check this Do you have the MaxFine system preference set? From what I see it looks like the patron had 66 dollars in fines existing, then got accrued up to a $100 limit. Did you also check all libraries for other rules? it looks like the fine is being consistently capped at $33. I cannot recreate the miscalculation, if it is only happening for certain categories I would suspect there is a rule applying that you did not expect I agree with Nick, this is almost certainly MaxFine coming into play. Overdues will work through overdue items one by one calculating and updating the fine for each one. Part of that calculation is to look at all pre-existing fines on he users account (including any added within this loop) and sum the amountoutstandings to ensure we're not going to exceed the MaxFine cap when adding this fines next increment. As nick has said, it look like you have a MaxFine of 100 set. So, when the overdues job looped over the first item it calculated a fine of 33 and added it unscathed. However, when it hit the second item it calculated a fine of 33, then compared the total outstanding (33 + 33 + 33 = 99) to the would be total outstanding if it added the full fine was added here (99 + 33 = 132) and spotted that it would exceed the MaxFine of 100.. As such it reduced the increment to $1 instead of $33. I also vote MaxFine. |
Created attachment 88951 [details] Accruing fine amount Hi All, I found an issue with fine function on koha 18.11.02. Please help to check. When the item is overdue, koha run fines.pl cronjob and update accruing fine to patron account. But i think something wrong when koha run fines.pl cronjob to update accruing fine. Example: I checked out two barcode for one patron account. The barcodes have the same item type, checkout from same location and same time. System configuration: - CalculateFinesOnReturn option is "Do" - finesMode is "Calculate and charge" - Loan period: 21 days - Fine amount: RM0.5/day - Overdue fines cap (amount): RM40 I checked out item on January 06, 2019 and item overdue on January 27, 2019. By circulation rule, patron has RM40 accruing fine in his account for one overdue item. But when i check accruing fine of patron, i see accruing fine incorrectly and timestamp of action is not today. The attached file is screenshot of this issue. Besides, this issue don't happen with all patron account in koha. Please help to check this