X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmaninvoice.pl;h=f1c572c1d7472c3adc4786775b2321f013165e9c;hb=91fa5f9bbd89a4cb63a69bf0c87b3272fcb6ebf5;hp=9e8d4297b810ba95ccdd0203a2b460719da844b0;hpb=6be9d2b27dd47c859eb6ab0cfd873b2059206986;p=koha_fer diff --git a/members/maninvoice.pl b/members/maninvoice.pl index 9e8d4297b8..f1c572c1d7 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -32,6 +32,7 @@ use C4::Members; use C4::Accounts; use C4::Items; use C4::Branch; +use C4::Members::Attributes qw(GetBorrowerAttributes); my $input=new CGI; @@ -106,6 +107,13 @@ if ($add){ my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); $template->param( picture => 1 ) if $picture; +if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( borrowernumber => $borrowernumber, firstname => $data->{'firstname'}, @@ -125,6 +133,7 @@ if ($add){ branchcode => $data->{'branchcode'}, branchname => GetBranchName($data->{'branchcode'}), is_child => ($data->{'category_type'} eq 'C'), + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), ); output_html_with_http_headers $input, $cookie, $template->output; }