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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-2 / +2 lines)
Lines 124-130 Link Here
124
    <input type="hidden" name="amount" id="amount" value="[% amount | html %]" />
124
    <input type="hidden" name="amount" id="amount" value="[% amount | html %]" />
125
    <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" />
125
    <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" />
126
    <input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" />
126
    <input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" />
127
    <input type="hidden" name="title" id="title" value="[% borrower_data.title | html %]" />
127
    <input type="hidden" name="title" id="title" value="[% patron.title | html %]" />
128
    <input type="hidden" name="change_given" id="change_given" />
128
    <input type="hidden" name="change_given" id="change_given" />
129
129
130
<fieldset class="rows">
130
<fieldset class="rows">
Lines 203-209 Link Here
203
    <input type="hidden" name="debit_type_code" id="debit_type_code" value="[% debit_type_code | html %]" />
203
    <input type="hidden" name="debit_type_code" id="debit_type_code" value="[% debit_type_code | html %]" />
204
    <input type="hidden" name="amount" id="amount" value="[% amount | html %]" />
204
    <input type="hidden" name="amount" id="amount" value="[% amount | html %]" />
205
    <input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" />
205
    <input type="hidden" name="accountlines_id" id="accountlines_id" value="[% accountlines_id | html %]" />
206
    <input type="hidden" name="title" id="title" value="[% borrower_data.title | html %]" />
206
    <input type="hidden" name="title" id="title" value="[% patron.title | html %]" />
207
    <input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" />
207
    <input type="hidden" name="payment_note" id="payment_note" value="[% payment_note | html %]" />
208
    <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" />
208
    <input type="hidden" name="amountoutstanding" id="amountoutstanding" value="[% amountoutstanding | html %]" />
209
    <input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" />
209
    <input type="hidden" name="confirm_writeoff" id="confirm_writeoff" value="1" />
(-)a/members/paycollect.pl (-4 lines)
Lines 57-63 my $logged_in_user = Koha::Patrons->find( $loggedinuser ); Link Here
57
my $patron         = Koha::Patrons->find( $borrowernumber );
57
my $patron         = Koha::Patrons->find( $borrowernumber );
58
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
58
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
59
59
60
my $borrower       = $patron->unblessed;
61
my $account        = $patron->account;
60
my $account        = $patron->account;
62
my $category       = $patron->category;
61
my $category       = $patron->category;
63
my $user           = $input->remote_user;
62
my $user           = $input->remote_user;
Lines 239-246 if ( $total_paid and $total_paid ne '0.00' ) { Link Here
239
    $total_paid = '0.00';    #TODO not right with pay_individual
238
    $total_paid = '0.00';    #TODO not right with pay_individual
240
}
239
}
241
240
242
$template->param(borrower_data => $borrower);
243
244
if ( $input->param('error_over') ) {
241
if ( $input->param('error_over') ) {
245
    $template->param( error_over => 1, total_due => scalar $input->param('amountoutstanding') );
242
    $template->param( error_over => 1, total_due => scalar $input->param('amountoutstanding') );
246
}
243
}
247
- 

Return to bug 29684