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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2454-2460 sub _FixAccountForLostAndReturned { Link Here
2454
        $credit = $account->add_credit(
2454
        $credit = $account->add_credit(
2455
            {   amount      => $credit_total,
2455
            {   amount      => $credit_total,
2456
                description => 'Item Returned ' . $item_id,
2456
                description => 'Item Returned ' . $item_id,
2457
                type        => 'lost_item_return',
2457
                type        => 'LOST_RETURN',
2458
                interface   => C4::Context->interface,
2458
                interface   => C4::Context->interface,
2459
                library_id  => $branchcode
2459
                library_id  => $branchcode
2460
            }
2460
            }
(-)a/Koha/Account.pm (-3 / +3 lines)
Lines 325-331 $credit_type can be any of: Link Here
325
  - 'CREDIT'
325
  - 'CREDIT'
326
  - 'payment'
326
  - 'payment'
327
  - 'forgiven'
327
  - 'forgiven'
328
  - 'lost_item_return'
328
  - 'LOST_RETURN'
329
  - 'writeoff'
329
  - 'writeoff'
330
330
331
=cut
331
=cut
Lines 718-724 sub reconcile_balance { Link Here
718
our $offset_type = {
718
our $offset_type = {
719
    'CREDIT'           => 'Manual Credit',
719
    'CREDIT'           => 'Manual Credit',
720
    'FORGIVEN'         => 'Writeoff',
720
    'FORGIVEN'         => 'Writeoff',
721
    'lost_item_return' => 'Lost Item',
721
    'LOST_RETURN'      => 'Lost Item',
722
    'payment'          => 'Payment',
722
    'payment'          => 'Payment',
723
    'writeoff'         => 'Writeoff',
723
    'writeoff'         => 'Writeoff',
724
    'ACCOUNT'          => 'Account Fee',
724
    'ACCOUNT'          => 'Account Fee',
Lines 741-747 our $offset_type = { Link Here
741
our $account_type_credit = {
741
our $account_type_credit = {
742
    'CREDIT'           => 'CREDIT',
742
    'CREDIT'           => 'CREDIT',
743
    'FORGIVEN'         => 'FORGIVEN',
743
    'FORGIVEN'         => 'FORGIVEN',
744
    'lost_item_return' => 'LOST_RETURN',
744
    'LOST_RETURN'      => 'LOST_RETURN',
745
    'payment'          => 'Pay',
745
    'payment'          => 'Pay',
746
    'writeoff'         => 'W'
746
    'writeoff'         => 'W'
747
};
747
};
(-)a/api/v1/swagger/definitions/patron_account_credit.json (-2 / +1 lines)
Lines 3-9 Link Here
3
  "properties": {
3
  "properties": {
4
    "credit_type": {
4
    "credit_type": {
5
      "type": "string",
5
      "type": "string",
6
      "description": "Type of credit ('CREDIT', 'FORGIVEN', 'lost_item_return', 'payment', 'writeoff' )"
6
      "description": "Type of credit ('CREDIT', 'FORGIVEN', 'LOST_RETURN', 'payment', 'writeoff' )"
7
    },
7
    },
8
    "amount": {
8
    "amount": {
9
      "type": "number",
9
      "type": "number",
10
- 

Return to bug 23805