Lines 599-605
sub UpdateFine {
Link Here
|
599 |
} else { |
599 |
} else { |
600 |
if ( $amount ) { # Don't add new fines with an amount of 0 |
600 |
if ( $amount ) { # Don't add new fines with an amount of 0 |
601 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
601 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
602 |
my $desc = C4::Letters::GetPreparedLetter( |
602 |
my $letter = eval { C4::Letters::GetPreparedLetter( |
603 |
module => 'circulation', |
603 |
module => 'circulation', |
604 |
letter_code => 'OVERDUE_FINE_DESC', |
604 |
letter_code => 'OVERDUE_FINE_DESC', |
605 |
message_transport_type => 'print', |
605 |
message_transport_type => 'print', |
Lines 609-615
sub UpdateFine {
Link Here
|
609 |
borrowers => $borrowernumber, |
609 |
borrowers => $borrowernumber, |
610 |
items => $itemnum, |
610 |
items => $itemnum, |
611 |
}, |
611 |
}, |
612 |
)->{content}; |
612 |
) }; |
|
|
613 |
my $desc = $letter ? $letter->{content} : "Item $itemnum - due $due"; |
613 |
|
614 |
|
614 |
my $account = Koha::Account->new({ patron_id => $borrowernumber }); |
615 |
my $account = Koha::Account->new({ patron_id => $borrowernumber }); |
615 |
$accountline = $account->add_debit( |
616 |
$accountline = $account->add_debit( |