Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode );
my $finedays = $issuingrule->{finedays};
my $unit = $issuingrule->{lengthunit};
- my $chargeable_units = get_chargeable_units($unit, $dt_due, $dt_today, $branchcode);
+ my $chargeable_units = C4::Overdues::get_chargeable_units($unit, $dt_due, $dt_today, $branchcode);
if ($finedays) {
my $now = dt_from_string();
my $future = dt_from_string();
$future->add( days => 7 );
- my $units = C4::Overdues::_get_chargeable_units('days', $future, $now, 'MPL');
+ my $units = C4::Overdues::get_chargeable_units('days', $future, $now, 'MPL');
ok( $units == 0, '_get_chargeable_units returns 0 for items not past due date (Bug 12596)' );
}