Merge remote-tracking branch 'origin/new/bug_7849'

This commit is contained in:
Paul Poulain 2012-04-30 14:15:23 +02:00
commit 07cc9cd877

View file

@ -1616,7 +1616,7 @@ sub AddReturn {
if ($borrowernumber) {
if($issue->{'overdue'}){
my ( $amount, $type, $daycounttotal ) = C4::Overdues::CalcFine( $item, $borrower->{categorycode},$branch, $datedue, $today );
my $type ||= q{};
$type ||= q{};
if ( $amount > 0 && ( C4::Context->preference('finesMode') eq 'production' )) {
C4::Overdues::UpdateFine(
$issue->{itemnumber},