|
Lines 86-96
if ($add) {
Link Here
|
| 86 |
my $item = Koha::Items->find( { barcode => $barcode } ); |
86 |
my $item = Koha::Items->find( { barcode => $barcode } ); |
| 87 |
$item_id = $item->itemnumber if $item; |
87 |
$item_id = $item->itemnumber if $item; |
| 88 |
} |
88 |
} |
| 89 |
my $description = $input->param('desc'); |
89 |
my $description = $input->param('desc'); |
| 90 |
my $note = $input->param('note'); |
90 |
my $note = $input->param('note'); |
| 91 |
my $amount = $input->param('amount') || 0; |
91 |
my $amount = $input->param('amount') || 0; |
| 92 |
my $type = $input->param('type'); |
92 |
my $type = $input->param('type'); |
| 93 |
my $payment_type = $input->param('payment_type'); |
93 |
my $credit_type = $input->param('credit_type'); |
| 94 |
my $cash_register_id = $input->param('cash_register'); |
94 |
my $cash_register_id = $input->param('cash_register'); |
| 95 |
|
95 |
|
| 96 |
my $line = $patron->account->add_credit( |
96 |
my $line = $patron->account->add_credit( |
|
Lines 103-109
if ($add) {
Link Here
|
| 103 |
type => $type, |
103 |
type => $type, |
| 104 |
user_id => $logged_in_user->id, |
104 |
user_id => $logged_in_user->id, |
| 105 |
interface => C4::Context->interface, |
105 |
interface => C4::Context->interface, |
| 106 |
payment_type => $payment_type, |
106 |
payment_type => $credit_type, |
| 107 |
cash_register => $cash_register_id |
107 |
cash_register => $cash_register_id |
| 108 |
} |
108 |
} |
| 109 |
); |
109 |
); |
| 110 |
- |
|
|