}
my $borrower = GetMemberDetails(undef,$patronid);
+my $currencySymbol = "";
+if ( defined C4::Budgets->GetCurrency() ) {
+ $currencySymbol = C4::Budgets->GetCurrency()->{symbol};
+}
my $branch = $issuer->{branchcode};
my $confirm_required = 0;
hide_main => 1,
);
if ($issue_error eq 'DEBT') {
- $template->param(amount => C4::Budgets->GetCurrency()->{symbol}.$impossible->{DEBT});
+ $template->param(amount => $currencySymbol.$impossible->{DEBT});
}
#warn "issue_error: " . $issue_error ;
if ( $issue_error eq "NO_MORE_RENEWALS" ) {
hide_main => 1,
);
if ($issue_error eq 'DEBT') {
- $template->param(amount => C4::Budgets->GetCurrency()->{symbol}.$needconfirm->{DEBT});
+ $template->param(amount => $currencySymbol.$needconfirm->{DEBT});
}
} else {
if ( $confirmed || $issuenoconfirm ) { # we'll want to call getpatroninfo again to get updated issues.
);
if (C4::Context->preference('ShowPatronImageInWebBasedSelfCheck')) {
- my ($image, $dberror) = GetPatronImage($borrower->{cardnumber});
+ my ($image, $dberror) = GetPatronImage($borrower->{borrowernumber});
if ($image) {
$template->param(
display_patron_image => 1,
SCOUserCSS => C4::Context->preference('SCOUserCSS'),
);
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };