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

--- Comment #1 from Humberto Blanco <[email protected]> ---
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.
_______________________________________________
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/

Reply via email to