[Koha-bugs] [Bug 5549] Hourly Loans

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 21 13:09:42 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5549

--- Comment #67 from Ian Walls <koha.sekjal at gmail.com> ---
Corrine,

> 
> For a hourly loan these two options should done :
> 
> - « Option 1 »
> A loan made the « 01/03/2012  at 15:00», loan period = 1 hour, due date is «
> 15/03/2012 at 16 :00 ». If you renew it the 01/03/2012 at 15:15, the due
> date becomes « 15/03/2012 at 17 :00 »
> 
> - « Option 2 »
> A loan made the « 01/03/2012  at 15:00», loan period = 1 hour, due date is «
> 15/03/2012 at 16 :00 ». If you renew it the 01/03/2012 at 15:15, the due
> date becomes « 15/03/2012 at 16 :15 »
> 
> For an hourly loan, "option 1" doesnt't work. It is as if « option 2 » was
> systematically applied
> 

My testing shows this to work just fine... can you confirm if your sandbox a)
is running the latest code from the repo (we updated last night) and b) has
applied both the atomicupdates/hourlyloans.sql AND
atomicupdates/issues_datetime.pl database revisions?

Also, what mechanism(s) are you using to do the renewal?  It could be we're
going about it different ways, and thus getting different results.


> New tests this morning : 
> 
> Check-in of a hourly loan gives a software error message “Can’t call method
> “inverse” without a package or object reference at
> /usr/lib/perl5/DateTime/Duration.pm line 237” and ckeckin is not done

Confirmed.... will investigate and patch.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list