http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8251 Priority: P1 - high Change sponsored?: --- Bug ID: 8251 CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Assignee: koha@univ-lyon3.fr Summary: Patrons are systematically debarred at checkin Severity: critical Classification: Unclassified OS: All Reporter: koha@univ-lyon3.fr Hardware: All Status: NEW Version: rel_3_8 Component: Circulation Product: Koha Created attachment 10289 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10289&action=edit Patrons systematically debarred at checkin When suspension in days are used, the delta days between due-date and checkindate is tested in _FixFineDaysOnReturn line 1843 : if ( ( $deltadays - $grace )->is_positive ) and if positive the patron is debarred. The problem is that it's always positive even if the borrower is not late because the delta_days function of the Datetime module used in 'days_between' function always return a positive delta (from what I understood) Test plan : 1) configure a rule in issuingrules that includes a suspension in days 2) do a checkout for a borrower and document type corresponding to the rule. 3) do a checkin -- You are receiving this mail because: You are watching all bug changes.