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

(-)a/C4/Overdues.pm (-1 / +5 lines)
Lines 283-288 C<$branchcode> is the branch whose calendar to use for finding holidays. Link Here
283
283
284
sub _get_chargeable_units {
284
sub _get_chargeable_units {
285
    my ($unit, $dt1, $dt2, $branchcode) = @_;
285
    my ($unit, $dt1, $dt2, $branchcode) = @_;
286
287
    # If the due date is later than the return date
288
    return 0 if ( $dt1 > $dt2 );
289
    ## FIXME: Add unit test
290
286
    my $charge_units = 0;
291
    my $charge_units = 0;
287
    my $charge_duration;
292
    my $charge_duration;
288
    if ($unit eq 'hours') {
293
    if ($unit eq 'hours') {
289
- 

Return to bug 12596