Lines 170-176
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
170 |
$total_paid = '0.00'; #TODO not right with pay_individual |
170 |
$total_paid = '0.00'; #TODO not right with pay_individual |
171 |
} |
171 |
} |
172 |
|
172 |
|
173 |
borrower_add_additional_fields($borrower, $template); |
173 |
$patron->borrower_add_additional_fields($template); |
174 |
|
174 |
|
175 |
$template->param(%$borrower); |
175 |
$template->param(%$borrower); |
176 |
|
176 |
|
Lines 184-205
$template->param(
Link Here
|
184 |
); |
184 |
); |
185 |
|
185 |
|
186 |
output_html_with_http_headers $input, $cookie, $template->output; |
186 |
output_html_with_http_headers $input, $cookie, $template->output; |
187 |
|
|
|
188 |
sub borrower_add_additional_fields { |
189 |
my ( $b_ref, $template ) = @_; |
190 |
|
191 |
# some borrower info is not returned in the standard call despite being assumed |
192 |
# in a number of templates. It should not be the business of this script but in lieu of |
193 |
# a revised api here it is ... |
194 |
if ( $b_ref->{category_type} eq 'C' ) { |
195 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
196 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
197 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
198 |
} |
199 |
|
200 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
201 |
$b_ref->{extendedattributes} = GetBorrowerAttributes($b_ref->{borrowernumber}); |
202 |
} |
203 |
|
204 |
return; |
205 |
} |
206 |
- |