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

(-)a/Koha/Account/Line.pm (+1 lines)
Lines 553-558 sub reduce { Link Here
553
                    borrowernumber    => $self->borrowernumber,
553
                    borrowernumber    => $self->borrowernumber,
554
                    interface         => $params->{interface},
554
                    interface         => $params->{interface},
555
                    branchcode        => $params->{branch},
555
                    branchcode        => $params->{branch},
556
                    note              => $params->{note},
556
                }
557
                }
557
            )->store();
558
            )->store();
558
559
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (+4 lines)
Lines 375-380 Link Here
375
                                <li>
375
                                <li>
376
                                    <span id="charged" class="label">Amount charged: </span><span></span>
376
                                    <span id="charged" class="label">Amount charged: </span><span></span>
377
                                </li>
377
                                </li>
378
                                <li>
379
                                    <label for="apply_discount_note">Note: </label>
380
                                    <input type="text" id="apply_discount_note" name="apply_discount_note">
381
                                </li>
378
                                <li>
382
                                <li>
379
                                    <label class="required" for="amount">Discount to apply: </label>
383
                                    <label class="required" for="amount">Discount to apply: </label>
380
                                    <input type="text" inputmode="numeric" pattern="[0-9]*" id="discount" name="amount" required="required">
384
                                    <input type="text" inputmode="numeric" pattern="[0-9]*" id="discount" name="amount" required="required">
(-)a/members/boraccount.pl (-2 / +4 lines)
Lines 161-166 if ( $op eq 'cud-discount' ) { Link Here
161
    my $charge_id        = scalar $input->param('accountlines_id');
161
    my $charge_id        = scalar $input->param('accountlines_id');
162
    my $charge           = Koha::Account::Lines->find($charge_id);
162
    my $charge           = Koha::Account::Lines->find($charge_id);
163
    my $amount           = scalar $input->param('amount');
163
    my $amount           = scalar $input->param('amount');
164
    my $note             = scalar $input->param('apply_discount_note');
165
164
    $schema->txn_do(
166
    $schema->txn_do(
165
        sub {
167
        sub {
166
168
Lines 170-176 if ( $op eq 'cud-discount' ) { Link Here
170
                    branch         => $library_id,
172
                    branch         => $library_id,
171
                    staff_id       => $logged_in_user->id,
173
                    staff_id       => $logged_in_user->id,
172
                    interface      => 'intranet',
174
                    interface      => 'intranet',
173
                    amount         => $amount
175
                    amount         => $amount,
176
                    note           => $note,
174
                }
177
                }
175
            );
178
            );
176
        }
179
        }
177
- 

Return to bug 23674