[Bug 9041] New: Hourly fines does not work in koha 3.8.6
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9041 Priority: P5 - low Change sponsored?: --- Bug ID: 9041 CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Assignee: koha-bugs@lists.koha-community.org Summary: Hourly fines does not work in koha 3.8.6 Severity: critical Classification: Unclassified OS: All Reporter: hblancoca@gmail.com Hardware: All Status: NEW Version: 3.8 Component: Circulation Product: Koha Hi, i have the following circ rule for a material Patron category: all Item type: computer Current checkouts allowed: 1 Loan period: 2 Unit: hours Hard due date: None defined Fine amount: 2000 Fine charging interval: 1 Fine grace period (day): 0 Suspension in days (day): 0 Renewals allowed (count): 0 Holds allowed (count): 0 Rental discount (%): 0 when i checkout this material type i recibe an alert saying "Please confirm checkout" and i have to put manually the due date; an then checkout the item. if i checkout the item with no due date automatically the due date is for the same day but at 0 hours (then the user is blocked), or if i apply the patch and modify circulation.pl then the due date is 23:59 of today. But never work when the due date is lower than 10 hours. I really appreciate your help. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9041 Humberto Blanco <hblancoca@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - low |P1 - high -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9041 --- Comment #1 from Humberto Blanco <hblancoca@gmail.com> --- Review the source code i found that in Koha::Calendar.pm, in the sub addDate when evaluate $self->is_holiday($dt) the results for $dt appears bad, then in the Circulation.pm returns INVALID_DATE and needs manually checkout. For my biblio, i assume that all loans not in holidays then i put this in Koha::Calendar.pm if ( $days_mode eq 'Datedue' ){ my $dt = $base_date + $add_duration; if($unit ne 'hours'){ # Added for me while ( $self->is_holiday($dt) ) { $dt->add_duration($day_dur); if ( $unit eq 'hours' ) { $dt->set_hour($return_by_hour); # Staffs specific } } } # End added for me return $dt; } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9041 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kyle@bywatersolutions.com See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=8966 Resolution|--- |DUPLICATE --- Comment #2 from Kyle M Hall <kyle@bywatersolutions.com> --- *** This bug has been marked as a duplicate of bug 8882 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org