Lines 141-153
sub add_accounts_to_template {
Link Here
|
141 |
my $account_lines = $patron->account->outstanding_debits; |
141 |
my $account_lines = $patron->account->outstanding_debits; |
142 |
my $total = $account_lines->total_outstanding; |
142 |
my $total = $account_lines->total_outstanding; |
143 |
my @accounts; |
143 |
my @accounts; |
144 |
while ( my $account_line = $account_lines->next ) { |
144 |
while ( my $account_line_object = $account_lines->next ) { |
145 |
$account_line = $account_line->unblessed; |
145 |
my $account_line = $account_line_object->unblessed; |
146 |
if ( $account_line->{itemnumber} ) { |
146 |
if ( $account_line->{itemnumber} ) { |
147 |
my $item = Koha::Items->find( $account_line->{itemnumber} ); |
147 |
my $item = $account_line_object->item; |
148 |
my $biblio = $item->biblio; |
148 |
my $biblio = $item->biblio; |
149 |
$account_line->{biblionumber} = $biblio->biblionumber; |
149 |
$account_line->{biblionumber} = $biblio->biblionumber; |
150 |
$account_line->{title} = $biblio->title; |
150 |
$account_line->{title} = $biblio->title; |
|
|
151 |
$account_line->{item} = $item; |
152 |
} |
153 |
if ( $account_line->{issue_id} ) { |
154 |
$account_line->{issue} = $account_line_object->issue; |
151 |
} |
155 |
} |
152 |
push @accounts, $account_line; |
156 |
push @accounts, $account_line; |
153 |
} |
157 |
} |
Lines 191-196
sub redirect_to_paycollect {
Link Here
|
191 |
$redirect .= |
195 |
$redirect .= |
192 |
get_for_redirect( 'amountoutstanding', "amountoutstanding$line_no", 1 ); |
196 |
get_for_redirect( 'amountoutstanding', "amountoutstanding$line_no", 1 ); |
193 |
$redirect .= get_for_redirect( 'description', "description$line_no", 0 ); |
197 |
$redirect .= get_for_redirect( 'description', "description$line_no", 0 ); |
|
|
198 |
$redirect .= get_for_redirect( 'barcode', "barcode$line_no", 0 ); |
199 |
$redirect .= get_for_redirect( 'date_due', "date_due$line_no", 0 ); |
200 |
$redirect .= get_for_redirect( 'returndate', "returndate$line_no", 0 ); |
194 |
$redirect .= get_for_redirect( 'title', "title$line_no", 0 ); |
201 |
$redirect .= get_for_redirect( 'title', "title$line_no", 0 ); |
195 |
$redirect .= get_for_redirect( 'itemnumber', "itemnumber$line_no", 0 ); |
202 |
$redirect .= get_for_redirect( 'itemnumber', "itemnumber$line_no", 0 ); |
196 |
$redirect .= get_for_redirect( 'accountlines_id', "accountlines_id$line_no", 0 ); |
203 |
$redirect .= get_for_redirect( 'accountlines_id', "accountlines_id$line_no", 0 ); |