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