Bug 11055

Summary: Add 'minutes' as a load period unit
Product: Koha Reporter: Blou <philippe.blouin>
Component: CirculationAssignee: Maxime Beaulieu <maxime.beaulieu>
Status: BLOCKED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: arthur.suzuki, eric.begin, francois.charbonnier, gmcharlt, janet.mcgowan, jonathan.druart, kyle.m.hall, marjorie.barry-vila, maude.boudreau, philippe.blouin, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 8133    
Bug Blocks:    
Attachments: Bug 11055 - Add 'Minutes' as a load period unit

Description Blou 2013-10-15 19:26:16 UTC
Our user likes to be able to fine by the (5) minutes for hourly loans (2h, 4h, etc...).

One solution would be to change (hack) the fine amount and grace and... to allow for fraction.  An easier solution is simply to add "minutes" as a unit.

Code change was very simple, but the Calendar and Holiday mechanisms have changed since, so I'll see how to do it all cute again.

ALSO: One area of discussion with the user was about the meaning of a 24h loan.  Unit=Hours, Period=24.  If the library is opened only 10h per day, this is not a 3 day rental.  This should be a "same time tomorrow, fines by the hour".

Comments welcomed.
Comment 1 Maxime Beaulieu 2014-06-27 20:54:44 UTC
Created attachment 29337 [details] [review]
Bug 11055 - Add 'Minutes' as a load period unit

WARNING: This patch is dependent on http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8133.
My patch on bug 8133 ensures proper calculation of overdues.

Minutes are added as a unit in circulation rules.

A test script is provided: 't/Circulation/minuteloan.t'.
Comment 2 Jonathan Druart 2015-02-26 14:26:03 UTC
Blocked by bug 8133 (which is blocked too...)