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

(-)a/C4/Letters.pm (-1 / +1 lines)
Lines 634-640 sub GetPreparedLetter { Link Here
634
    $letter->{content} =~ s/<<OPACBaseURL>>/$OPACBaseURL/go;
634
    $letter->{content} =~ s/<<OPACBaseURL>>/$OPACBaseURL/go;
635
635
636
    my $active_currency = Koha::Acquisition::Currencies->get_active;
636
    my $active_currency = Koha::Acquisition::Currencies->get_active;
637
    my $currency_format = $active_currency->currency if defined($active_currency);
637
    my $currency_format = (defined($active_currency)) ? $active_currency->currency : undef;
638
638
639
    my $borrowernumber = $tables->{borrowers};
639
    my $borrowernumber = $tables->{borrowers};
640
    my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber  });
640
    my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber  });
(-)a/t/db_dependent/Letters.t (-2 / +1 lines)
Lines 365-371 $account->add_debit({ amount => 15, interface => 'test', type => 'OVERDUE'})->st Link Here
365
my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber });
365
my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber });
366
my $totalfine = $lines->total_outstanding;
366
my $totalfine = $lines->total_outstanding;
367
my $active_currency = Koha::Acquisition::Currencies->get_active;
367
my $active_currency = Koha::Acquisition::Currencies->get_active;
368
my $currency_format = $active_currency->currency if defined($active_currency);
368
my $currency_format = (defined($active_currency)) ? $active_currency->currency : undef;
369
my $totalfine_formatted = currency_format($currency_format, "$totalfine", FMT_SYMBOL);
369
my $totalfine_formatted = currency_format($currency_format, "$totalfine", FMT_SYMBOL);
370
$totalfine_formatted = sprintf("%.2f", $totalfine) unless $totalfine_formatted;
370
$totalfine_formatted = sprintf("%.2f", $totalfine) unless $totalfine_formatted;
371
371
372
- 

Return to bug 13961