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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-7 / +2 lines)
Lines 79-99 function enableCheckboxActions(){ Link Here
79
    <th>Description</th>
79
    <th>Description</th>
80
    <th>Payment note</th>
80
    <th>Payment note</th>
81
    <th>Account type</th>
81
    <th>Account type</th>
82
    <th>Notify id</th>
83
    <th>Level</th>
84
    <th>Amount</th>
82
    <th>Amount</th>
85
    <th>Amount outstanding</th>
83
    <th>Amount outstanding</th>
86
</tr>
84
</tr>
87
</thead>
85
</thead>
88
<tfoot>
86
<tfoot>
89
<tr>
87
<tr>
90
    <td class="total" colspan="8">Total due:</td>
88
    <td class="total" colspan="6">Total due:</td>
91
    <td style="text-align: right;">[% total | $Price %]</td>
89
    <td style="text-align: right;">[% total | $Price %]</td>
92
</tr>
90
</tr>
93
</tfoot>
91
</tfoot>
94
<tbody>
92
<tbody>
95
[% FOREACH account_grp IN accounts %]
93
[% FOREACH line IN accounts %]
96
    [% FOREACH line IN account_grp.accountlines %]
97
<tr>
94
<tr>
98
    <td>
95
    <td>
99
    [% IF ( line.amountoutstanding > 0 ) %]
96
    [% IF ( line.amountoutstanding > 0 ) %]
Lines 112-118 function enableCheckboxActions(){ Link Here
112
    <input type="hidden" name="accountlines_id[% line.accountlines_id %]" value="[% line.accountlines_id %]" />
109
    <input type="hidden" name="accountlines_id[% line.accountlines_id %]" value="[% line.accountlines_id %]" />
113
    <input type="hidden" name="amountoutstanding[% line.accountlines_id %]" value="[% line.amountoutstanding %]" />
110
    <input type="hidden" name="amountoutstanding[% line.accountlines_id %]" value="[% line.amountoutstanding %]" />
114
    <input type="hidden" name="borrowernumber[% line.accountlines_id %]" value="[% line.borrowernumber %]" />
111
    <input type="hidden" name="borrowernumber[% line.accountlines_id %]" value="[% line.borrowernumber %]" />
115
    <input type="hidden" name="totals[% line.accountlines_id %]" value="[% line.totals %]" />
116
    </td>
112
    </td>
117
    <td>
113
    <td>
118
        [% SWITCH line.accounttype %]
114
        [% SWITCH line.accounttype %]
Lines 154-160 function enableCheckboxActions(){ Link Here
154
    <td style="text-align: right;">[% account_grp.total | $Price %]</td>
150
    <td style="text-align: right;">[% account_grp.total | $Price %]</td>
155
</tr>
151
</tr>
156
[% END %]
152
[% END %]
157
[% END %]
158
</tbody>
153
</tbody>
159
</table>
154
</table>
160
<fieldset class="action">
155
<fieldset class="action">
(-)a/members/pay.pl (-3 / +13 lines)
Lines 133-139 output_html_with_http_headers $input, $cookie, $template->output; Link Here
133
sub add_accounts_to_template {
133
sub add_accounts_to_template {
134
134
135
    my ( $total, undef, undef ) = GetMemberAccountRecords($borrowernumber);
135
    my ( $total, undef, undef ) = GetMemberAccountRecords($borrowernumber);
136
    my $accounts = [];
136
    my $accounts = Koha::Account::Lines->search({ borrowernumber => $borrowernumber, }, { order_by => ['accounttype'] });
137
    my @accounts;
138
    while ( my $account = $accounts->next ) {
139
        $account = $account->unblessed;
140
        if ( $account->{itemnumber} ) {
141
            my $item = Koha::Items->find( $account->{itemnumber} );
142
            my $biblio = $item->biblio;
143
            $account->{biblionumber} = $biblio->biblionumber;
144
            $account->{title}        = $biblio->title;
145
        }
146
        push @accounts, $account;
147
    }
137
    borrower_add_additional_fields($borrower);
148
    borrower_add_additional_fields($borrower);
138
149
139
    $template->param(%$borrower);
150
    $template->param(%$borrower);
Lines 141-147 sub add_accounts_to_template { Link Here
141
    my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
152
    my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
142
    $template->param( picture => 1 ) if $patron_image;
153
    $template->param( picture => 1 ) if $patron_image;
143
    $template->param(
154
    $template->param(
144
        accounts => $accounts,
155
        accounts => \@accounts,
145
        borrower => $borrower,
156
        borrower => $borrower,
146
        categoryname => $borrower->{'description'},
157
        categoryname => $borrower->{'description'},
147
        total    => $total,
158
        total    => $total,
148
- 

Return to bug 10021