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

(-)a/C4/Letters.pm (-1 / +1 lines)
Lines 670-676 sub GetPreparedLetter { Link Here
670
    $letter->{content} =~ s/<<OPACBaseURL>>/$OPACBaseURL/go;
670
    $letter->{content} =~ s/<<OPACBaseURL>>/$OPACBaseURL/go;
671
671
672
    my $active_currency = Koha::Acquisition::Currencies->get_active;
672
    my $active_currency = Koha::Acquisition::Currencies->get_active;
673
    my $currency_format = $active_currency->currency if defined($active_currency);
673
    my $currency_format = (defined($active_currency)) ? $active_currency->currency : undef;
674
674
675
    my $borrowernumber = $tables->{borrowers};
675
    my $borrowernumber = $tables->{borrowers};
676
    my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber  });
676
    my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber  });
(-)a/t/db_dependent/Letters.t (-2 / +1 lines)
Lines 377-383 $account->add_debit({ amount => 15, interface => 'test', type => 'OVERDUE'})->st Link Here
377
my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber });
377
my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber });
378
my $totalfine = $lines->total_outstanding;
378
my $totalfine = $lines->total_outstanding;
379
my $active_currency = Koha::Acquisition::Currencies->get_active;
379
my $active_currency = Koha::Acquisition::Currencies->get_active;
380
my $currency_format = $active_currency->currency if defined($active_currency);
380
my $currency_format = (defined($active_currency)) ? $active_currency->currency : undef;
381
my $totalfine_formatted = currency_format($currency_format, "$totalfine", FMT_SYMBOL);
381
my $totalfine_formatted = currency_format($currency_format, "$totalfine", FMT_SYMBOL);
382
$totalfine_formatted = sprintf("%.2f", $totalfine) unless $totalfine_formatted;
382
$totalfine_formatted = sprintf("%.2f", $totalfine) unless $totalfine_formatted;
383
383
384
- 

Return to bug 13961