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

(-)a/misc/cronjobs/fines.pl (-13 / +17 lines)
Lines 149-166 for my $overdue ( @{$overdues} ) { Link Here
149
149
150
    # Don't update the fine if today is a holiday.
150
    # Don't update the fine if today is a holiday.
151
    # This ensures that dropbox mode will remove the correct amount of fine.
151
    # This ensures that dropbox mode will remove the correct amount of fine.
152
    if ( $mode eq 'production' && !$is_holiday{$branchcode} ) {
152
    if (
153
        if ( $amount && $amount > 0 ) {
153
        $mode eq 'production'
154
            UpdateFine(
154
        && ( !$is_holiday{$branchcode}
155
                {
155
            || C4::Context->preference('ChargeFinesOnCloseDay') )
156
                    issue_id       => $overdue->{issue_id},
156
        && ( $amount && $amount > 0 )
157
                    itemnumber     => $overdue->{itemnumber},
157
      )
158
                    borrowernumber => $overdue->{borrowernumber},
158
    {
159
                    amount         => $amount,
159
        warn 'charge';
160
                    due            => output_pref($datedue),
160
        UpdateFine(
161
                }
161
            {
162
            );
162
                issue_id       => $overdue->{issue_id},
163
        }
163
                itemnumber     => $overdue->{itemnumber},
164
                borrowernumber => $overdue->{borrowernumber},
165
                amount         => $amount,
166
                due            => output_pref($datedue),
167
            }
168
        );
164
    }
169
    }
165
    my $borrower = $patron->unblessed;
170
    my $borrower = $patron->unblessed;
166
    if ($filename) {
171
    if ($filename) {
167
- 

Return to bug 27835