View | Details | Raw Unified | Return to bug 13909
Collapse All | Expand All

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2142-2148 sub _debar_user_on_return { Link Here
2142
      GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode );
2142
      GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode );
2143
    my $finedays = $issuingrule->{finedays};
2143
    my $finedays = $issuingrule->{finedays};
2144
    my $unit     = $issuingrule->{lengthunit};
2144
    my $unit     = $issuingrule->{lengthunit};
2145
    my $chargeable_units = get_chargeable_units($unit, $dt_due, $dt_today, $branchcode);
2145
    my $chargeable_units = C4::Overdues::get_chargeable_units($unit, $dt_due, $dt_today, $branchcode);
2146
2146
2147
    if ($finedays) {
2147
    if ($finedays) {
2148
2148
(-)a/t/db_dependent/Circulation.t (-2 / +1 lines)
Lines 450-456 C4::Context->dbh->do("DELETE FROM accountlines"); Link Here
450
    my $now = dt_from_string();
450
    my $now = dt_from_string();
451
    my $future = dt_from_string();
451
    my $future = dt_from_string();
452
    $future->add( days => 7 );
452
    $future->add( days => 7 );
453
    my $units = C4::Overdues::_get_chargeable_units('days', $future, $now, 'MPL');
453
    my $units = C4::Overdues::get_chargeable_units('days', $future, $now, 'MPL');
454
    ok( $units == 0, '_get_chargeable_units returns 0 for items not past due date (Bug 12596)' );
454
    ok( $units == 0, '_get_chargeable_units returns 0 for items not past due date (Bug 12596)' );
455
}
455
}
456
456
457
- 

Return to bug 13909