Lines 207-212
sub add_credit {
Link Here
|
207 |
my $payment_type = $params->{payment_type}; |
207 |
my $payment_type = $params->{payment_type}; |
208 |
my $credit_type = $params->{type} || 'PAYMENT'; |
208 |
my $credit_type = $params->{type} || 'PAYMENT'; |
209 |
my $item_id = $params->{item_id}; |
209 |
my $item_id = $params->{item_id}; |
|
|
210 |
my $issue_id = $params->{issue_id}; |
210 |
|
211 |
|
211 |
Koha::Exceptions::Account::RegisterRequired->throw() |
212 |
Koha::Exceptions::Account::RegisterRequired->throw() |
212 |
if ( C4::Context->preference("UseCashRegisters") |
213 |
if ( C4::Context->preference("UseCashRegisters") |
Lines 236-241
sub add_credit {
Link Here
|
236 |
branchcode => $library_id, |
237 |
branchcode => $library_id, |
237 |
register_id => $cash_register, |
238 |
register_id => $cash_register, |
238 |
itemnumber => $item_id, |
239 |
itemnumber => $item_id, |
|
|
240 |
issue_id => $issue_id, |
239 |
} |
241 |
} |
240 |
)->store(); |
242 |
)->store(); |
241 |
|
243 |
|
242 |
- |
|
|