http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5549
--- Comment #83 from Ian Walls <[email protected]> --- Created attachment 8547 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8547&action=edit Bug 5549 followup: fix suspension in days further Grace periods are now measured in the same unit as the loan. Suspension in days works explicitly in days, independent of unit. Since the 'deltadays' duration is actually the duration, possibly in hours, between when the material was due and when it's returned, we need to take the finedays factor (how many days per unit overdue) and multiple it by 24 if the unit is hourly. Example: a 1 hour loan material with 1 hour grace period and finedays = 2, returned 2 hours late would give 4 days suspension To test: 1. create some circ rules: A) an hourly loan rule with suspension in days B) an hourly loan rule with suspension in days and a grace period C) a daily loan rule with suspension in days D) a daily loan rule with suspension in days and a grace period 2. Check out 2 materials under each rule. We'll call these A1-D1 and A2-D2 (to associate with the rule) 3. Return A1-D1 late, but within the grace period for B1 and D1 as appropriate 4. Return A2-D2 late, after the grace periods You should get: A1: suspended for (#hours late) * (#suspensionindays) days B1: not suspended C1: suspended for (#days late) * (#suspensionindays) days D1: not suspended A2: suspended for (#hours late) * (#suspensionindays) days B2: suspended for (#hours late) * (#suspensionindays) days C2: suspended for (#days late) * (#suspensionindays) days D2: suspended for (#days late) * (#suspensionindays) days -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
