@@ -, +, @@ consistency --- C4/Circulation.pm | 2 +- Koha/Account.pm | 6 +++--- api/v1/swagger/definitions/patron_account_credit.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2454,7 +2454,7 @@ sub _FixAccountForLostAndReturned { $credit = $account->add_credit( { amount => $credit_total, description => 'Item Returned ' . $item_id, - type => 'lost_item_return', + type => 'LOST_RETURN', interface => C4::Context->interface, library_id => $branchcode } --- a/Koha/Account.pm +++ a/Koha/Account.pm @@ -325,7 +325,7 @@ $credit_type can be any of: - 'CREDIT' - 'payment' - 'forgiven' - - 'lost_item_return' + - 'LOST_RETURN' - 'writeoff' =cut @@ -718,7 +718,7 @@ sub reconcile_balance { our $offset_type = { 'CREDIT' => 'Manual Credit', 'FORGIVEN' => 'Writeoff', - 'lost_item_return' => 'Lost Item', + 'LOST_RETURN' => 'Lost Item', 'payment' => 'Payment', 'writeoff' => 'Writeoff', 'ACCOUNT' => 'Account Fee', @@ -741,7 +741,7 @@ our $offset_type = { our $account_type_credit = { 'CREDIT' => 'CREDIT', 'FORGIVEN' => 'FORGIVEN', - 'lost_item_return' => 'LOST_RETURN', + 'LOST_RETURN' => 'LOST_RETURN', 'payment' => 'Pay', 'writeoff' => 'W' }; --- a/api/v1/swagger/definitions/patron_account_credit.json +++ a/api/v1/swagger/definitions/patron_account_credit.json @@ -3,7 +3,7 @@ "properties": { "credit_type": { "type": "string", - "description": "Type of credit ('CREDIT', 'FORGIVEN', 'lost_item_return', 'payment', 'writeoff' )" + "description": "Type of credit ('CREDIT', 'FORGIVEN', 'LOST_RETURN', 'payment', 'writeoff' )" }, "amount": { "type": "number", --